chiark / gitweb /
GTK 3 port: use GtkBox directly, not GtkHBox and GtkVBox.
authorSimon Tatham <anakin@pobox.com>
Sat, 3 Oct 2015 11:28:21 +0000 (12:28 +0100)
committerSimon Tatham <anakin@pobox.com>
Sat, 3 Oct 2015 15:07:19 +0000 (16:07 +0100)
I've done this by #defining the old names in terms of the new ones,
because the old ones are still more concise!

gtk.c

diff --git a/gtk.c b/gtk.c
index 5c65838e1f8e398f025641c88351059a6d86c6e5..a4db53e20755dc297b4766619d6ef0c391e4900f 100644 (file)
--- 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"