aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2015-10-03 12:28:21 +0100
committerSimon Tatham <anakin@pobox.com>2015-10-03 16:07:19 +0100
commit90b73ebcb7f0d2c834e00ba0ad74084ad5a5695b (patch)
tree60427a94fedbf6bf97e96dcf5d136425e95aa8b4
parent2fb189cc36166f3856651e6cae6de828b4be186b (diff)
downloadpuzzles-90b73ebcb7f0d2c834e00ba0ad74084ad5a5695b.zip
puzzles-90b73ebcb7f0d2c834e00ba0ad74084ad5a5695b.tar.gz
puzzles-90b73ebcb7f0d2c834e00ba0ad74084ad5a5695b.tar.bz2
puzzles-90b73ebcb7f0d2c834e00ba0ad74084ad5a5695b.tar.xz
GTK 3 port: use GtkBox directly, not GtkHBox and GtkVBox.
I've done this by #defining the old names in terms of the new ones, because the old ones are still more concise!
-rw-r--r--gtk.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk.c b/gtk.c
index 5c65838..a4db53e 100644
--- a/gtk.c
+++ b/gtk.c
@@ -45,6 +45,9 @@
#endif
#if GTK_CHECK_VERSION(3,0,0)
+/* The old names are still more concise! */
+#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)
/* GTK 3 has retired stock button labels */
#define LABEL_OK "_OK"
#define LABEL_CANCEL "_Cancel"