# This bug has already been reported to the GNOME Bugzilla as 324240. forwarded 367693 http://bugzilla.gnome.org/show_bug.cgi?id=324240 # The attached patch, extracted from upstream CVS, fixes this # problem. This bug is also fixed in version 1.4.0. tags 367693 patch thanks
-- Matt
diff -ru totem-1.2.1-orig/src/totem-uri.c totem-1.2.1/src/totem-uri.c --- totem-1.2.1-orig/src/totem-uri.c 2006-05-17 10:42:40.000000000 -0700 +++ totem-1.2.1/src/totem-uri.c 2006-05-17 10:44:10.000000000 -0700 @@ -222,6 +222,7 @@ filter_all = gtk_file_filter_new (); gtk_file_filter_set_name (filter_all, _("All files")); gtk_file_filter_add_pattern (filter_all, "*"); + g_object_ref (filter_all); filter_supported = gtk_file_filter_new (); gtk_file_filter_set_name (filter_supported, @@ -229,6 +230,14 @@ for (i = 0; i < G_N_ELEMENTS (mime_types); i++) { gtk_file_filter_add_mime_type (filter_supported, mime_types[i]); } + g_object_ref (filter_supported); +} + +void +totem_destroy_file_filters (void) +{ + g_object_unref (filter_all); + g_object_unref (filter_supported); } GSList * @@ -262,8 +271,10 @@ while (gtk_events_pending()) gtk_main_iteration(); - if (response != GTK_RESPONSE_ACCEPT) + if (response != GTK_RESPONSE_ACCEPT) { + gtk_widget_destroy (fs); return NULL; + } filenames = gtk_file_chooser_get_uris (GTK_FILE_CHOOSER (fs)); if (filenames == NULL) { diff -ru totem-1.2.1-orig/src/totem-uri.h totem-1.2.1/src/totem-uri.h --- totem-1.2.1-orig/src/totem-uri.h 2006-05-17 10:42:40.000000000 -0700 +++ totem-1.2.1/src/totem-uri.h 2006-05-17 10:44:50.000000000 -0700 @@ -34,6 +34,7 @@ gboolean totem_is_block_device (const char *uri); void totem_setup_file_monitoring (Totem *totem); void totem_setup_file_filters (void); +void totem_destroy_file_filters (void); char* totem_uri_get_subtitle_uri (const char *uri); char* totem_uri_escape_for_display (const char *uri); GSList* totem_add_files (GtkWindow *parent, diff -ru totem-1.2.1-orig/src/totem.c totem-1.2.1/src/totem.c --- totem-1.2.1-orig/src/totem.c 2006-05-17 10:42:40.000000000 -0700 +++ totem-1.2.1/src/totem.c 2006-05-17 10:45:52.000000000 -0700 @@ -194,6 +194,7 @@ totem_action_fullscreen (totem, FALSE); totem_sublang_exit (totem); + totem_destroy_file_filters (); totem_named_icons_dispose (totem); if (totem->bvw)
signature.asc
Description: Digital signature