[gtk+/gtk-style-context] GtkStyle: transform tabs' detail string.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-style-context] GtkStyle: transform tabs' detail string.
- Date: Mon, 15 Nov 2010 22:29:46 +0000 (UTC)
commit b7d9b32e400624c8b941e15a03fda1ab32064a70
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Nov 15 23:27:44 2010 +0100
GtkStyle: transform tabs' detail string.
gtk/gtkstyle.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkstyle.c b/gtk/gtkstyle.c
index 3eca201..ff3ba06 100644
--- a/gtk/gtkstyle.c
+++ b/gtk/gtkstyle.c
@@ -1800,6 +1800,11 @@ transform_detail_string (const gchar *detail,
gtk_style_context_add_class (context, "dock");
else if (strcmp (detail, "notebook") == 0)
gtk_style_context_add_class (context, "notebook");
+ else if (strcmp (detail, "tab") == 0)
+ {
+ gtk_style_context_add_class (context, "notebook");
+ gtk_style_context_add_region (context, GTK_STYLE_REGION_TAB, 0);
+ }
else if (g_str_has_prefix (detail, "cell"))
{
GtkRegionFlags row, col;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]