summaryrefslogtreecommitdiff
path: root/src/color.c
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2015-03-22 04:57:05 +0000
committerJavier Jardón <jjardon@gnome.org>2015-03-22 09:16:16 +0000
commit6fcbb80fd1b5268fbedcdb985ffa873a2e475840 (patch)
treef524152264d2e8ff1d16f1622ddaf160f014ec1c /src/color.c
parentsrc/zenity.ui: Do not use deprecated stock images (diff)
downloadzenity-6fcbb80fd1b5268fbedcdb985ffa873a2e475840.tar.gz
zenity-6fcbb80fd1b5268fbedcdb985ffa873a2e475840.tar.bz2
zenity-6fcbb80fd1b5268fbedcdb985ffa873a2e475840.zip
Do not use an icon for Cancel/OK buttons
GTK+ documentation recommends to not use an icons, but use "_OK"/"_Cancel" labels instead
Diffstat (limited to 'src/color.c')
-rw-r--r--src/color.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/color.c b/src/color.c
index e3b8a428..6820bbbe 100644
--- a/src/color.c
+++ b/src/color.c
@@ -60,16 +60,12 @@ void zenity_colorselection (ZenityData *data, ZenityColorData *color_data)
if (data->ok_label) {
g_object_get (G_OBJECT (dialog), "ok-button", &button, NULL);
gtk_button_set_label (GTK_BUTTON (button), data->ok_label);
- gtk_button_set_image (GTK_BUTTON (button),
- gtk_image_new_from_stock (GTK_STOCK_OK, GTK_ICON_SIZE_BUTTON));
g_object_unref (G_OBJECT (button));
}
if (data->cancel_label) {
g_object_get (G_OBJECT (dialog), "cancel-button", &button, NULL);
gtk_button_set_label (GTK_BUTTON (button), data->cancel_label);
- gtk_button_set_image (GTK_BUTTON (button),
- gtk_image_new_from_stock (GTK_STOCK_CANCEL, GTK_ICON_SIZE_BUTTON));
g_object_unref (G_OBJECT (button));
}
bgstack15