aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/gui_utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gtk/gui_utils.c')
-rw-r--r--ui/gtk/gui_utils.c11
1 files changed, 11 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