[gnome-control-center] Set the model sooner, so that we can select the default application
- From: Rodrigo Moya <rodrigo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] Set the model sooner, so that we can select the default application
- Date: Mon, 11 Oct 2010 08:05:23 +0000 (UTC)
commit 7ebaaf64c971f98890b3c70c9949769fa87649fe
Author: Rodrigo Moya <rodrigo gnome-db org>
Date: Fri Oct 8 11:59:43 2010 +0200
Set the model sooner, so that we can select the default application
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 c427c0b..34c38fe 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]