gtkwindow: Fix compile warnings

This commit is contained in:
Jasper St. Pierre 2014-07-03 10:55:31 -04:00
parent 03b4c82f77
commit ed273e7518

View File

@ -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)
{