[gtk+] Revert "WIP: make GtkNotebook window-draggable"



commit d44edc1f7de64ac22fda0712ba4d7590b501a013
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Apr 28 02:06:37 2012 -0400

    Revert "WIP: make GtkNotebook window-draggable"
    
    This reverts commit b3a66c59ade144c094d4dbc568e33a5ef85c1a7d.

 gtk/gtknotebook.c |   26 --------------------------
 tests/testgtk.css |    4 ----
 2 files changed, 0 insertions(+), 30 deletions(-)
---
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index 5deaed6..5978e3d 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -2949,32 +2949,6 @@ gtk_notebook_button_press (GtkWidget      *widget,
           priv->drag_offset_y = priv->drag_begin_y - page->allocation.y;
         }
     }
-  else
-    {
-      GtkWidget *window;
-      window = gtk_widget_get_toplevel (widget);
-
-      if (window)
-        {
-          gboolean window_drag = FALSE;
-          gtk_widget_style_get (widget,
-                                "window-dragging", &window_drag,
-                                NULL);
-
-          if (window_drag)
-            {
-              priv->during_detach = FALSE;
-              priv->during_reorder = FALSE;
-              priv->pressed_button = event->button;
-
-              gtk_window_begin_move_drag (GTK_WINDOW (window),
-                                          event->button,
-                                          event->x_root,
-                                          event->y_root,
-                                          event->time);
-            }
-        }
-    }
 
   return TRUE;
 }
diff --git a/tests/testgtk.css b/tests/testgtk.css
index 5a6c6c1..f5e8694 100644
--- a/tests/testgtk.css
+++ b/tests/testgtk.css
@@ -24,10 +24,6 @@
     -Gtest-bar: 47;
 }
 
-GtkNotebook {
-    -GtkWidget-window-dragging: true;
-}
-
 GtkLabel:selected {
     background-color: gray;
 }



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