summaryrefslogtreecommitdiff
path: root/src/msg.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/msg.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/msg.c')
-rw-r--r--src/msg.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/msg.c b/src/msg.c
index 4132ae98..ce25ab3a 100644
--- a/src/msg.c
+++ b/src/msg.c
@@ -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));
}
}
bgstack15