[gtk+] notebook: add a style class when the child tab is reorderable



commit 66f802662235ef650dd02f094038c96bf03c61bb
Author: William Jon McCann <william jon mccann gmail com>
Date:   Fri Jan 24 16:29:31 2014 -0500

    notebook: add a style class when the child tab is reorderable

 gtk/gtknotebook.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index 0b0791d..b610b6c 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -2016,6 +2016,9 @@ notebook_tab_prepare_style_context (GtkNotebook *notebook,
 
   gtk_style_context_add_region (context, GTK_STYLE_REGION_TAB, flags);
 
+  if (page->reorderable)
+    gtk_style_context_add_class (context, "reorderable-page");
+
   switch (tab_pos)
     {
     case GTK_POS_TOP:


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