diff options
author | Rodrigo Moya <rodrigo@gnome-db.org> | 2010-10-08 11:59:43 +0200 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2010-10-11 10:04:58 +0200 |
commit | 7ebaaf64c971f98890b3c70c9949769fa87649fe (patch) | |
tree | 00f383e114cdabb3f340d65f68339568503bb7dc /libgnome-control-center | |
parent | 95057c5edbcd953c34e643e8fd5b5b8d86f18a04 (diff) |
Set the model sooner, so that we can select the default application
Diffstat (limited to 'libgnome-control-center')
-rw-r--r-- | libgnome-control-center/cc-setting-editor.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libgnome-control-center/cc-setting-editor.c b/libgnome-control-center/cc-setting-editor.c index c427c0bc1..34c38fe04 100644 --- a/libgnome-control-center/cc-setting-editor.c +++ b/libgnome-control-center/cc-setting-editor.c @@ -162,6 +162,8 @@ cc_setting_editor_new_application (const gchar *mime_type, GtkWidget *combobox) "text", TEXT_COL, NULL); + gtk_combo_box_set_model (GTK_COMBO_BOX (combobox), GTK_TREE_MODEL (model)); + /* Retrieve list of applications for the given MIME type */ default_app = g_app_info_get_default_for_type (mime_type, FALSE); @@ -175,7 +177,7 @@ cc_setting_editor_new_application (const gchar *mime_type, GtkWidget *combobox) gtk_list_store_append (model, &new_row); gtk_list_store_set (model, &new_row, PIXBUF_COL, /* FIXME */ NULL, - TEXT_COL, g_app_info_get_display_name (app_info), + TEXT_COL, g_app_info_get_name (app_info), APP_INFO_COL, app_info, -1); @@ -188,8 +190,6 @@ cc_setting_editor_new_application (const gchar *mime_type, GtkWidget *combobox) app_list = g_list_remove (app_list, app_info); } - gtk_combo_box_set_model (GTK_COMBO_BOX (combobox), GTK_TREE_MODEL (model)); - g_signal_connect (combobox, "changed", G_CALLBACK (application_selection_changed_cb), seditor); |