diff options
author | Javier Jardón <jjardon@gnome.org> | 2015-03-22 04:57:05 +0000 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2015-03-22 09:16:16 +0000 |
commit | 6fcbb80fd1b5268fbedcdb985ffa873a2e475840 (patch) | |
tree | f524152264d2e8ff1d16f1622ddaf160f014ec1c /src/msg.c | |
parent | src/zenity.ui: Do not use deprecated stock images (diff) | |
download | zenity-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/msg.c')
-rw-r--r-- | src/msg.c | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -40,14 +40,10 @@ zenity_msg_construct_question_dialog (GtkWidget *dialog, ZenityMsgData *msg_data if (data->cancel_label) { gtk_button_set_label (GTK_BUTTON (cancel_button), data->cancel_label); - gtk_button_set_image (GTK_BUTTON (cancel_button), - gtk_image_new_from_stock (GTK_STOCK_CANCEL, GTK_ICON_SIZE_BUTTON)); } if (data->ok_label) { gtk_button_set_label (GTK_BUTTON (ok_button), data->ok_label); - gtk_button_set_image (GTK_BUTTON (ok_button), - gtk_image_new_from_stock (GTK_STOCK_OK, GTK_ICON_SIZE_BUTTON)); } } @@ -119,8 +115,6 @@ zenity_msg (ZenityData *data, ZenityMsgData *msg_data) if (ok_button) { if (data->ok_label) { gtk_button_set_label (GTK_BUTTON (ok_button), data->ok_label); - gtk_button_set_image (GTK_BUTTON (ok_button), - gtk_image_new_from_stock (GTK_STOCK_OK, GTK_ICON_SIZE_BUTTON)); } } |