[gnome-terminal/gnome-3-4] Use symbolic icon for the close button
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-terminal/gnome-3-4] Use symbolic icon for the close button
- Date: Tue, 7 Feb 2012 18:11:24 +0000 (UTC)
commit 19c0da93361f8f33a7994347bba68b108e51bf49
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Wed Jan 4 19:06:43 2012 +0100
Use symbolic icon for the close button
Cherry-picked from commit 9612d00d60db74351fa5f9e440957f5a0d39c54d on
the 'gsettings' branch.
Conflicts:
src/terminal-close-button.c
src/terminal-close-button.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/terminal-close-button.c b/src/terminal-close-button.c
index b178748..ab1430d 100644
--- a/src/terminal-close-button.c
+++ b/src/terminal-close-button.c
@@ -85,11 +85,13 @@ static void
terminal_close_button_init (TerminalCloseButton *button)
{
GtkWidget *image;
+ GIcon *icon;
- image = gtk_image_new_from_stock (GTK_STOCK_CLOSE,
- GTK_ICON_SIZE_MENU);
- gtk_widget_show (image);
+ icon = g_themed_icon_new_with_default_fallbacks ("window-close-symbolic");
+ image = gtk_image_new_from_gicon (icon, GTK_ICON_SIZE_MENU);
+ g_object_unref (icon);
+ gtk_widget_show (image);
gtk_container_add (GTK_CONTAINER (button), image);
#if GTK_CHECK_VERSION (3, 0, 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]