From 1e783c9ecde57c5f51ed00b3938db3db0df526d1 Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Sun, 28 Jan 2018 23:45:02 +0100 Subject: Add icon image on close button in preferences dialog --- src/math-preferences.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/math-preferences.c b/src/math-preferences.c index d6f4e25..13f5597 100644 --- a/src/math-preferences.c +++ b/src/math-preferences.c @@ -238,8 +238,8 @@ create_gui(MathPreferencesDialog *dialog) _("Preferences")); gtk_container_set_border_width(GTK_CONTAINER(dialog), 8); gtk_dialog_add_button(GTK_DIALOG(dialog), - /* Label on close button in preferences dialog */ - _("_Close"), 0); + /* Icon name on close button in preferences dialog */ + "gtk-close", GTK_RESPONSE_CLOSE); g_signal_connect(dialog, "response", G_CALLBACK(preferences_response_cb), NULL); g_signal_connect(dialog, "delete-event", G_CALLBACK(preferences_dialog_delete_cb), NULL); gtk_box_pack_start(GTK_BOX(gtk_dialog_get_content_area(GTK_DIALOG(dialog))), GET_WIDGET(dialog->priv->ui, "preferences_table"), TRUE, TRUE, 0); -- cgit v1.2.1