From 1e9f14ebee8ca316ed6bee1758e93d0e5b295bee Mon Sep 17 00:00:00 2001 From: JosephMcc Date: Thu, 6 Oct 2016 11:39:05 -0700 Subject: [PATCH] xed-close-button: Convert to using a symbolic icon Also remove some use of deprecated GtkRcStyle --- xed/xed-close-button.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/xed/xed-close-button.c b/xed/xed-close-button.c index 4150a61..ba82508 100644 --- a/xed/xed-close-button.c +++ b/xed/xed-close-button.c @@ -47,17 +47,9 @@ xed_close_button_class_init (XedCloseButtonClass *klass) static void xed_close_button_init (XedCloseButton *button) { - GtkRcStyle *rcstyle; GtkWidget *image; - /* make it as small as possible */ - rcstyle = gtk_rc_style_new (); - rcstyle->xthickness = rcstyle->ythickness = 0; - gtk_widget_modify_style (GTK_WIDGET (button), rcstyle); - g_object_unref (rcstyle); - - image = gtk_image_new_from_stock (GTK_STOCK_CLOSE, - GTK_ICON_SIZE_MENU); + image = gtk_image_new_from_icon_name ("window-close-symbolic", GTK_ICON_SIZE_MENU); gtk_widget_show (image); gtk_container_add (GTK_CONTAINER (button), image);