forked from AuroraMiddleware/gtk
ComboBox: Fix whitespace
* Replace tabs for indentation with spaces * Remove whitespace at ends of lines
This commit is contained in:
parent
e09b78f7f7
commit
a72dbeba06
@ -365,7 +365,7 @@ static void gtk_combo_box_entry_contents_changed (GtkEntry *e
|
||||
static void gtk_combo_box_entry_active_changed (GtkComboBox *combo_box,
|
||||
gpointer user_data);
|
||||
static gchar *gtk_combo_box_format_entry_text (GtkComboBox *combo_box,
|
||||
const gchar *path);
|
||||
const gchar *path);
|
||||
|
||||
/* GtkBuildable method implementation */
|
||||
static GtkBuildableIface *parent_buildable_iface;
|
||||
@ -3373,38 +3373,38 @@ gtk_combo_box_entry_active_changed (GtkComboBox *combo_box,
|
||||
|
||||
if (entry)
|
||||
{
|
||||
GtkTreePath *path;
|
||||
gchar *path_str;
|
||||
gchar *text = NULL;
|
||||
GtkTreePath *path;
|
||||
gchar *path_str;
|
||||
gchar *text = NULL;
|
||||
|
||||
model = gtk_combo_box_get_model (combo_box);
|
||||
path = gtk_tree_model_get_path (model, &iter);
|
||||
path_str = gtk_tree_path_to_string (path);
|
||||
path = gtk_tree_model_get_path (model, &iter);
|
||||
path_str = gtk_tree_path_to_string (path);
|
||||
|
||||
g_signal_handlers_block_by_func (entry,
|
||||
gtk_combo_box_entry_contents_changed,
|
||||
combo_box);
|
||||
|
||||
|
||||
g_signal_emit (combo_box, combo_box_signals[FORMAT_ENTRY_TEXT], 0,
|
||||
path_str, &text);
|
||||
g_signal_emit (combo_box, combo_box_signals[FORMAT_ENTRY_TEXT], 0,
|
||||
path_str, &text);
|
||||
|
||||
gtk_entry_set_text (entry, text);
|
||||
gtk_entry_set_text (entry, text);
|
||||
|
||||
g_signal_handlers_unblock_by_func (entry,
|
||||
gtk_combo_box_entry_contents_changed,
|
||||
combo_box);
|
||||
|
||||
gtk_tree_path_free (path);
|
||||
g_free (text);
|
||||
g_free (path_str);
|
||||
gtk_tree_path_free (path);
|
||||
g_free (text);
|
||||
g_free (path_str);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static gchar *
|
||||
gtk_combo_box_format_entry_text (GtkComboBox *combo_box,
|
||||
const gchar *path)
|
||||
const gchar *path)
|
||||
{
|
||||
GtkComboBoxPrivate *priv = combo_box->priv;
|
||||
GtkTreeModel *model;
|
||||
@ -3417,8 +3417,8 @@ gtk_combo_box_format_entry_text (GtkComboBox *combo_box,
|
||||
gtk_tree_model_get_iter_from_string (model, &iter, path);
|
||||
|
||||
gtk_tree_model_get (model, &iter,
|
||||
priv->text_column, &text,
|
||||
-1);
|
||||
priv->text_column, &text,
|
||||
-1);
|
||||
}
|
||||
|
||||
return text;
|
||||
|
@ -63,7 +63,7 @@ struct _GtkComboBoxClass
|
||||
/* signals */
|
||||
void (* changed) (GtkComboBox *combo_box);
|
||||
gchar *(* format_entry_text) (GtkComboBox *combo_box,
|
||||
const gchar *path);
|
||||
const gchar *path);
|
||||
|
||||
/*< private >*/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user