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

Resolves: tdf#89760 get correct menubar text color for 'close preview'

Change-Id: Ife6f2665eabeefd6125a53318404dbd7b9af42ee
üst e899f049
...@@ -1259,10 +1259,10 @@ GtkStyleContext* GtkSalGraphics::createNewContext(GtkControlPart ePart, gtk_widg ...@@ -1259,10 +1259,10 @@ GtkStyleContext* GtkSalGraphics::createNewContext(GtkControlPart ePart, gtk_widg
} }
case GtkControlPart::MenuBar: case GtkControlPart::MenuBar:
{ {
GtkWidgetPath *path = gtk_widget_path_new(); GtkWidgetPath *path = gtk_widget_path_copy(gtk_style_context_get_path(mpWindowStyle));
gtk_widget_path_append_type(path, GTK_TYPE_MENU_BAR); gtk_widget_path_append_type(path, GTK_TYPE_MENU_BAR);
set_object_name(path, -1, "menubar"); set_object_name(path, -1, "menubar");
return makeContext(path, nullptr); return makeContext(path, mpWindowStyle);
} }
case GtkControlPart::MenuBarItem: case GtkControlPart::MenuBarItem:
{ {
...@@ -1600,10 +1600,10 @@ GtkStyleContext* GtkSalGraphics::createOldContext(GtkControlPart ePart) ...@@ -1600,10 +1600,10 @@ GtkStyleContext* GtkSalGraphics::createOldContext(GtkControlPart ePart)
} }
case GtkControlPart::MenuBar: case GtkControlPart::MenuBar:
{ {
GtkWidgetPath *path = gtk_widget_path_new(); GtkWidgetPath *path = gtk_widget_path_copy(gtk_style_context_get_path(mpWindowStyle));
gtk_widget_path_append_type(path, GTK_TYPE_MENU_BAR); gtk_widget_path_append_type(path, GTK_TYPE_MENU_BAR);
gtk_widget_path_iter_add_class(path, -1, GTK_STYLE_CLASS_MENUBAR); gtk_widget_path_iter_add_class(path, -1, GTK_STYLE_CLASS_MENUBAR);
return makeContext(path, nullptr); return makeContext(path, mpWindowStyle);
} }
case GtkControlPart::MenuBarItem: case GtkControlPart::MenuBarItem:
{ {
......
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