Merged pidgin/main into default
[pidgin-git.git] / pidgin / gtk3compat.h
blobe890e7aeca62120327f893cfdc1a76d832cd4cfc
1 /* pidgin
3 * Pidgin is the legal property of its developers, whose names are too numerous
4 * to list here. Please refer to the COPYRIGHT file distributed with this
5 * source distribution.
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
22 #ifndef _PIDGINGTK3COMPAT_H_
23 #define _PIDGINGTK3COMPAT_H_
25 * SECTION:gtk3compat
26 * @section_id: pidgin-gtk3compat
27 * @short_description: <filename>gtk3compat.h</filename>
28 * @title: GTK3 version-dependent definitions
30 * This file is internal to Pidgin. Do not use!
31 * Also, any public API should not depend on this file.
34 #include <gtk/gtk.h>
36 #if !GTK_CHECK_VERSION(3,16,0)
38 static inline void
39 gtk_label_set_xalign(GtkLabel *label, gfloat xalign)
41 g_object_set(label, "xalign", xalign, NULL);
44 static inline void
45 gtk_label_set_yalign(GtkLabel *label, gfloat yalign)
47 g_object_set(label, "yalign", yalign, NULL);
50 #endif /* 3.16.0 */
52 #endif /* _PIDGINGTK3COMPAT_H_ */