[gtk+/wip/baedert/box] stylecontext: Remove _REGION_ constants
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/box] stylecontext: Remove _REGION_ constants
- Date: Wed, 5 Oct 2016 17:42:01 +0000 (UTC)
commit 1c7a9e696c9bd8dd76fa1066fbb4c0f5053db59d
Author: Timm Bäder <mail baedert org>
Date: Wed Oct 5 18:35:52 2016 +0200
stylecontext: Remove _REGION_ constants
docs/reference/gtk/gtk3-sections.txt | 5 ----
gtk/deprecated/gtkstyle.c | 2 +-
gtk/gtkstylecontext.h | 36 ----------------------------------
tests/styleexamples.c | 2 +-
4 files changed, 2 insertions(+), 43 deletions(-)
---
diff --git a/docs/reference/gtk/gtk3-sections.txt b/docs/reference/gtk/gtk3-sections.txt
index 1330a63..76e938c 100644
--- a/docs/reference/gtk/gtk3-sections.txt
+++ b/docs/reference/gtk/gtk3-sections.txt
@@ -5865,11 +5865,6 @@ GTK_STYLE_CLASS_VIEW
GTK_STYLE_CLASS_WARNING
GTK_STYLE_CLASS_WIDE
<SUBSECTION>
-GTK_STYLE_REGION_COLUMN
-GTK_STYLE_REGION_COLUMN_HEADER
-GTK_STYLE_REGION_ROW
-GTK_STYLE_REGION_TAB
-<SUBSECTION>
GtkStyleContext
gtk_style_context_new
gtk_style_context_add_provider
diff --git a/gtk/deprecated/gtkstyle.c b/gtk/deprecated/gtkstyle.c
index f7f5b2f..e78baea 100644
--- a/gtk/deprecated/gtkstyle.c
+++ b/gtk/deprecated/gtkstyle.c
@@ -1564,7 +1564,7 @@ transform_detail_string (const gchar *detail,
else if (strcmp (detail, "tab") == 0)
{
gtk_style_context_add_class (context, "notebook");
- gtk_style_context_add_region (context, GTK_STYLE_REGION_TAB, 0);
+ gtk_style_context_add_region (context, "tab", 0);
}
else if (g_str_has_prefix (detail, "cell"))
{
diff --git a/gtk/gtkstylecontext.h b/gtk/gtkstylecontext.h
index c58b299..7e9efcd 100644
--- a/gtk/gtkstylecontext.h
+++ b/gtk/gtkstylecontext.h
@@ -979,42 +979,6 @@ struct _GtkStyleContextClass
*/
#define GTK_STYLE_CLASS_WIDE "wide"
-/**
- * GTK_STYLE_REGION_ROW:
- *
- * A widget region name to define a treeview row.
- *
- * Deprecated: 3.20: Don't use regions.
- */
-#define GTK_STYLE_REGION_ROW "row"
-
-/**
- * GTK_STYLE_REGION_COLUMN:
- *
- * A widget region name to define a treeview column.
- *
- * Deprecated: 3.20: Don't use regions.
- */
-#define GTK_STYLE_REGION_COLUMN "column"
-
-/**
- * GTK_STYLE_REGION_COLUMN_HEADER:
- *
- * A widget region name to define a treeview column header.
- *
- * Deprecated: 3.20: Don't use regions.
- */
-#define GTK_STYLE_REGION_COLUMN_HEADER "column-header"
-
-/**
- * GTK_STYLE_REGION_TAB:
- *
- * A widget region name to define a notebook tab.
- *
- * Deprecated: 3.20: Don't use regions.
- */
-#define GTK_STYLE_REGION_TAB "tab"
-
GDK_AVAILABLE_IN_ALL
GType gtk_style_context_get_type (void) G_GNUC_CONST;
diff --git a/tests/styleexamples.c b/tests/styleexamples.c
index a20e2d6..4020b4f 100644
--- a/tests/styleexamples.c
+++ b/tests/styleexamples.c
@@ -218,7 +218,7 @@ draw_cb_extension (GtkWidget *widget, cairo_t *cr)
gtk_style_context_add_class (context, "notebook");
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
- gtk_style_context_add_region (context, GTK_STYLE_REGION_TAB, 0);
+ gtk_style_context_add_region (context, "tab", 0);
G_GNUC_END_IGNORE_DEPRECATIONS
gtk_style_context_set_state (context, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]