mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-16 13:40:31 +00:00
gtkwindow: Fix compile warnings
This commit is contained in:
parent
03b4c82f77
commit
ed273e7518
@ -11872,7 +11872,7 @@ warn_response (GtkDialog *dialog,
|
||||
gint response)
|
||||
{
|
||||
gtk_widget_destroy (GTK_WIDGET (dialog));
|
||||
g_object_set_data (inspector_window, "warning_dialog", NULL);
|
||||
g_object_set_data (G_OBJECT (inspector_window), "warning_dialog", NULL);
|
||||
if (response == GTK_RESPONSE_NO)
|
||||
{
|
||||
gtk_widget_destroy (inspector_window);
|
||||
@ -11914,11 +11914,11 @@ gtk_window_set_debugging (gboolean enable,
|
||||
gtk_dialog_add_button (GTK_DIALOG (dialog), _("_Cancel"), GTK_RESPONSE_NO);
|
||||
gtk_dialog_add_button (GTK_DIALOG (dialog), _("_OK"), GTK_RESPONSE_YES);
|
||||
g_signal_connect (dialog, "response", G_CALLBACK (warn_response), NULL);
|
||||
g_object_set_data (inspector_window, "warning_dialog", dialog);
|
||||
g_object_set_data (G_OBJECT (inspector_window), "warning_dialog", dialog);
|
||||
}
|
||||
}
|
||||
|
||||
dialog = g_object_get_data (inspector_window, "warning_dialog");
|
||||
dialog = g_object_get_data (G_OBJECT (inspector_window), "warning_dialog");
|
||||
|
||||
if (enable)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user