[gtranslator] Updated close button from Gedit
- From: Daniel Mustieles GarcÃa <dmustieles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtranslator] Updated close button from Gedit
- Date: Sat, 21 Apr 2012 10:36:54 +0000 (UTC)
commit 39eb6aab49325d066f8a08a2580b6cba4ba886aa
Author: Daniel Mustieles <daniel mustieles gmail com>
Date: Sat Apr 21 12:26:41 2012 +0200
Updated close button from Gedit
src/gtr-close-button.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/gtr-close-button.c b/src/gtr-close-button.c
index e4374ea..b9a60fc 100644
--- a/src/gtr-close-button.c
+++ b/src/gtr-close-button.c
@@ -54,10 +54,12 @@ gtr_close_button_init (GtrCloseButton *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 @@ gtr_close_button_init (GtrCloseButton *button)
context = gtk_widget_get_style_context (GTK_WIDGET (button));
gtk_style_context_add_provider (context,
GTK_STYLE_PROVIDER (GTR_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]