pidgin/gtk3compat.h

changeset 37990
710f725725a8
parent 37989
018063ec9d2e
child 37991
b344343d3cf0
equal deleted inserted replaced
37989:018063ec9d2e 37990:710f725725a8
31 * Also, any public API should not depend on this file. 31 * Also, any public API should not depend on this file.
32 */ 32 */
33 33
34 #include <gtk/gtk.h> 34 #include <gtk/gtk.h>
35 #include <math.h> 35 #include <math.h>
36
37 #if GTK_CHECK_VERSION(3,16,0)
38
39 static inline void
40 gtk_label_set_alignment(GtkLabel *label, gfloat xalign, gfloat yalign)
41 {
42 gtk_label_set_xalign(label, xalign);
43 gtk_label_set_yalign(label, yalign);
44 }
45
46 #else /* 3.16.0 */
47
48 static inline void
49 gtk_label_set_alignment(GtkLabel *label, gfloat xalign, gfloat yalign)
50 {
51 gtk_misc_set_alignment(GTK_MISC(label), xalign, yalign);
52 }
53
54 #endif /* 3.16.0 */
55
36 56
37 #if !GTK_CHECK_VERSION(3,4,0) 57 #if !GTK_CHECK_VERSION(3,4,0)
38 58
39 #define gtk_color_chooser_dialog_new(title, parent) \ 59 #define gtk_color_chooser_dialog_new(title, parent) \
40 gtk_color_selection_dialog_new(title) 60 gtk_color_selection_dialog_new(title)

mercurial