diff options
author | Benjamin Otte <otte@redhat.com> | 2014-06-19 20:00:16 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2014-06-19 22:26:51 +0200 |
commit | d80bf0790d0903ba2825f306b6f7435529f922e2 (patch) | |
tree | 290d028097851cb343496b21c6922806d01d3fdd /gtk/gtknotebook.c | |
parent | 8451b15d6ec9f181ccc716c87c1fee66a402db21 (diff) | |
download | gtk+-d80bf0790d0903ba2825f306b6f7435529f922e2.tar.gz |
stylecontext: Deprecate regions
Regions are done in a very non-css way. They don't fit the DOM in that
they don't integrate into the CSS tree and they have very weird matching
behavior in selectors.
So I'm deprecating them now. GtkNotebook and GtkTreeview will continue
to use them and as long as they do, we can't remove the code for it.
But once those are ported it might be safe to remove the code as it will
clean up lots of places in the code by quite a bit.
Diffstat (limited to 'gtk/gtknotebook.c')
-rw-r--r-- | gtk/gtknotebook.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index 4cc472c317..73616715f9 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -2035,7 +2035,9 @@ notebook_tab_prepare_style_context (GtkNotebook *notebook, if (use_flags && (page != NULL)) flags = _gtk_notebook_get_tab_flags (notebook, page); +G_GNUC_BEGIN_IGNORE_DEPRECATIONS gtk_style_context_add_region (context, GTK_STYLE_REGION_TAB, flags); +G_GNUC_END_IGNORE_DEPRECATIONS add_tab_position_style_class (context, tab_pos); return state; |