gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r22083 - in gnunet-gtk: contrib src/fs


From: gnunet
Subject: [GNUnet-SVN] r22083 - in gnunet-gtk: contrib src/fs
Date: Mon, 18 Jun 2012 21:10:43 +0200

Author: grothoff
Date: 2012-06-18 21:10:43 +0200 (Mon, 18 Jun 2012)
New Revision: 22083

Modified:
   gnunet-gtk/contrib/gnunet_fs_gtk_main_window.glade
   gnunet-gtk/src/fs/gnunet-fs-gtk.c
Log:
-LRN: drag-end was the wrong signal to listen to, and with configure-event
it's now redundant to listen to size-request

Modified: gnunet-gtk/contrib/gnunet_fs_gtk_main_window.glade
===================================================================
--- gnunet-gtk/contrib/gnunet_fs_gtk_main_window.glade  2012-06-18 15:33:04 UTC 
(rev 22082)
+++ gnunet-gtk/contrib/gnunet_fs_gtk_main_window.glade  2012-06-18 19:10:43 UTC 
(rev 22083)
@@ -202,8 +202,8 @@
     <property name="default_height">500</property>
     <property name="icon_name">gnunet-gtk</property>
     <signal name="button-press-event" 
handler="GNUNET_FS_GTK_main_window_button_press_event" swapped="no"/>
+    <signal name="configure-event" 
handler="GNUNET_GTK_main_window_configure_event_cb" swapped="no"/>
     <signal name="delete-event" handler="GNUNET_FS_GTK_delete_event_cb" 
after="yes" swapped="no"/>
-    <signal name="drag-end" handler="GNUNET_FS_GTK_main_window_drag_end" 
swapped="no"/>
     <child>
       <object class="GtkVBox" id="GNUNET_GTK_main_window_vbox">
         <property name="visible">True</property>

Modified: gnunet-gtk/src/fs/gnunet-fs-gtk.c
===================================================================
--- gnunet-gtk/src/fs/gnunet-fs-gtk.c   2012-06-18 15:33:04 UTC (rev 22082)
+++ gnunet-gtk/src/fs/gnunet-fs-gtk.c   2012-06-18 19:10:43 UTC (rev 22083)
@@ -162,35 +162,19 @@
  *
  * @param main_window main window widget
  */
-void
-GNUNET_FS_GTK_main_window_drag_end (GtkWidget *main_window,
-                                   GdkDragContext *drag_context,
-                                   gpointer user_data)
+gboolean
+GNUNET_GTK_main_window_configure_event_cb (GtkWidget *main_window,
+                                          GdkEventConfigure *event,
+                                          gpointer user_data)
 {
   struct GNUNET_GTK_MainWindowContext *main_context = user_data;
 
   main_window_save_position (main_context->main_window);
+  return FALSE;
 }
 
 
 /**
- * Obtains main window position and size before it's destroyed
- * and saves these into user's config file.
- *
- * @param main_window main window widget
- */
-void
-GNUNET_FS_GTK_main_window_size_request (GtkWidget *main_window,
-                                       GtkRequisition *requisition,
-                                       gpointer user_data)
-{
-  struct GNUNET_GTK_MainWindowContext *main_context = user_data;
-
-  main_window_save_position (main_context->main_window);
-}
-
-
-/**
  * Task run on shutdown.
  * FIXME-STYLE: does this need to be a separate task!?
  *




reply via email to

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