[nautilus] toolbar: Add style "titlebutton" for the close button
- From: Yosef Or Boczko <yoseforb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] toolbar: Add style "titlebutton" for the close button
- Date: Thu, 29 Aug 2013 14:49:00 +0000 (UTC)
commit 40490b472a45b72ebe8cccd3c57e19047e7218f3
Author: Yosef Or Boczko <yoseforb gmail com>
Date: Thu Aug 29 15:05:35 2013 +0300
toolbar: Add style "titlebutton" for the close button
src/nautilus-toolbar.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-toolbar.c b/src/nautilus-toolbar.c
index c9c12b2..d44ba37 100644
--- a/src/nautilus-toolbar.c
+++ b/src/nautilus-toolbar.c
@@ -525,6 +525,8 @@ nautilus_toolbar_constructed (GObject *obj)
button = gtk_button_new_from_icon_name ("window-close-symbolic",
GTK_ICON_SIZE_MENU);
gtk_button_set_relief (GTK_BUTTON (button), GTK_RELIEF_NONE);
+ gtk_style_context_add_class (gtk_widget_get_style_context (button),
+ "titlebutton");
g_signal_connect (button, "clicked",
G_CALLBACK (close_button_clicked), self);
gtk_container_add (GTK_CONTAINER (toolbar), button);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]