summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArx Cruz <acruz@redhat.com>2015-10-02 14:35:06 +0200
committerArx Cruz <acruz@redhat.com>2015-10-02 14:35:06 +0200
commitd063797fdfa73e5bec96d9399ab1bf47173a62d4 (patch)
treec1bc15a4a89c202fe5b01f698540ead21a2e03e3
parentFixing html option being parsed to other dialogs rather then text-info (diff)
downloadzenity-d063797fdfa73e5bec96d9399ab1bf47173a62d4.tar.gz
zenity-d063797fdfa73e5bec96d9399ab1bf47173a62d4.tar.bz2
zenity-d063797fdfa73e5bec96d9399ab1bf47173a62d4.zip
Fixing GLib-CRITICAL messages
-rw-r--r--src/calendar.c2
-rw-r--r--src/color.c2
-rw-r--r--src/entry.c2
-rw-r--r--src/fileselection.c2
-rw-r--r--src/forms.c2
-rw-r--r--src/msg.c2
-rw-r--r--src/password.c2
-rw-r--r--src/progress.c2
-rw-r--r--src/scale.c2
-rw-r--r--src/text.c2
-rw-r--r--src/tree.c2
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;
diff --git a/src/msg.c b/src/msg.c
index ddaab266..da4783d4 100644
--- a/src/msg.c
+++ b/src/msg.c
@@ -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;
diff --git a/src/text.c b/src/text.c
index 5657f21c..1deecc64 100644
--- a/src/text.c
+++ b/src/text.c
@@ -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;
diff --git a/src/tree.c b/src/tree.c
index 7398fc26..058b6b61 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -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;
bgstack15