summaryrefslogtreecommitdiff
path: root/gtk/gtknotebook.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2010-12-22 18:46:29 -0500
committerMatthias Clasen <mclasen@redhat.com>2010-12-22 18:46:29 -0500
commit9baf24f87e504363e8b313f2ec02d84f13c5e262 (patch)
tree92f0ce8513a6541df1719975c85e27aeef987893 /gtk/gtknotebook.c
parente6693ab8402b85b15c3c9711b16423a0e0948de5 (diff)
downloadgtk+-9baf24f87e504363e8b313f2ec02d84f13c5e262.tar.gz
Add a default handler for drag_failed
And use it in notebook dnd.
Diffstat (limited to 'gtk/gtknotebook.c')
-rw-r--r--gtk/gtknotebook.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index df0383d78f..062f337e05 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -371,8 +371,7 @@ static void gtk_notebook_drag_end (GtkWidget *widget,
GdkDragContext *context);
static gboolean gtk_notebook_drag_failed (GtkWidget *widget,
GdkDragContext *context,
- GtkDragResult result,
- gpointer data);
+ GtkDragResult result);
static gboolean gtk_notebook_drag_motion (GtkWidget *widget,
GdkDragContext *context,
gint x,
@@ -665,6 +664,7 @@ gtk_notebook_class_init (GtkNotebookClass *class)
widget_class->drag_drop = gtk_notebook_drag_drop;
widget_class->drag_data_get = gtk_notebook_drag_data_get;
widget_class->drag_data_received = gtk_notebook_drag_data_received;
+ widget_class->drag_failed = gtk_notebook_drag_failed;
widget_class->compute_expand = gtk_notebook_compute_expand;
container_class->add = gtk_notebook_add;
@@ -1202,9 +1202,6 @@ gtk_notebook_init (GtkNotebook *notebook)
notebook_targets, G_N_ELEMENTS (notebook_targets),
GDK_ACTION_MOVE);
- g_signal_connect (G_OBJECT (notebook), "drag-failed",
- G_CALLBACK (gtk_notebook_drag_failed), NULL);
-
gtk_drag_dest_set_track_motion (GTK_WIDGET (notebook), TRUE);
context = gtk_widget_get_style_context (GTK_WIDGET (notebook));
@@ -3588,8 +3585,7 @@ gtk_notebook_create_window (GtkNotebook *notebook,
static gboolean
gtk_notebook_drag_failed (GtkWidget *widget,
GdkDragContext *context,
- GtkDragResult result,
- gpointer data)
+ GtkDragResult result)
{
if (result == GTK_DRAG_RESULT_NO_TARGET)
{