forked from AuroraMiddleware/gtk
menu button: Revisit style class one more time
Use .popup, which is already in use elsewhere, fits better with the other button differentiating style classes, and does not interfere with menus.
This commit is contained in:
parent
c925a840b2
commit
aa6e0ad3f2
@ -105,7 +105,7 @@
|
||||
* # CSS nodes
|
||||
*
|
||||
* GtkMenuButton has a single CSS node with name button. To differentiate
|
||||
* it from a plain #GtkButton, it gets the .menubutton style class.
|
||||
* it from a plain #GtkButton, it gets the .popup style class.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
@ -673,7 +673,7 @@ gtk_menu_button_init (GtkMenuButton *menu_button)
|
||||
gtk_widget_set_sensitive (GTK_WIDGET (menu_button), FALSE);
|
||||
|
||||
context = gtk_widget_get_style_context (GTK_WIDGET (menu_button));
|
||||
gtk_style_context_add_class (context, "menubutton");
|
||||
gtk_style_context_add_class (context, "popup");
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user