change "error_dialog" variable to GtkWidget fo fix two warnings.
2008-07-04 Michael Natterer <mitch@imendio.com> * gtk/gtkprintoperation.c (print_pages): change "error_dialog" variable to GtkWidget fo fix two warnings. svn path=/trunk/; revision=20759
This commit is contained in:
committed by
Michael Natterer
parent
ee37e0d699
commit
d934deaaf3
@ -1,3 +1,8 @@
|
|||||||
|
2008-07-04 Michael Natterer <mitch@imendio.com>
|
||||||
|
|
||||||
|
* gtk/gtkprintoperation.c (print_pages): change "error_dialog"
|
||||||
|
variable to GtkWidget fo fix two warnings.
|
||||||
|
|
||||||
2008-07-04 Michael Natterer <mitch@imendio.com>
|
2008-07-04 Michael Natterer <mitch@imendio.com>
|
||||||
|
|
||||||
Bug 539944 – Add GtkScaleButton API so struct fields can be marked
|
Bug 539944 – Add GtkScaleButton API so struct fields can be marked
|
||||||
|
|||||||
@ -2280,7 +2280,7 @@ print_pages (GtkPrintOperation *op,
|
|||||||
|
|
||||||
if (!handled)
|
if (!handled)
|
||||||
{
|
{
|
||||||
GtkMessageDialog *error_dialog;
|
GtkWidget *error_dialog;
|
||||||
|
|
||||||
error_dialog = gtk_message_dialog_new (parent,
|
error_dialog = gtk_message_dialog_new (parent,
|
||||||
GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
|
GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
|
||||||
@ -2294,13 +2294,13 @@ print_pages (GtkPrintOperation *op,
|
|||||||
if (parent->group)
|
if (parent->group)
|
||||||
gtk_window_group_add_window (parent->group, GTK_WINDOW (error_dialog));
|
gtk_window_group_add_window (parent->group, GTK_WINDOW (error_dialog));
|
||||||
|
|
||||||
g_signal_connect (error_dialog, "response",
|
g_signal_connect (error_dialog, "response",
|
||||||
G_CALLBACK (gtk_widget_destroy), NULL);
|
G_CALLBACK (gtk_widget_destroy), NULL);
|
||||||
|
|
||||||
gtk_widget_show (error_dialog);
|
gtk_widget_show (error_dialog);
|
||||||
|
|
||||||
print_pages_idle_done (data);
|
print_pages_idle_done (data);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user