[gedit] Use a symbolic icon for the close button
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Use a symbolic icon for the close button
- Date: Fri, 23 Dec 2011 19:23:17 +0000 (UTC)
commit fd8a704c6627d11a293dbe73cac53a6946d0b1a3
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Fri Dec 23 17:46:57 2011 +0100
Use a symbolic icon for the close button
gedit/gedit-close-button.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/gedit/gedit-close-button.c b/gedit/gedit-close-button.c
index 6a9021a..a0f7520 100644
--- a/gedit/gedit-close-button.c
+++ b/gedit/gedit-close-button.c
@@ -54,10 +54,12 @@ gedit_close_button_init (GeditCloseButton *button)
{
GtkStyleContext *context;
GtkWidget *image;
+ GIcon *icon;
- image = gtk_image_new_from_stock (GTK_STOCK_CLOSE,
- GTK_ICON_SIZE_MENU);
+ icon = g_themed_icon_new_with_default_fallbacks ("window-close-symbolic");
+ image = gtk_image_new_from_gicon (icon, GTK_ICON_SIZE_MENU);
gtk_widget_show (image);
+ g_object_unref(icon);
gtk_container_add (GTK_CONTAINER (button), image);
@@ -65,7 +67,7 @@ gedit_close_button_init (GeditCloseButton *button)
context = gtk_widget_get_style_context (GTK_WIDGET (button));
gtk_style_context_add_provider (context,
GTK_STYLE_PROVIDER (GEDIT_CLOSE_BUTTON_GET_CLASS (button)->priv->css),
- GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
+ GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
}
GtkWidget *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]