mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -07:00
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!
This commit is contained in:
3
gtk.c
3
gtk.c
@ -45,6 +45,9 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if GTK_CHECK_VERSION(3,0,0)
|
#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 */
|
/* GTK 3 has retired stock button labels */
|
||||||
#define LABEL_OK "_OK"
|
#define LABEL_OK "_OK"
|
||||||
#define LABEL_CANCEL "_Cancel"
|
#define LABEL_CANCEL "_Cancel"
|
||||||
|
Reference in New Issue
Block a user