forked from AuroraMiddleware/gtk
shortcuts: Cosmetic change
The .flat style class is controlled by the relief property, so just use that instead of manually setting style classes.
This commit is contained in:
parent
953aa45c04
commit
6efbf329c3
@ -26,6 +26,7 @@
|
|||||||
#include "gtkshortcutsshortcut.h"
|
#include "gtkshortcutsshortcut.h"
|
||||||
#include "gtksearchbar.h"
|
#include "gtksearchbar.h"
|
||||||
#include "gtksearchentry.h"
|
#include "gtksearchentry.h"
|
||||||
|
#include "gtkwidgetprivate.h"
|
||||||
#include "gtkprivate.h"
|
#include "gtkprivate.h"
|
||||||
#include "gtkintl.h"
|
#include "gtkintl.h"
|
||||||
|
|
||||||
@ -753,8 +754,8 @@ gtk_shortcuts_window_init (GtkShortcutsWindow *self)
|
|||||||
priv->menu_button = g_object_new (GTK_TYPE_MENU_BUTTON,
|
priv->menu_button = g_object_new (GTK_TYPE_MENU_BUTTON,
|
||||||
"focus-on-click", FALSE,
|
"focus-on-click", FALSE,
|
||||||
"visible", TRUE,
|
"visible", TRUE,
|
||||||
|
"relief", GTK_RELIEF_NONE,
|
||||||
NULL);
|
NULL);
|
||||||
gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (priv->menu_button)), "flat");
|
|
||||||
gtk_stack_add_named (priv->title_stack, GTK_WIDGET (priv->menu_button), "sections");
|
gtk_stack_add_named (priv->title_stack, GTK_WIDGET (priv->menu_button), "sections");
|
||||||
|
|
||||||
menu_box = g_object_new (GTK_TYPE_BOX,
|
menu_box = g_object_new (GTK_TYPE_BOX,
|
||||||
|
Loading…
Reference in New Issue
Block a user