Initialise threads early, and fix option context translation. Bug #416239.
2007-03-18 Christian Persch <chpe@gnome.org> * sound-properties-capplet.c: (create_dialog), (main): Initialise threads early, and fix option context translation. Bug #416239. svn path=/trunk/; revision=7388
This commit is contained in:
parent
711d022d03
commit
9975a0cc64
2 changed files with 15 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2007-03-18 Christian Persch <chpe@gnome.org>
|
||||||
|
|
||||||
|
* sound-properties-capplet.c: (create_dialog), (main): Initialise
|
||||||
|
threads early, and fix option context translation. Bug #416239.
|
||||||
|
|
||||||
2007-02-10 Jens Granseuer <jensgr@gmx.net>
|
2007-02-10 Jens Granseuer <jensgr@gmx.net>
|
||||||
|
|
||||||
Patch by: Patrick Wade <patrick.wade@sun.com>
|
Patch by: Patrick Wade <patrick.wade@sun.com>
|
||||||
|
|
|
@ -172,7 +172,7 @@ create_dialog (void)
|
||||||
view = sound_view_new (props);
|
view = sound_view_new (props);
|
||||||
box = glade_xml_get_widget (dialog, "events_vbox");
|
box = glade_xml_get_widget (dialog, "events_vbox");
|
||||||
gtk_box_pack_start (GTK_BOX (box), view, TRUE, TRUE, 0);
|
gtk_box_pack_start (GTK_BOX (box), view, TRUE, TRUE, 0);
|
||||||
gtk_widget_show_all (view);
|
gtk_widget_show (view);
|
||||||
|
|
||||||
g_signal_connect_swapped (G_OBJECT (widget), "destroy",
|
g_signal_connect_swapped (G_OBJECT (widget), "destroy",
|
||||||
(GCallback) gtk_object_destroy, props);
|
(GCallback) gtk_object_destroy, props);
|
||||||
|
@ -1019,7 +1019,15 @@ main (int argc, char **argv)
|
||||||
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
|
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
|
||||||
textdomain (GETTEXT_PACKAGE);
|
textdomain (GETTEXT_PACKAGE);
|
||||||
|
|
||||||
context = g_option_context_new (_("- GNOME Sound Preferences"));
|
/* Since gstreamer and gnome-vfs require threads, we
|
||||||
|
* have to initialise threads here as the first call to glib.
|
||||||
|
*/
|
||||||
|
g_thread_init (NULL);
|
||||||
|
|
||||||
|
context = g_option_context_new (N_("- GNOME Sound Preferences"));
|
||||||
|
#if GLIB_CHECK_VERSION (2, 12, 0)
|
||||||
|
g_option_context_set_translation_domain (context, GETTEXT_PACKAGE);
|
||||||
|
#endif
|
||||||
g_option_context_add_main_entries (context, cap_options, GETTEXT_PACKAGE);
|
g_option_context_add_main_entries (context, cap_options, GETTEXT_PACKAGE);
|
||||||
g_option_context_add_group (context, gst_init_get_option_group ());
|
g_option_context_add_group (context, gst_init_get_option_group ());
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue