Author: hadess
Date: Mon Feb 4 17:04:29 2008
New Revision: 5066
URL: http://svn.gnome.org/viewvc/totem?rev=5066&view=rev
Log:
2008-02-04 Bastien Nocera <[EMAIL PROTECTED]>
* src/totem-uri.c: (totem_add_subtitle), (totem_add_files):
Set the default response, fixes "Enter" not changing directories
when using autocompletion (Closes: #514049), cleanup _add_files()
to destroy the file chooser earlier
Modified:
trunk/ChangeLog
trunk/src/totem-uri.c
Modified: trunk/src/totem-uri.c
==============================================================================
--- trunk/src/totem-uri.c (original)
+++ trunk/src/totem-uri.c Mon Feb 4 17:04:29 2008
@@ -516,6 +516,7 @@
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
NULL);
+ gtk_dialog_set_default_response (GTK_DIALOG (fs), GTK_RESPONSE_ACCEPT);
gtk_file_chooser_set_local_only (GTK_FILE_CHOOSER (fs), TRUE);
gtk_file_chooser_add_filter (GTK_FILE_CHOOSER (fs), filter_all);
gtk_file_chooser_add_filter (GTK_FILE_CHOOSER (fs), filter_subs);
@@ -599,9 +600,6 @@
totem_add_default_dirs (GTK_FILE_CHOOSER (fs));
response = gtk_dialog_run (GTK_DIALOG (fs));
- gtk_widget_hide (fs);
- while (gtk_events_pending())
- gtk_main_iteration();
if (response != GTK_RESPONSE_ACCEPT) {
gtk_widget_destroy (fs);
@@ -615,6 +613,7 @@
g_object_unref (conf);
return NULL;
}
+ gtk_widget_destroy (fs);
mrl = filenames->data;
if (mrl != NULL) {
@@ -624,7 +623,6 @@
g_free (new_path);
}
- gtk_widget_destroy (fs);
g_object_unref (conf);
return filenames;
_______________________________________________
SVN-commits-list mailing list (read only)
http://mail.gnome.org/mailman/listinfo/svn-commits-list
Want to limit the commits to a few modules? Go to above URL, log in to edit
your options and select the modules ('topics') you want.
Module maintainer? It is possible to set the reply-to to your development
mailing list. Email [EMAIL PROTECTED] if interested.