API: Add gtk_style_context_get_section()

This API allows querying the location where style properties were
defined. An example implementation will be committed soon.
This commit is contained in:
Benjamin Otte
2012-01-11 05:17:35 +01:00
parent 6962b49a99
commit a815f10299
4 changed files with 47 additions and 0 deletions

View File

@ -25,6 +25,7 @@
#define __GTK_STYLE_CONTEXT_H__
#include <glib-object.h>
#include <gtk/gtkcsssection.h>
#include <gtk/gtkstyleprovider.h>
#include <gtk/gtkwidgetpath.h>
#include <gtk/gtkborder.h>
@ -717,6 +718,8 @@ void gtk_style_context_remove_provider (GtkStyleContext *context,
void gtk_style_context_save (GtkStyleContext *context);
void gtk_style_context_restore (GtkStyleContext *context);
GtkCssSection * gtk_style_context_get_section (GtkStyleContext *context,
const gchar *property);
void gtk_style_context_get_property (GtkStyleContext *context,
const gchar *property,
GtkStateFlags state,