diff options
author | Timm Bäder <mail@baedert.org> | 2016-10-05 18:35:52 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2016-10-16 18:17:21 +0200 |
commit | 58a76b700f9f6d5f05d1cbae86af311ea617d5f4 (patch) | |
tree | 166398ed6bc72b5bfd021c6e9379388a5091612a | |
parent | ed184b393593059f9c99280fb9ca685a36a483a1 (diff) | |
download | gtk+-58a76b700f9f6d5f05d1cbae86af311ea617d5f4.tar.gz |
stylecontext: Remove _REGION_ constants
-rw-r--r-- | docs/reference/gtk/gtk4-sections.txt | 5 | ||||
-rw-r--r-- | gtk/gtkstylecontext.h | 36 | ||||
-rw-r--r-- | tests/styleexamples.c | 2 |
3 files changed, 1 insertions, 42 deletions
diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt index 9c137e180f..57fdbd6711 100644 --- a/docs/reference/gtk/gtk4-sections.txt +++ b/docs/reference/gtk/gtk4-sections.txt @@ -5776,11 +5776,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/gtkstylecontext.h b/gtk/gtkstylecontext.h index 3b39d1f5d5..0ca572c44a 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 a20e2d6ebd..4020b4f93b 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); |