Merge pull request #43 from JosephMcc/notebook-button

xed-close-button: Convert to using a symbolic icon
This commit is contained in:
Clement Lefebvre 2016-10-07 11:22:32 +01:00 committed by GitHub
commit 4e1a63347a
1 changed files with 1 additions and 9 deletions

View File

@ -47,17 +47,9 @@ xed_close_button_class_init (XedCloseButtonClass *klass)
static void static void
xed_close_button_init (XedCloseButton *button) xed_close_button_init (XedCloseButton *button)
{ {
GtkRcStyle *rcstyle;
GtkWidget *image; GtkWidget *image;
/* make it as small as possible */ image = gtk_image_new_from_icon_name ("window-close-symbolic", GTK_ICON_SIZE_MENU);
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);
gtk_widget_show (image); gtk_widget_show (image);
gtk_container_add (GTK_CONTAINER (button), image); gtk_container_add (GTK_CONTAINER (button), image);