[nautilus] Wait until after widgets have been set up to handle change signals
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] Wait until after widgets have been set up to handle change signals
- Date: Wed, 22 Aug 2012 18:24:13 +0000 (UTC)
commit a2b0ddd45e19ec43d2fbf09204152c31aa0dc860
Author: William Jon McCann <jmccann redhat com>
Date: Wed Aug 22 10:47:14 2012 -0400
Wait until after widgets have been set up to handle change signals
https://bugzilla.gnome.org/show_bug.cgi?id=682372
.../nautilus-mime-application-chooser.c | 20 +++++++++++---------
1 files changed, 11 insertions(+), 9 deletions(-)
---
diff --git a/libnautilus-private/nautilus-mime-application-chooser.c b/libnautilus-private/nautilus-mime-application-chooser.c
index adf2ed9..41bb54d 100644
--- a/libnautilus-private/nautilus-mime-application-chooser.c
+++ b/libnautilus-private/nautilus-mime-application-chooser.c
@@ -339,19 +339,12 @@ nautilus_mime_application_chooser_build_ui (NautilusMimeApplicationChooser *choo
TRUE);
gtk_app_chooser_widget_set_show_fallback (GTK_APP_CHOOSER_WIDGET (chooser->details->open_with_widget),
TRUE);
+ gtk_app_chooser_widget_set_show_other (GTK_APP_CHOOSER_WIDGET (chooser->details->open_with_widget),
+ TRUE);
gtk_box_pack_start (GTK_BOX (chooser), chooser->details->open_with_widget,
TRUE, TRUE, 6);
gtk_widget_show (chooser->details->open_with_widget);
- g_signal_connect (chooser->details->open_with_widget, "application-selected",
- G_CALLBACK (application_selected_cb),
- chooser);
- g_signal_connect (chooser->details->open_with_widget, "populate-popup",
- G_CALLBACK (populate_popup_cb),
- chooser);
- gtk_app_chooser_widget_set_show_other (GTK_APP_CHOOSER_WIDGET (chooser->details->open_with_widget),
- TRUE);
-
box = gtk_button_box_new (GTK_ORIENTATION_HORIZONTAL);
gtk_box_set_spacing (GTK_BOX (box), 6);
gtk_button_box_set_layout (GTK_BUTTON_BOX (box), GTK_BUTTONBOX_END);
@@ -390,6 +383,15 @@ nautilus_mime_application_chooser_build_ui (NautilusMimeApplicationChooser *choo
info, chooser);
g_object_unref (info);
}
+
+ g_signal_connect (chooser->details->open_with_widget,
+ "application-selected",
+ G_CALLBACK (application_selected_cb),
+ chooser);
+ g_signal_connect (chooser->details->open_with_widget,
+ "populate-popup",
+ G_CALLBACK (populate_popup_cb),
+ chooser);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]