summaryrefslogtreecommitdiff
path: root/gtk/compat.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2011-03-13 09:52:40 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2011-03-13 09:52:40 +0000
commit155d8dec3ff6e7b009de4956acc739ac2c61e6f7 (patch)
tree5c4d1c8feb346c602188161ea11c144384c06997 /gtk/compat.c
parentb652e1f36e07eb7adb7601e5f3a065f0c25ee8a3 (diff)
downloadnetsurf-155d8dec3ff6e7b009de4956acc739ac2c61e6f7.tar.gz
netsurf-155d8dec3ff6e7b009de4956acc739ac2c61e6f7.tar.bz2
gtk_dialog_set_has_separator is deprecated in GTK >= 2.21.8
svn path=/trunk/netsurf/; revision=12009
Diffstat (limited to 'gtk/compat.c')
-rw-r--r--gtk/compat.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk/compat.c b/gtk/compat.c
index 822459474..2361dc201 100644
--- a/gtk/compat.c
+++ b/gtk/compat.c
@@ -88,3 +88,12 @@ GtkStateType nsgtk_widget_get_state(GtkWidget *widget)
#endif
}
+void nsgtk_dialog_set_has_separator(GtkDialog *dialog, gboolean setting)
+{
+ #if GTK_CHECK_VERSION(2,21,8)
+ /* Deprecated */
+ #else
+ gtk_dialog_set_has_separator(dialog, setting);
+ #endif
+}
+