Commit a2b0ddd4 authored by William Jon McCann's avatar William Jon McCann

Wait until after widgets have been set up to handle change signals

https://bugzilla.gnome.org/show_bug.cgi?id=682372
parent 06476bd3
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment