Mercurial > geeqie
diff src/print.c @ 1810:c416d099a3dc
GTK marks several functions as deprecated
The following functions has been replaced and deprecated by version
2.20:
- GTK_WIDGET_CAN_FOCUS
- GTK_WIDGET_DRAWABLE
- GTK_WIDGET_HAS_FOCUS
- GTK_WIDGET_HAS_GRAB
- GTK_WIDGET_IS_SENSITIVE
- GTK_WIDGET_NO_WINDOW
- GTK_WIDGET_REALIZED
- GTK_WIDGET_SENSITIVE
- GTK_WIDGET_STATE
- GTK_WIDGET_TOPLEVEL
- GTK_WIDGET_VISIBLE
author | mow |
---|---|
date | Mon, 10 May 2010 11:32:56 +0000 |
parents | 956aab097ea7 |
children |
line wrap: on
line diff
--- a/src/print.c Sun Feb 28 22:55:37 2010 +0000 +++ b/src/print.c Mon May 10 11:32:56 2010 +0000 @@ -1959,7 +1959,11 @@ GtkWidget *label; gchar *buf; +#if GTK_CHECK_VERSION(2,20,0) + if (gtk_widget_get_visible(pw->dialog->dialog)) parent = pw->dialog->dialog; +#else if (GTK_WIDGET_VISIBLE(pw->dialog->dialog)) parent = pw->dialog->dialog; +#endif gd = generic_dialog_new(_("Printing error"), "print_warning", parent, TRUE, NULL, NULL); @@ -2481,7 +2485,11 @@ pw->job_pixbuf = NULL; } +#if GTK_CHECK_VERSION(2,20,0) + if (pw->dialog && !gtk_widget_get_visible(pw->dialog->dialog)) +#else if (pw->dialog && !GTK_WIDGET_VISIBLE(pw->dialog->dialog)) +#endif { g_idle_add_full(G_PRIORITY_HIGH_IDLE, print_job_close_finish_cb, pw, NULL); }