fix floating reference glib warning (#11948)
use gtk_widget_destroy() rather than g_object_unref() on the floating temporary menubar widget that we use to calculate colors
This commit is contained in:
parent
55d4d74624
commit
56859531cd
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ void GetMenuBarColor(SkColor* enabled,
|
||||||
*highlight = GetStyleContextFgColor(sc, GTK_STATE_FLAG_SELECTED);
|
*highlight = GetStyleContextFgColor(sc, GTK_STATE_FLAG_SELECTED);
|
||||||
*hover = GetStyleContextFgColor(sc, GTK_STATE_FLAG_PRELIGHT);
|
*hover = GetStyleContextFgColor(sc, GTK_STATE_FLAG_PRELIGHT);
|
||||||
*background = GetStyleContextBgColor(sc, GTK_STATE_FLAG_NORMAL);
|
*background = GetStyleContextBgColor(sc, GTK_STATE_FLAG_NORMAL);
|
||||||
g_object_unref(G_OBJECT(menu_bar));
|
gtk_widget_destroy(GTK_WIDGET(menu_bar));
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // USE_X11
|
#endif // USE_X11
|
||||||
|
|
Loading…
Reference in a new issue