diff options
author | 2013-08-25 13:00:31 +0200 | |
---|---|---|
committer | 2013-08-25 13:00:31 +0200 | |
commit | efba1e21638299d4362ec28ab40865c694b56c98 (patch) | |
tree | e448ca778a35da55038286d0dfa73cb09fb50c10 | |
parent | bca864bb74b383ed1e2e7ac021e4950c61bd3bc0 (diff) |
gtkui: fixed gtk3 gui construction
-rw-r--r-- | plugins/gtkui/support.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/gtkui/support.h b/plugins/gtkui/support.h index 010c05b6..a35781a5 100644 --- a/plugins/gtkui/support.h +++ b/plugins/gtkui/support.h @@ -150,8 +150,8 @@ void gtk_widget_get_allocation (GtkWidget *widget, #if GTK_CHECK_VERSION(3,2,0) -#define gtk_vbox_new(homogeneous,spacing) ({GtkWidget *__box=gtk_box_new(GTK_ORIENTATION_VERTICAL,spacing);gtk_box_set_homogeneous(GTK_BOX(__box),homogeneous);__box;}) -#define gtk_hbox_new(homogeneous,spacing) ({GtkWidget *__box=gtk_box_new(GTK_ORIENTATION_HORIZONTAL,spacing);gtk_box_set_homogeneous(GTK_BOX(__box),homogeneous);__box;}) +#define gtk_vbox_new(homogeneous,spacing) g_object_new(GTK_TYPE_VBOX,"spacing",spacing,"homogeneous",homogeneous?TRUE:FALSE,NULL) +#define gtk_hbox_new(homogeneous,spacing) g_object_new(GTK_TYPE_HBOX,"spacing",spacing,"homogeneous",homogeneous?TRUE:FALSE,NULL) #define gtk_hpaned_new() gtk_paned_new(GTK_ORIENTATION_HORIZONTAL) #define gtk_vpaned_new() gtk_paned_new(GTK_ORIENTATION_VERTICAL) #define gtk_hbutton_box_new() gtk_button_box_new(GTK_ORIENTATION_HORIZONTAL) |