diff options
author | Arx Cruz <acruz@redhat.com> | 2015-10-02 14:35:06 +0200 |
---|---|---|
committer | Arx Cruz <acruz@redhat.com> | 2015-10-02 14:35:06 +0200 |
commit | d063797fdfa73e5bec96d9399ab1bf47173a62d4 (patch) | |
tree | c1bc15a4a89c202fe5b01f698540ead21a2e03e3 /src | |
parent | Fixing html option being parsed to other dialogs rather then text-info (diff) | |
download | zenity-d063797fdfa73e5bec96d9399ab1bf47173a62d4.tar.gz zenity-d063797fdfa73e5bec96d9399ab1bf47173a62d4.tar.bz2 zenity-d063797fdfa73e5bec96d9399ab1bf47173a62d4.zip |
Fixing GLib-CRITICAL messages
Diffstat (limited to 'src')
-rw-r--r-- | src/calendar.c | 2 | ||||
-rw-r--r-- | src/color.c | 2 | ||||
-rw-r--r-- | src/entry.c | 2 | ||||
-rw-r--r-- | src/fileselection.c | 2 | ||||
-rw-r--r-- | src/forms.c | 2 | ||||
-rw-r--r-- | src/msg.c | 2 | ||||
-rw-r--r-- | src/password.c | 2 | ||||
-rw-r--r-- | src/progress.c | 2 | ||||
-rw-r--r-- | src/scale.c | 2 | ||||
-rw-r--r-- | src/text.c | 2 | ||||
-rw-r--r-- | src/tree.c | 2 |
11 files changed, 11 insertions, 11 deletions
diff --git a/src/calendar.c b/src/calendar.c index 0e6cb329..9f82cc63 100644 --- a/src/calendar.c +++ b/src/calendar.c @@ -153,7 +153,7 @@ zenity_calendar_dialog_response (GtkWidget *widget, int response, gpointer data) break; default: - if (response < g_strv_length(zen_data->extra_label)) + if (zen_data->extra_label && response < g_strv_length(zen_data->extra_label)) printf("%s\n",zen_data->extra_label[response]); zen_data->exit_code = zenity_util_return_exit_code (ZENITY_ESC); break; diff --git a/src/color.c b/src/color.c index 05898c4d..ae47b19b 100644 --- a/src/color.c +++ b/src/color.c @@ -104,7 +104,7 @@ zenity_colorselection_dialog_response (GtkWidget *widget, int response, gpointer break; default: - if (response < g_strv_length(zen_data->extra_label)) + if (zen_data->extra_label && response < g_strv_length(zen_data->extra_label)) printf("%s\n",zen_data->extra_label[response]); zen_data->exit_code = zenity_util_return_exit_code (ZENITY_ESC); break; diff --git a/src/entry.c b/src/entry.c index 80367260..8e47ebd8 100644 --- a/src/entry.c +++ b/src/entry.c @@ -192,7 +192,7 @@ zenity_entry_dialog_response (GtkWidget *widget, int response, gpointer data) break; default: - if (response < g_strv_length(zen_data->extra_label)) + if (zen_data->extra_label && response < g_strv_length(zen_data->extra_label)) printf("%s\n",zen_data->extra_label[response]); zen_data->exit_code = zenity_util_return_exit_code (ZENITY_ESC); break; diff --git a/src/fileselection.c b/src/fileselection.c index 3ccd11dd..27db0f40 100644 --- a/src/fileselection.c +++ b/src/fileselection.c @@ -189,7 +189,7 @@ zenity_fileselection_dialog_response (GtkWidget *widget, int response, gpointer break; default: - if (response < g_strv_length(zen_data->extra_label)) + if (zen_data->extra_label && response < g_strv_length(zen_data->extra_label)) printf("%s\n",zen_data->extra_label[response]); zen_data->exit_code = zenity_util_return_exit_code (ZENITY_ESC); break; diff --git a/src/forms.c b/src/forms.c index 53e94238..5241780c 100644 --- a/src/forms.c +++ b/src/forms.c @@ -371,7 +371,7 @@ zenity_forms_dialog_response (GtkWidget *widget, int response, gpointer data) break; default: - if (response < g_strv_length(zen_data->extra_label)) + if (zen_data->extra_label && response < g_strv_length(zen_data->extra_label)) printf("%s\n",zen_data->extra_label[response]); zen_data->exit_code = zenity_util_return_exit_code (ZENITY_ESC); break; @@ -244,7 +244,7 @@ zenity_msg_dialog_response (GtkWidget *widget, int response, gpointer data) break; default: - if (response < g_strv_length(zen_data->extra_label)) + if (zen_data->extra_label && response < g_strv_length(zen_data->extra_label)) printf("%s\n",zen_data->extra_label[response]); zen_data->exit_code = zenity_util_return_exit_code (ZENITY_ESC); break; diff --git a/src/password.c b/src/password.c index 1d17d913..d8f492f6 100644 --- a/src/password.c +++ b/src/password.c @@ -179,7 +179,7 @@ zenity_password_dialog_response (GtkWidget *widget, int response, gpointer data) break; default: - if (response < g_strv_length(zen_data->extra_label)) + if (zen_data->extra_label && response < g_strv_length(zen_data->extra_label)) printf("%s\n",zen_data->extra_label[response]); zen_data->exit_code = zenity_util_return_exit_code (ZENITY_ESC); break; diff --git a/src/progress.c b/src/progress.c index 8e458c66..4995c5fd 100644 --- a/src/progress.c +++ b/src/progress.c @@ -393,7 +393,7 @@ zenity_progress_dialog_response (GtkWidget *widget, int response, gpointer data) zenity_util_exit_code_with_data (ZENITY_TIMEOUT, zen_data); break; default: - if (response < g_strv_length(zen_data->extra_label)) + if (zen_data->extra_label && response < g_strv_length(zen_data->extra_label)) printf("%s\n",zen_data->extra_label[response]); zen_data->exit_code = zenity_util_return_exit_code (ZENITY_ESC); break; diff --git a/src/scale.c b/src/scale.c index cc9ce105..3eb5c174 100644 --- a/src/scale.c +++ b/src/scale.c @@ -149,7 +149,7 @@ zenity_scale_dialog_response (GtkWidget *widget, int response, gpointer data) break; default: - if (response < g_strv_length(zen_data->extra_label)) + if (zen_data->extra_label && response < g_strv_length(zen_data->extra_label)) printf("%s\n",zen_data->extra_label[response]); zen_data->exit_code = zenity_util_return_exit_code (ZENITY_ESC); break; @@ -388,7 +388,7 @@ zenity_text_dialog_response (GtkWidget *widget, int response, gpointer data) break; default: - if (response < g_strv_length(zen_data->extra_label)) + if (zen_data->extra_label && response < g_strv_length(zen_data->extra_label)) printf("%s\n",zen_data->extra_label[response]); zenity_util_exit_code_with_data(ZENITY_ESC, zen_data); break; @@ -711,7 +711,7 @@ zenity_tree_dialog_response (GtkWidget *widget, int response, gpointer data) break; default: - if (response < g_strv_length(zen_data->extra_label)) + if (zen_data->extra_label && response < g_strv_length(zen_data->extra_label)) printf("%s\n",zen_data->extra_label[response]); zen_data->exit_code = zenity_util_return_exit_code (ZENITY_ESC); break; |