gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r19679 - gnunet-gtk/src/fs


From: gnunet
Subject: [GNUnet-SVN] r19679 - gnunet-gtk/src/fs
Date: Sat, 4 Feb 2012 00:44:23 +0100

Author: grothoff
Date: 2012-02-04 00:44:23 +0100 (Sat, 04 Feb 2012)
New Revision: 19679

Modified:
   gnunet-gtk/src/fs/gnunet-fs-gtk_download-save-as.c
Log:
-stupid, stupid stupid

Modified: gnunet-gtk/src/fs/gnunet-fs-gtk_download-save-as.c
===================================================================
--- gnunet-gtk/src/fs/gnunet-fs-gtk_download-save-as.c  2012-02-03 23:29:51 UTC 
(rev 19678)
+++ gnunet-gtk/src/fs/gnunet-fs-gtk_download-save-as.c  2012-02-03 23:44:23 UTC 
(rev 19679)
@@ -49,10 +49,6 @@
    */
   GtkWidget *dialog;
 
-  /**
-   * Final response code from the dialog.
-   */
-  gint response;
 };
 
 
@@ -118,13 +114,7 @@
 
   dc = dlc->dc;
 
-  /* FIXME: we should get '-5' (OK) when the user presses 'save'
-     (that's the number set in the glade file), but somehow we do not :-( */
-  fprintf (stderr,
-          "Dialog response code is %d\n",
-          dlc->response);
-
-  if (GTK_RESPONSE_OK != dlc->response)
+  if (GTK_RESPONSE_OK != response_id)
   {
     save_as_dialog_free_download_context (dc);
     gtk_widget_destroy (GTK_WIDGET (dialog));
@@ -213,6 +203,8 @@
     gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (dlc->dialog), 
basename);
     GNUNET_free (dirname);
   }
+  gtk_dialog_set_default_response (GTK_DIALOG (dlc->dialog),
+                                  GTK_RESPONSE_OK);
   gtk_window_present (GTK_WINDOW (dlc->dialog));
 }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]