totem r5066 - in trunk: . src
- From: hadess svn gnome org
- To: svn-commits-list gnome org
- Subject: totem r5066 - in trunk: . src
- Date: Mon, 4 Feb 2008 17:04:29 +0000 (GMT)
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 <hadess hadess net>
* 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]