Use a symbolic icon for the close button

parent e1f854c4
......@@ -54,10 +54,12 @@ gedit_close_button_init (GeditCloseButton *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 @@ gedit_close_button_init (GeditCloseButton *button)
context = gtk_widget_get_style_context (GTK_WIDGET (button));
gtk_style_context_add_provider (context,
GTK_STYLE_PROVIDER (GEDIT_CLOSE_BUTTON_GET_CLASS (button)->priv->css),
GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
}
GtkWidget *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment