diff options
author | infirit <[email protected]> | 2014-11-25 17:18:24 +0100 |
---|---|---|
committer | infirit <[email protected]> | 2014-11-25 17:18:24 +0100 |
commit | f1c78bf12b539430e2327b83e64a86649ed2faa9 (patch) | |
tree | d841d002675b2e8e0043c08ccdd4407a588fb46d /src/ui/theme-viewer.c | |
parent | f6b6f2be4d109ecf899ccee2b2fae2f0a2beecbe (diff) | |
download | marco-f1c78bf12b539430e2327b83e64a86649ed2faa9.tar.bz2 marco-f1c78bf12b539430e2327b83e64a86649ed2faa9.tar.xz |
Gtk3: Silence the GtkVBox and GtkHBox deprecations warnings
Diffstat (limited to 'src/ui/theme-viewer.c')
-rw-r--r-- | src/ui/theme-viewer.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ui/theme-viewer.c b/src/ui/theme-viewer.c index cecfcb05..6bc6953a 100644 --- a/src/ui/theme-viewer.c +++ b/src/ui/theme-viewer.c @@ -35,6 +35,12 @@ #define _(x) dgettext (GETTEXT_PACKAGE, x) #define N_(x) x +/* Silence Gtk{V,H}Box deprecations warnings */ +#if GTK_CHECK_VERSION (3, 0, 0) +#define gtk_vbox_new(X, Y) gtk_box_new(GTK_ORIENTATION_VERTICAL, Y) +#define gtk_hbox_new(X, Y) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, Y) +#endif + /* We need to compute all different button arrangements * in terms of button location. We don't care about * different arrangements in terms of button function. |