summaryrefslogtreecommitdiff
path: root/src/msg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/msg.c')
-rw-r--r--src/msg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/msg.c b/src/msg.c
index 2b4083b5..bd1450e0 100644
--- a/src/msg.c
+++ b/src/msg.c
@@ -107,8 +107,9 @@ zenity_msg (ZenityData *data, ZenityMsgData *msg_data)
break;
}
}
-
- gtk_window_set_default_size (GTK_WINDOW (dialog), data->width, data->height);
+
+ if (data->width > -1 || data->height > -1)
+ gtk_window_set_default_size (GTK_WINDOW (dialog), data->width, data->height);
if (msg_data->dialog_text)
gtk_label_set_text (GTK_LABEL (text), msg_data->dialog_text);
bgstack15