diff options
author | raveit65 <[email protected]> | 2015-07-23 19:01:19 +0200 |
---|---|---|
committer | infirit <[email protected]> | 2015-08-31 22:35:16 +0200 |
commit | 7dc23854634e8177fb03d403c0f71e9c10830694 (patch) | |
tree | a2aafdb769b117a9500d200bb6b0f720d3657149 /cut-n-paste/toolbar-editor/egg-toolbar-editor.c | |
parent | 317374f576896ef9a394cf4ec7c59a46c8c11693 (diff) | |
download | eom-7dc23854634e8177fb03d403c0f71e9c10830694.tar.bz2 eom-7dc23854634e8177fb03d403c0f71e9c10830694.tar.xz |
GTK3: Replace gtk_{v,h}box new with gtk_box_new for gtk+ >=3.2.0
Diffstat (limited to 'cut-n-paste/toolbar-editor/egg-toolbar-editor.c')
-rw-r--r-- | cut-n-paste/toolbar-editor/egg-toolbar-editor.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cut-n-paste/toolbar-editor/egg-toolbar-editor.c b/cut-n-paste/toolbar-editor/egg-toolbar-editor.c index 5e9f297..d9854b7 100644 --- a/cut-n-paste/toolbar-editor/egg-toolbar-editor.c +++ b/cut-n-paste/toolbar-editor/egg-toolbar-editor.c @@ -28,6 +28,11 @@ #include <gtk/gtk.h> #include <glib/gi18n.h> +#if GTK_CHECK_VERSION (3, 2, 0) +#define gtk_hbox_new(X,Y) gtk_box_new(GTK_ORIENTATION_HORIZONTAL,Y) +#define gtk_vbox_new(X,Y) gtk_box_new(GTK_ORIENTATION_VERTICAL,Y) +#endif + static const GtkTargetEntry dest_drag_types[] = { {EGG_TOOLBAR_ITEM_TYPE, GTK_TARGET_SAME_APP, 0}, }; |