diff options
author | Anders Broman <anders.broman@ericsson.com> | 2012-04-21 20:06:51 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2012-04-21 20:06:51 +0000 |
commit | 60cb4652e4a0cb58a950a6beffbe25a0277ce543 (patch) | |
tree | 64f3484d1597dc9babeec342195448de316b73ea /ui/gtk | |
parent | 63040040d2b76b8988dc5df4ac51adaaf7e676dc (diff) |
gtk_button_box_new() for pre GTK 3.0
svn path=/trunk/; revision=42183
Diffstat (limited to 'ui/gtk')
-rw-r--r-- | ui/gtk/gui_utils.c | 11 | ||||
-rw-r--r-- | ui/gtk/gui_utils.h | 3 |
2 files changed, 14 insertions, 0 deletions
diff --git a/ui/gtk/gui_utils.c b/ui/gtk/gui_utils.c index 8709c00a64..1b4c18b795 100644 --- a/ui/gtk/gui_utils.c +++ b/ui/gtk/gui_utils.c @@ -1899,3 +1899,14 @@ GtkWidget * ws_gtk_box_new(GtkOrientation orientation, gint spacing, gboolean ho return widget; #endif /* GTK_CHECK_VERSION(3,0,0) */ } + +#if !GTK_CHECK_VERSION(3,0,0) +GtkWidget * gtk_button_box_new(GtkOrientation orientation) +{ + if (orientation == GTK_ORIENTATION_HORIZONTAL){ + return gtk_hbutton_box_new(void); + }else{ + return gtk_vbutton_box_new(void); + } +} +#endif /* GTK_CHECK_VERSION(3,0,0) */
\ No newline at end of file diff --git a/ui/gtk/gui_utils.h b/ui/gtk/gui_utils.h index d51acc13bf..cdef1c0c85 100644 --- a/ui/gtk/gui_utils.h +++ b/ui/gtk/gui_utils.h @@ -517,4 +517,7 @@ GdkPixbuf *gdk_pixbuf_get_from_surface (cairo_surface_t *surface, */ GtkWidget * ws_gtk_box_new(GtkOrientation orientation, gint spacing, gboolean homogeneous); +#if !GTK_CHECK_VERSION(3,0,0) +GtkWidget * gtk_button_box_new(GtkOrientation orientation); +#endif /* GTK_CHECK_VERSION(3,0,0) */ #endif /* __GUI_UTIL__H__ */ |