summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2016-01-11 17:46:15 +0100
committerBenjamin Otte <otte@redhat.com>2016-01-11 17:46:15 +0100
commitb917a0b155b005dee625b3b35f1072c916023640 (patch)
tree38113835dad7588307397d9d1effbfd9269065e0 /gtk
parent6d5edd18cf5637274762b7a51488d27d5bed600d (diff)
downloadgtk+-b917a0b155b005dee625b3b35f1072c916023640.tar.gz
notebook: Add .dnd style class to tabs during reorder
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtknotebook.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index 426281f24c..135c3eb7e1 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -2982,6 +2982,7 @@ show_drag_window (GtkNotebook *notebook,
gtk_widget_set_parent_window (page->tab_label, priv->drag_window);
gtk_widget_set_child_visible (page->tab_label, TRUE);
g_object_unref (page->tab_label);
+ gtk_css_gadget_add_class (page->gadget, GTK_STYLE_CLASS_DND);
/* the grab will dissapear when the window is hidden */
gdk_seat_grab (gdk_device_get_seat (device), priv->drag_window,
@@ -3016,6 +3017,8 @@ hide_drag_window (GtkNotebook *notebook,
g_object_unref (page->tab_label);
}
+ gtk_css_gadget_remove_class (page->gadget, GTK_STYLE_CLASS_DND);
+
if (priv->drag_window &&
gdk_window_is_visible (priv->drag_window))
gdk_window_hide (priv->drag_window);