[gtk+/gtk-3-22] gtkheaderbar: add style classes to all title buttons
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-22] gtkheaderbar: add style classes to all title buttons
- Date: Thu, 6 Apr 2017 12:36:26 +0000 (UTC)
commit 124b62881a2fd7ecb17d37d44215b9027b520156
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Thu Apr 6 11:16:12 2017 +0300
gtkheaderbar: add style classes to all title buttons
Commit b187773053098cca1b7c23e04e096d47fbb65a5f added CSS style
classes for minimize, maximize and close buttons. Add similar classes
also to icon and menu buttons.
https://bugzilla.gnome.org/show_bug.cgi?id=780944
gtk/gtkheaderbar.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkheaderbar.c b/gtk/gtkheaderbar.c
index 8ea664c..3a6eeab 100644
--- a/gtk/gtkheaderbar.c
+++ b/gtk/gtkheaderbar.c
@@ -356,6 +356,7 @@ _gtk_header_bar_update_window_buttons (GtkHeaderBar *bar)
gtk_widget_set_valign (button, GTK_ALIGN_CENTER);
priv->titlebar_icon = button;
gtk_style_context_add_class (gtk_widget_get_style_context (button), "titlebutton");
+ gtk_style_context_add_class (gtk_widget_get_style_context (button), "icon");
gtk_widget_set_size_request (button, 20, 20);
gtk_widget_show (button);
if (!_gtk_header_bar_update_window_icon (bar, window))
@@ -374,6 +375,7 @@ _gtk_header_bar_update_window_buttons (GtkHeaderBar *bar)
gtk_menu_button_set_menu_model (GTK_MENU_BUTTON (button), menu);
gtk_menu_button_set_use_popover (GTK_MENU_BUTTON (button), TRUE);
gtk_style_context_add_class (gtk_widget_get_style_context (button), "titlebutton");
+ gtk_style_context_add_class (gtk_widget_get_style_context (button), "appmenu");
image = gtk_image_new ();
gtk_container_add (GTK_CONTAINER (button), image);
gtk_widget_set_can_focus (button, FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]