xed-close-button: Convert to using a symbolic icon

Also remove some use of deprecated GtkRcStyle
This commit is contained in:
JosephMcc 2016-10-06 11:39:05 -07:00
parent bafaeaca98
commit 1e9f14ebee
1 changed files with 1 additions and 9 deletions

View File

@ -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);