Kaydet (Commit) 352ddafd authored tarafından Caolán McNamara's avatar Caolán McNamara

GTK_STYLE_CLASS_LABEL no defined in all versions

Change-Id: I648067e30d5a2e725111b2bc920367ac2d5e0f80
üst dcfddd3f
...@@ -1358,6 +1358,9 @@ GtkStyleContext* GtkSalGraphics::createNewContext(GtkControlPart ePart, gtk_widg ...@@ -1358,6 +1358,9 @@ GtkStyleContext* GtkSalGraphics::createNewContext(GtkControlPart ePart, gtk_widg
#ifndef GTK_STYLE_CLASS_POPUP #ifndef GTK_STYLE_CLASS_POPUP
#define GTK_STYLE_CLASS_POPUP "popup" #define GTK_STYLE_CLASS_POPUP "popup"
#endif #endif
#ifndef GTK_STYLE_CLASS_LABEL
#define GTK_STYLE_CLASS_LABEL "label"
#endif
GtkStyleContext* GtkSalGraphics::createOldContext(GtkControlPart ePart) GtkStyleContext* GtkSalGraphics::createOldContext(GtkControlPart ePart)
{ {
...@@ -2484,9 +2487,7 @@ void GtkSalGraphics::updateSettings( AllSettings& rSettings ) ...@@ -2484,9 +2487,7 @@ void GtkSalGraphics::updateSettings( AllSettings& rSettings )
guint pos = gtk_widget_path_append_type(pCPath, GTK_TYPE_WINDOW); guint pos = gtk_widget_path_append_type(pCPath, GTK_TYPE_WINDOW);
gtk_widget_path_iter_add_class(pCPath, pos, GTK_STYLE_CLASS_TOOLTIP); gtk_widget_path_iter_add_class(pCPath, pos, GTK_STYLE_CLASS_TOOLTIP);
pos = gtk_widget_path_append_type (pCPath, GTK_TYPE_LABEL); pos = gtk_widget_path_append_type (pCPath, GTK_TYPE_LABEL);
#if GTK_CHECK_VERSION(3,16,0)
gtk_widget_path_iter_add_class(pCPath, pos, GTK_STYLE_CLASS_LABEL); gtk_widget_path_iter_add_class(pCPath, pos, GTK_STYLE_CLASS_LABEL);
#endif
pCStyle = gtk_style_context_new(); pCStyle = gtk_style_context_new();
gtk_style_context_set_path(pCStyle, pCPath); gtk_style_context_set_path(pCStyle, pCPath);
gtk_widget_path_free(pCPath); gtk_widget_path_free(pCPath);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment