Fixing GLib-CRITICAL messages
This commit is contained in:
parent
fac40e9c46
commit
d063797fdf
@ -153,7 +153,7 @@ zenity_calendar_dialog_response (GtkWidget *widget, int response, gpointer data)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
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]);
|
printf("%s\n",zen_data->extra_label[response]);
|
||||||
zen_data->exit_code = zenity_util_return_exit_code (ZENITY_ESC);
|
zen_data->exit_code = zenity_util_return_exit_code (ZENITY_ESC);
|
||||||
break;
|
break;
|
||||||
|
@ -104,7 +104,7 @@ zenity_colorselection_dialog_response (GtkWidget *widget, int response, gpointer
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
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]);
|
printf("%s\n",zen_data->extra_label[response]);
|
||||||
zen_data->exit_code = zenity_util_return_exit_code (ZENITY_ESC);
|
zen_data->exit_code = zenity_util_return_exit_code (ZENITY_ESC);
|
||||||
break;
|
break;
|
||||||
|
@ -192,7 +192,7 @@ zenity_entry_dialog_response (GtkWidget *widget, int response, gpointer data)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
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]);
|
printf("%s\n",zen_data->extra_label[response]);
|
||||||
zen_data->exit_code = zenity_util_return_exit_code (ZENITY_ESC);
|
zen_data->exit_code = zenity_util_return_exit_code (ZENITY_ESC);
|
||||||
break;
|
break;
|
||||||
|
@ -189,7 +189,7 @@ zenity_fileselection_dialog_response (GtkWidget *widget, int response, gpointer
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
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]);
|
printf("%s\n",zen_data->extra_label[response]);
|
||||||
zen_data->exit_code = zenity_util_return_exit_code (ZENITY_ESC);
|
zen_data->exit_code = zenity_util_return_exit_code (ZENITY_ESC);
|
||||||
break;
|
break;
|
||||||
|
@ -371,7 +371,7 @@ zenity_forms_dialog_response (GtkWidget *widget, int response, gpointer data)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
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]);
|
printf("%s\n",zen_data->extra_label[response]);
|
||||||
zen_data->exit_code = zenity_util_return_exit_code (ZENITY_ESC);
|
zen_data->exit_code = zenity_util_return_exit_code (ZENITY_ESC);
|
||||||
break;
|
break;
|
||||||
|
@ -244,7 +244,7 @@ zenity_msg_dialog_response (GtkWidget *widget, int response, gpointer data)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
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]);
|
printf("%s\n",zen_data->extra_label[response]);
|
||||||
zen_data->exit_code = zenity_util_return_exit_code (ZENITY_ESC);
|
zen_data->exit_code = zenity_util_return_exit_code (ZENITY_ESC);
|
||||||
break;
|
break;
|
||||||
|
@ -179,7 +179,7 @@ zenity_password_dialog_response (GtkWidget *widget, int response, gpointer data)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
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]);
|
printf("%s\n",zen_data->extra_label[response]);
|
||||||
zen_data->exit_code = zenity_util_return_exit_code (ZENITY_ESC);
|
zen_data->exit_code = zenity_util_return_exit_code (ZENITY_ESC);
|
||||||
break;
|
break;
|
||||||
|
@ -393,7 +393,7 @@ zenity_progress_dialog_response (GtkWidget *widget, int response, gpointer data)
|
|||||||
zenity_util_exit_code_with_data (ZENITY_TIMEOUT, zen_data);
|
zenity_util_exit_code_with_data (ZENITY_TIMEOUT, zen_data);
|
||||||
break;
|
break;
|
||||||
default:
|
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]);
|
printf("%s\n",zen_data->extra_label[response]);
|
||||||
zen_data->exit_code = zenity_util_return_exit_code (ZENITY_ESC);
|
zen_data->exit_code = zenity_util_return_exit_code (ZENITY_ESC);
|
||||||
break;
|
break;
|
||||||
|
@ -149,7 +149,7 @@ zenity_scale_dialog_response (GtkWidget *widget, int response, gpointer data)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
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]);
|
printf("%s\n",zen_data->extra_label[response]);
|
||||||
zen_data->exit_code = zenity_util_return_exit_code (ZENITY_ESC);
|
zen_data->exit_code = zenity_util_return_exit_code (ZENITY_ESC);
|
||||||
break;
|
break;
|
||||||
|
@ -388,7 +388,7 @@ zenity_text_dialog_response (GtkWidget *widget, int response, gpointer data)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
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]);
|
printf("%s\n",zen_data->extra_label[response]);
|
||||||
zenity_util_exit_code_with_data(ZENITY_ESC, zen_data);
|
zenity_util_exit_code_with_data(ZENITY_ESC, zen_data);
|
||||||
break;
|
break;
|
||||||
|
@ -711,7 +711,7 @@ zenity_tree_dialog_response (GtkWidget *widget, int response, gpointer data)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
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]);
|
printf("%s\n",zen_data->extra_label[response]);
|
||||||
zen_data->exit_code = zenity_util_return_exit_code (ZENITY_ESC);
|
zen_data->exit_code = zenity_util_return_exit_code (ZENITY_ESC);
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user