diff options
author | Colin Walters <walters@verbum.org> | 2012-08-12 12:20:07 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2012-08-12 12:20:07 -0400 |
commit | 5dd7442bd5b544a99553b6e595419ed999ae6eab (patch) | |
tree | 533680dd21b409452ec9dc99b6478054617effb0 /src/color.c | |
parent | 275bd91c24c1e465f1e5021f66ebf3d9434ffa53 (diff) |
Fix various compiler warnings (two serious)
Missing sentinels can cause crashes. The others are just style.
Diffstat (limited to 'src/color.c')
-rw-r--r-- | src/color.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/color.c b/src/color.c index 5e24e3d..4c9c151 100644 --- a/src/color.c +++ b/src/color.c @@ -58,7 +58,7 @@ void zenity_colorselection (ZenityData *data, ZenityColorData *color_data) } if (data->ok_label) { - g_object_get (G_OBJECT (dialog), "ok-button", &button); + 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)); @@ -66,7 +66,7 @@ void zenity_colorselection (ZenityData *data, ZenityColorData *color_data) } if (data->cancel_label) { - g_object_get (G_OBJECT (dialog), "cancel-button", &button); + 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)); |