Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Mon, 08 Oct 2012 18:08:06 UTC Commit: 5ec0eb477d51c1ccfa67f1bad606eb6eb18c82eb https://github.com/geany/geany/commit/5ec0eb477d51c1ccfa67f1bad606eb6eb18c82...
Log Message: ----------- Guard removed dialog separators on GTK3
GtkDialog separators sere deprecated on GTK 2.22 and remove on 3.0, so define them to dummy values on GTK3.
We don't get rid of them altogether because GTK 2.16 we depend on probably has separators enabled by default and we want to remove them.
Modified Paths: -------------- src/gtkcompat.h
Modified: src/gtkcompat.h 8 files changed, 8 insertions(+), 0 deletions(-) =================================================================== @@ -31,6 +31,14 @@ G_BEGIN_DECLS
+/* GtkDialog */ +/* GTK 2.22 deprecated dialog separators and 3.0 removed them + * We keep those however in case 2.16 has separators by default */ +#if GTK_CHECK_VERSION(3, 0, 0) +# define gtk_dialog_set_has_separator(dialog, setting) /* nothing */ +# define GTK_DIALOG_NO_SEPARATOR 0 +#endif + /* GtkWidget */ #if ! GTK_CHECK_VERSION(2, 18, 0) # define compat_widget_set_flag(widget, flag, enable) \
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).