diff options
-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__ */ |