[gnome-session] [capplet] Stop drag_data_received signal after handling the drop



commit 760db1b13b6f3b917a4544347192675ae5c83639
Author: Vincent Untz <vuntz gnome org>
Date:   Tue Jun 23 14:55:47 2009 +0200

    [capplet] Stop drag_data_received signal after handling the drop
    
    This is needed to avoid a warning from GTK+, since the signal handle
    actually doesn't return a boolean to tell GTK+ to continue/stop.

 capplet/gsm-properties-dialog.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/capplet/gsm-properties-dialog.c b/capplet/gsm-properties-dialog.c
index 8987794..b0db1af 100644
--- a/capplet/gsm-properties-dialog.c
+++ b/capplet/gsm-properties-dialog.c
@@ -272,7 +272,7 @@ on_startup_enabled_toggled (GtkCellRendererToggle *cell_renderer,
         }
 }
 
-static gboolean
+static void
 on_drag_data (GtkWidget           *widget,
               GdkDragContext      *drag_context,
               gint                 x,
@@ -303,7 +303,7 @@ on_drag_data (GtkWidget           *widget,
         }
 
         gtk_drag_finish (drag_context, dnd_success, FALSE, time);
-        return TRUE;
+        g_signal_stop_emission_by_name (widget, "drag-data-received");
 }
 
 static void



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