aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2007-01-29 23:29:11 +0000
committerUlf Lamping <ulf.lamping@web.de>2007-01-29 23:29:11 +0000
commit99209b76ce3f221af831afeae19577b986b651ee (patch)
tree9664d92a1d9d532cdbe3955e9c54e4f9154f9675 /gtk
parent3aec86adcb9054021fbc14fc3dea6dea74cb669d (diff)
call gtk_window_present() only on GTK >= 2.x, should fix current compilation problems.
I don't have tested this on a GTK 1.x system... svn path=/trunk/; revision=20615
Diffstat (limited to 'gtk')
-rw-r--r--gtk/uat_gui.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk/uat_gui.c b/gtk/uat_gui.c
index a273726132..7f90575cd5 100644
--- a/gtk/uat_gui.c
+++ b/gtk/uat_gui.c
@@ -184,7 +184,9 @@ static gboolean uat_dlg_cb(GtkWidget *win _U_, gpointer user_data) {
g_ptr_array_free(dd->entries,TRUE);
window_destroy(GTK_WIDGET(dd->win));
+#if GTK_MAJOR_VERSION >= 2
gtk_window_present(GTK_WINDOW(dd->uat->rep->window));
+#endif
return TRUE;
on_failure:
@@ -196,7 +198,9 @@ on_failure:
static gboolean uat_cancel_dlg_cb(GtkWidget *win _U_, gpointer user_data) {
struct _uat_dlg_data* dd = user_data;
+#if GTK_MAJOR_VERSION >= 2
gtk_window_present(GTK_WINDOW(dd->uat->rep->window));
+#endif
if (dd->is_new) g_free(dd->rec);
g_ptr_array_free(dd->entries,TRUE);
@@ -288,14 +292,18 @@ static void uat_del_cb(GtkButton *button _U_, gpointer u) {
uat_remove_record_idx(ud->uat, ud->idx);
gtk_clist_remove(GTK_CLIST(ud->uat->rep->clist),ud->idx);
window_destroy(GTK_WIDGET(ud->win));
+#if GTK_MAJOR_VERSION >= 2
gtk_window_present(GTK_WINDOW(ud->uat->rep->window));
+#endif
g_free(ud);
}
static void uat_cancel_del_cb(GtkButton *button _U_, gpointer u) {
struct _uat_del* ud = u;
window_destroy(GTK_WIDGET(ud->win));
+#if GTK_MAJOR_VERSION >= 2
gtk_window_present(GTK_WINDOW(ud->uat->rep->window));
+#endif
g_free(ud);
}