pidgin/gtk3compat.h

Tue, 16 Feb 2016 18:37:01 -0600

author
Gary Kramlich <grim@reaperworld.com>
date
Tue, 16 Feb 2016 18:37:01 -0600
changeset 37575
32611080681c
parent 36244
2a4179d0177d
child 37989
018063ec9d2e
permissions
-rw-r--r--

Cleanup the plugin pref stuff so it works and doesn't crash

33170
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
1 /* pidgin
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
2 *
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
3 * Pidgin is the legal property of its developers, whose names are too numerous
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
4 * to list here. Please refer to the COPYRIGHT file distributed with this
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
5 * source distribution.
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
6 *
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
7 * This program is free software; you can redistribute it and/or modify
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
8 * it under the terms of the GNU General Public License as published by
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
9 * the Free Software Foundation; either version 2 of the License, or
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
10 * (at your option) any later version.
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
11 *
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
12 * This program is distributed in the hope that it will be useful,
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
15 * GNU General Public License for more details.
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
16 *
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
17 * You should have received a copy of the GNU General Public License
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
18 * along with this program; if not, write to the Free Software
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
20 */
35487
494f09f7f331 Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents: 35455
diff changeset
21
494f09f7f331 Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents: 35455
diff changeset
22 #ifndef _PIDGINGTK3COMPAT_H_
494f09f7f331 Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents: 35455
diff changeset
23 #define _PIDGINGTK3COMPAT_H_
35455
216a37403c5b Fix a bunch of gtk-doc warnings in pidgin
Ankit Vani <a@nevitus.org>
parents: 35451
diff changeset
24 /*
35451
206524351826 Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents: 33892
diff changeset
25 * SECTION:gtk3compat
206524351826 Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents: 33892
diff changeset
26 * @section_id: pidgin-gtk3compat
206524351826 Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents: 33892
diff changeset
27 * @short_description: <filename>gtk3compat.h</filename>
206524351826 Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents: 33892
diff changeset
28 * @title: GTK3 version-dependent definitions
206524351826 Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents: 33892
diff changeset
29 *
206524351826 Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents: 33892
diff changeset
30 * This file is internal to Pidgin. Do not use!
206524351826 Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents: 33892
diff changeset
31 * Also, any public API should not depend on this file.
206524351826 Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents: 33892
diff changeset
32 */
206524351826 Add sections for finch and re-arrange its doc index
Ankit Vani <a@nevitus.org>
parents: 33892
diff changeset
33
35534
8e72593def2c Fix gtk_[hv]box_new gtk3 deprecation warnings in unity plugin
Ankit Vani <a@nevitus.org>
parents: 35532
diff changeset
34 #include <gtk/gtk.h>
35547
561418a41b08 Replace gtk_color_selection with gtk_color_chooser
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35542
diff changeset
35 #include <math.h>
561418a41b08 Replace gtk_color_selection with gtk_color_chooser
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35542
diff changeset
36
561418a41b08 Replace gtk_color_selection with gtk_color_chooser
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35542
diff changeset
37 #if !GTK_CHECK_VERSION(3,4,0)
561418a41b08 Replace gtk_color_selection with gtk_color_chooser
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35542
diff changeset
38
561418a41b08 Replace gtk_color_selection with gtk_color_chooser
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35542
diff changeset
39 #define gtk_color_chooser_dialog_new(title, parent) \
561418a41b08 Replace gtk_color_selection with gtk_color_chooser
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35542
diff changeset
40 gtk_color_selection_dialog_new(title)
35553
825d41ada522 Use static inline functions instead of macros
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35551
diff changeset
41 #define GTK_COLOR_CHOOSER(widget) (GTK_WIDGET(widget))
825d41ada522 Use static inline functions instead of macros
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35551
diff changeset
42
825d41ada522 Use static inline functions instead of macros
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35551
diff changeset
43 static inline void
825d41ada522 Use static inline functions instead of macros
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35551
diff changeset
44 gtk_color_chooser_set_use_alpha(GtkWidget *widget, gboolean use_alpha)
825d41ada522 Use static inline functions instead of macros
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35551
diff changeset
45 {
825d41ada522 Use static inline functions instead of macros
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35551
diff changeset
46 if (GTK_IS_COLOR_BUTTON(widget)) {
825d41ada522 Use static inline functions instead of macros
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35551
diff changeset
47 gtk_color_button_set_use_alpha(GTK_COLOR_BUTTON(widget),
825d41ada522 Use static inline functions instead of macros
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35551
diff changeset
48 use_alpha);
825d41ada522 Use static inline functions instead of macros
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35551
diff changeset
49 }
825d41ada522 Use static inline functions instead of macros
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35551
diff changeset
50 }
825d41ada522 Use static inline functions instead of macros
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35551
diff changeset
51
825d41ada522 Use static inline functions instead of macros
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35551
diff changeset
52 static inline void
825d41ada522 Use static inline functions instead of macros
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35551
diff changeset
53 pidgin_color_chooser_set_rgb(GtkWidget *widget, const GdkColor *color)
825d41ada522 Use static inline functions instead of macros
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35551
diff changeset
54 {
825d41ada522 Use static inline functions instead of macros
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35551
diff changeset
55 if (GTK_IS_COLOR_SELECTION_DIALOG(widget)) {
825d41ada522 Use static inline functions instead of macros
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35551
diff changeset
56 GtkWidget *colorsel;
825d41ada522 Use static inline functions instead of macros
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35551
diff changeset
57
825d41ada522 Use static inline functions instead of macros
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35551
diff changeset
58 colorsel = gtk_color_selection_dialog_get_color_selection(
825d41ada522 Use static inline functions instead of macros
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35551
diff changeset
59 GTK_COLOR_SELECTION_DIALOG(widget));
825d41ada522 Use static inline functions instead of macros
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35551
diff changeset
60 gtk_color_selection_set_current_color(
825d41ada522 Use static inline functions instead of macros
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35551
diff changeset
61 GTK_COLOR_SELECTION(colorsel), color);
825d41ada522 Use static inline functions instead of macros
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35551
diff changeset
62 } else
825d41ada522 Use static inline functions instead of macros
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35551
diff changeset
63 gtk_color_button_set_color(GTK_COLOR_BUTTON(widget), color);
825d41ada522 Use static inline functions instead of macros
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35551
diff changeset
64 }
825d41ada522 Use static inline functions instead of macros
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35551
diff changeset
65
825d41ada522 Use static inline functions instead of macros
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35551
diff changeset
66 static inline void
825d41ada522 Use static inline functions instead of macros
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35551
diff changeset
67 pidgin_color_chooser_get_rgb(GtkWidget *widget, GdkColor *color)
825d41ada522 Use static inline functions instead of macros
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35551
diff changeset
68 {
825d41ada522 Use static inline functions instead of macros
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35551
diff changeset
69 if (GTK_IS_COLOR_SELECTION_DIALOG(widget)) {
825d41ada522 Use static inline functions instead of macros
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35551
diff changeset
70 GtkWidget *colorsel;
825d41ada522 Use static inline functions instead of macros
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35551
diff changeset
71
825d41ada522 Use static inline functions instead of macros
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35551
diff changeset
72 colorsel = gtk_color_selection_dialog_get_color_selection(
825d41ada522 Use static inline functions instead of macros
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35551
diff changeset
73 GTK_COLOR_SELECTION_DIALOG(widget));
825d41ada522 Use static inline functions instead of macros
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35551
diff changeset
74 gtk_color_selection_get_current_color(
825d41ada522 Use static inline functions instead of macros
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35551
diff changeset
75 GTK_COLOR_SELECTION(colorsel), color);
825d41ada522 Use static inline functions instead of macros
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35551
diff changeset
76 } else
825d41ada522 Use static inline functions instead of macros
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35551
diff changeset
77 gtk_color_button_get_color(GTK_COLOR_BUTTON(widget), color);
825d41ada522 Use static inline functions instead of macros
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35551
diff changeset
78 }
35547
561418a41b08 Replace gtk_color_selection with gtk_color_chooser
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35542
diff changeset
79
36243
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
80 #else /* 3.4.0 */
35547
561418a41b08 Replace gtk_color_selection with gtk_color_chooser
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35542
diff changeset
81
561418a41b08 Replace gtk_color_selection with gtk_color_chooser
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35542
diff changeset
82 static inline void
561418a41b08 Replace gtk_color_selection with gtk_color_chooser
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35542
diff changeset
83 pidgin_color_chooser_set_rgb(GtkColorChooser *chooser, const GdkColor *rgb)
561418a41b08 Replace gtk_color_selection with gtk_color_chooser
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35542
diff changeset
84 {
561418a41b08 Replace gtk_color_selection with gtk_color_chooser
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35542
diff changeset
85 GdkRGBA rgba;
561418a41b08 Replace gtk_color_selection with gtk_color_chooser
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35542
diff changeset
86
561418a41b08 Replace gtk_color_selection with gtk_color_chooser
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35542
diff changeset
87 rgba.red = rgb->red / 65535.0;
561418a41b08 Replace gtk_color_selection with gtk_color_chooser
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35542
diff changeset
88 rgba.green = rgb->green / 65535.0;
561418a41b08 Replace gtk_color_selection with gtk_color_chooser
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35542
diff changeset
89 rgba.blue = rgb->blue / 65535.0;
561418a41b08 Replace gtk_color_selection with gtk_color_chooser
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35542
diff changeset
90 rgba.alpha = 1.0;
561418a41b08 Replace gtk_color_selection with gtk_color_chooser
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35542
diff changeset
91
561418a41b08 Replace gtk_color_selection with gtk_color_chooser
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35542
diff changeset
92 gtk_color_chooser_set_rgba(chooser, &rgba);
561418a41b08 Replace gtk_color_selection with gtk_color_chooser
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35542
diff changeset
93 }
561418a41b08 Replace gtk_color_selection with gtk_color_chooser
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35542
diff changeset
94
561418a41b08 Replace gtk_color_selection with gtk_color_chooser
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35542
diff changeset
95 static inline void
561418a41b08 Replace gtk_color_selection with gtk_color_chooser
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35542
diff changeset
96 pidgin_color_chooser_get_rgb(GtkColorChooser *chooser, GdkColor *rgb)
561418a41b08 Replace gtk_color_selection with gtk_color_chooser
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35542
diff changeset
97 {
561418a41b08 Replace gtk_color_selection with gtk_color_chooser
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35542
diff changeset
98 GdkRGBA rgba;
561418a41b08 Replace gtk_color_selection with gtk_color_chooser
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35542
diff changeset
99
561418a41b08 Replace gtk_color_selection with gtk_color_chooser
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35542
diff changeset
100 gtk_color_chooser_get_rgba(chooser, &rgba);
561418a41b08 Replace gtk_color_selection with gtk_color_chooser
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35542
diff changeset
101 rgb->red = (int)round(rgba.red * 65535.0);
561418a41b08 Replace gtk_color_selection with gtk_color_chooser
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35542
diff changeset
102 rgb->green = (int)round(rgba.green * 65535.0);
561418a41b08 Replace gtk_color_selection with gtk_color_chooser
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35542
diff changeset
103 rgb->blue = (int)round(rgba.blue * 65535.0);
561418a41b08 Replace gtk_color_selection with gtk_color_chooser
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35542
diff changeset
104 }
561418a41b08 Replace gtk_color_selection with gtk_color_chooser
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35542
diff changeset
105
561418a41b08 Replace gtk_color_selection with gtk_color_chooser
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35542
diff changeset
106 #endif /* 3.4.0 and gtk_color_chooser_ */
561418a41b08 Replace gtk_color_selection with gtk_color_chooser
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35542
diff changeset
107
35534
8e72593def2c Fix gtk_[hv]box_new gtk3 deprecation warnings in unity plugin
Ankit Vani <a@nevitus.org>
parents: 35532
diff changeset
108
36243
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
109 #if GTK_CHECK_VERSION(3,0,0)
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
110
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
111 static inline GtkWidget *
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
112 gtk_grid_table_new(guint rows, guint columns)
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
113 {
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
114 return gtk_grid_new();
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
115 }
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
116
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
117 static inline void
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
118 gtk_grid_attach_defaults(GtkGrid *grid, GtkWidget *child, gint left, gint top,
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
119 gint width, gint height)
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
120 {
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
121 gtk_grid_attach(grid, child, left, top, width, height);
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
122 gtk_widget_set_hexpand(child, TRUE);
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
123 gtk_widget_set_vexpand(child, TRUE);
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
124 }
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
125
36244
2a4179d0177d Replace GtkTable with GtkGrid in Preferences window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 36243
diff changeset
126 static inline void
2a4179d0177d Replace GtkTable with GtkGrid in Preferences window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 36243
diff changeset
127 gtk_grid_attach_full(GtkGrid *grid, GtkWidget *child, guint left, guint top,
2a4179d0177d Replace GtkTable with GtkGrid in Preferences window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 36243
diff changeset
128 guint width, guint height, GtkAttachOptions xoptions,
2a4179d0177d Replace GtkTable with GtkGrid in Preferences window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 36243
diff changeset
129 GtkAttachOptions yoptions, guint xpadding, guint ypadding)
2a4179d0177d Replace GtkTable with GtkGrid in Preferences window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 36243
diff changeset
130 {
2a4179d0177d Replace GtkTable with GtkGrid in Preferences window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 36243
diff changeset
131 gtk_grid_attach(grid, child, left, top, width, height);
2a4179d0177d Replace GtkTable with GtkGrid in Preferences window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 36243
diff changeset
132
2a4179d0177d Replace GtkTable with GtkGrid in Preferences window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 36243
diff changeset
133 if (xoptions & GTK_EXPAND)
2a4179d0177d Replace GtkTable with GtkGrid in Preferences window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 36243
diff changeset
134 gtk_widget_set_hexpand(child, TRUE);
2a4179d0177d Replace GtkTable with GtkGrid in Preferences window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 36243
diff changeset
135 if (!(xoptions & GTK_FILL))
2a4179d0177d Replace GtkTable with GtkGrid in Preferences window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 36243
diff changeset
136 gtk_widget_set_halign(child, GTK_ALIGN_CENTER);
2a4179d0177d Replace GtkTable with GtkGrid in Preferences window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 36243
diff changeset
137 gtk_widget_set_margin_left(child, xpadding);
2a4179d0177d Replace GtkTable with GtkGrid in Preferences window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 36243
diff changeset
138 gtk_widget_set_margin_right(child, xpadding);
2a4179d0177d Replace GtkTable with GtkGrid in Preferences window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 36243
diff changeset
139
2a4179d0177d Replace GtkTable with GtkGrid in Preferences window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 36243
diff changeset
140 if (yoptions & GTK_EXPAND)
2a4179d0177d Replace GtkTable with GtkGrid in Preferences window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 36243
diff changeset
141 gtk_widget_set_vexpand(child, TRUE);
2a4179d0177d Replace GtkTable with GtkGrid in Preferences window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 36243
diff changeset
142 if (!(yoptions & GTK_FILL))
2a4179d0177d Replace GtkTable with GtkGrid in Preferences window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 36243
diff changeset
143 gtk_widget_set_valign(child, GTK_ALIGN_CENTER);
2a4179d0177d Replace GtkTable with GtkGrid in Preferences window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 36243
diff changeset
144 gtk_widget_set_margin_top(child, ypadding);
2a4179d0177d Replace GtkTable with GtkGrid in Preferences window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 36243
diff changeset
145 gtk_widget_set_margin_bottom(child, ypadding);
2a4179d0177d Replace GtkTable with GtkGrid in Preferences window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 36243
diff changeset
146 }
2a4179d0177d Replace GtkTable with GtkGrid in Preferences window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 36243
diff changeset
147
36243
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
148 #else /* 3.0.0 and gtk_grid_ */
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
149
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
150 #define GTK_GRID GTK_TABLE
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
151 #define GtkGrid GtkTable
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
152
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
153 static inline GtkWidget *
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
154 gtk_grid_table_new(guint rows, guint columns)
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
155 {
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
156 return gtk_table_new(rows, columns, FALSE);
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
157 }
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
158
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
159 static inline void
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
160 gtk_grid_set_row_spacing(GtkGrid *grid, guint spacing)
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
161 {
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
162 gtk_table_set_row_spacings(grid, spacing);
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
163 }
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
164
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
165 static inline void
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
166 gtk_grid_set_column_spacing(GtkGrid *grid, guint spacing)
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
167 {
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
168 gtk_table_set_col_spacings(grid, spacing);
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
169 }
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
170
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
171 static inline void
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
172 gtk_grid_attach_defaults(GtkGrid *grid, GtkWidget *child, gint left, gint top,
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
173 gint width, gint height)
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
174 {
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
175 gtk_table_attach_defaults(grid, child, left, left + width,
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
176 top, top + height);
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
177 }
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
178
36244
2a4179d0177d Replace GtkTable with GtkGrid in Preferences window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 36243
diff changeset
179 static inline void
2a4179d0177d Replace GtkTable with GtkGrid in Preferences window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 36243
diff changeset
180 gtk_grid_attach_full(GtkGrid *grid, GtkWidget *child, guint left, guint top,
2a4179d0177d Replace GtkTable with GtkGrid in Preferences window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 36243
diff changeset
181 guint width, guint height, GtkAttachOptions xoptions,
2a4179d0177d Replace GtkTable with GtkGrid in Preferences window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 36243
diff changeset
182 GtkAttachOptions yoptions, guint xpadding, guint ypadding)
2a4179d0177d Replace GtkTable with GtkGrid in Preferences window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 36243
diff changeset
183 {
2a4179d0177d Replace GtkTable with GtkGrid in Preferences window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 36243
diff changeset
184 gtk_table_attach(grid, child, left, left + width, top, top + height,
2a4179d0177d Replace GtkTable with GtkGrid in Preferences window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 36243
diff changeset
185 xoptions, yoptions, xpadding, ypadding);
2a4179d0177d Replace GtkTable with GtkGrid in Preferences window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 36243
diff changeset
186 }
2a4179d0177d Replace GtkTable with GtkGrid in Preferences window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 36243
diff changeset
187
36243
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
188 #endif /* 3.0.0 and gtk_grid_ */
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
189
2a390d401448 Replace GtkTable with GtkGrid in conversation window.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 35953
diff changeset
190
33275
8da9d2ec671d Use new GtkFontChooser where available.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33268
diff changeset
191 #if !GTK_CHECK_VERSION(3,2,0)
8da9d2ec671d Use new GtkFontChooser where available.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33268
diff changeset
192
8da9d2ec671d Use new GtkFontChooser where available.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33268
diff changeset
193 #define GTK_FONT_CHOOSER GTK_FONT_SELECTION_DIALOG
8da9d2ec671d Use new GtkFontChooser where available.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33268
diff changeset
194 #define gtk_font_chooser_get_font gtk_font_selection_dialog_get_font_name
8da9d2ec671d Use new GtkFontChooser where available.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33268
diff changeset
195 #define gtk_font_chooser_set_font gtk_font_selection_dialog_set_font_name
8da9d2ec671d Use new GtkFontChooser where available.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33268
diff changeset
196
33892
ef97228bc5f0 Fix most of warnings for gtk2 and linux
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33683
diff changeset
197 static inline GtkWidget * gtk_font_chooser_dialog_new(const gchar *title,
ef97228bc5f0 Fix most of warnings for gtk2 and linux
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33683
diff changeset
198 GtkWindow *parent)
ef97228bc5f0 Fix most of warnings for gtk2 and linux
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33683
diff changeset
199 {
ef97228bc5f0 Fix most of warnings for gtk2 and linux
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33683
diff changeset
200 return gtk_font_selection_dialog_new(title);
ef97228bc5f0 Fix most of warnings for gtk2 and linux
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33683
diff changeset
201 }
ef97228bc5f0 Fix most of warnings for gtk2 and linux
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33683
diff changeset
202
33170
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
203 #if !GTK_CHECK_VERSION(3,0,0)
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
204
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
205 #define gdk_x11_window_get_xid GDK_WINDOW_XWINDOW
33277
d6229108ce71 Remove deprecated gtk_widget_size_request calls.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33275
diff changeset
206 #define gtk_widget_get_preferred_size(x,y,z) gtk_widget_size_request(x,z)
33170
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
207
33523
fce9167b25c2 Fix compilation on GTK2
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33277
diff changeset
208 #ifdef GDK_WINDOWING_X11
fce9167b25c2 Fix compilation on GTK2
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33277
diff changeset
209 #define GDK_IS_X11_WINDOW(window) TRUE
fce9167b25c2 Fix compilation on GTK2
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33277
diff changeset
210 #endif
fce9167b25c2 Fix compilation on GTK2
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33277
diff changeset
211 #ifdef GDK_WINDOWING_WIN32
fce9167b25c2 Fix compilation on GTK2
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33277
diff changeset
212 #define GDK_IS_WIN32_WINDOW(window) TRUE
fce9167b25c2 Fix compilation on GTK2
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33277
diff changeset
213 #endif
fce9167b25c2 Fix compilation on GTK2
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33277
diff changeset
214 #ifdef GDK_WINDOWING_QUARTZ
fce9167b25c2 Fix compilation on GTK2
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33277
diff changeset
215 #define GDK_IS_QUARTZ_WINDOW(window) TRUE
fce9167b25c2 Fix compilation on GTK2
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33277
diff changeset
216 #endif
fce9167b25c2 Fix compilation on GTK2
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents: 33277
diff changeset
217
35542
53d0fee7c971 Fix whiteboard to work on both gtk2 and gtk3
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35534
diff changeset
218 static inline GdkPixbuf *
53d0fee7c971 Fix whiteboard to work on both gtk2 and gtk3
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35534
diff changeset
219 gdk_pixbuf_get_from_surface(cairo_surface_t *surface, gint src_x, gint src_y,
53d0fee7c971 Fix whiteboard to work on both gtk2 and gtk3
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35534
diff changeset
220 gint width, gint height)
53d0fee7c971 Fix whiteboard to work on both gtk2 and gtk3
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35534
diff changeset
221 {
53d0fee7c971 Fix whiteboard to work on both gtk2 and gtk3
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35534
diff changeset
222 GdkPixmap *pixmap;
53d0fee7c971 Fix whiteboard to work on both gtk2 and gtk3
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35534
diff changeset
223 GdkPixbuf *pixbuf;
53d0fee7c971 Fix whiteboard to work on both gtk2 and gtk3
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35534
diff changeset
224 cairo_t *cr;
53d0fee7c971 Fix whiteboard to work on both gtk2 and gtk3
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35534
diff changeset
225
53d0fee7c971 Fix whiteboard to work on both gtk2 and gtk3
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35534
diff changeset
226 pixmap = gdk_pixmap_new(NULL, width, height, 24);
53d0fee7c971 Fix whiteboard to work on both gtk2 and gtk3
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35534
diff changeset
227
53d0fee7c971 Fix whiteboard to work on both gtk2 and gtk3
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35534
diff changeset
228 cr = gdk_cairo_create(pixmap);
53d0fee7c971 Fix whiteboard to work on both gtk2 and gtk3
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35534
diff changeset
229 cairo_set_source_surface(cr, surface, -src_x, -src_y);
53d0fee7c971 Fix whiteboard to work on both gtk2 and gtk3
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35534
diff changeset
230 cairo_paint(cr);
53d0fee7c971 Fix whiteboard to work on both gtk2 and gtk3
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35534
diff changeset
231 cairo_destroy(cr);
53d0fee7c971 Fix whiteboard to work on both gtk2 and gtk3
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35534
diff changeset
232
53d0fee7c971 Fix whiteboard to work on both gtk2 and gtk3
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35534
diff changeset
233 pixbuf = gdk_pixbuf_get_from_drawable(NULL, pixmap,
53d0fee7c971 Fix whiteboard to work on both gtk2 and gtk3
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35534
diff changeset
234 gdk_drawable_get_colormap(pixmap), 0, 0, 0, 0, width, height);
53d0fee7c971 Fix whiteboard to work on both gtk2 and gtk3
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35534
diff changeset
235
53d0fee7c971 Fix whiteboard to work on both gtk2 and gtk3
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35534
diff changeset
236 g_object_unref(pixmap);
53d0fee7c971 Fix whiteboard to work on both gtk2 and gtk3
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35534
diff changeset
237
53d0fee7c971 Fix whiteboard to work on both gtk2 and gtk3
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35534
diff changeset
238 return pixbuf;
53d0fee7c971 Fix whiteboard to work on both gtk2 and gtk3
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35534
diff changeset
239 }
53d0fee7c971 Fix whiteboard to work on both gtk2 and gtk3
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35534
diff changeset
240
35953
e140cb62e5f2 scrncap: fix gtk3 build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35553
diff changeset
241 static inline GdkPixbuf *
e140cb62e5f2 scrncap: fix gtk3 build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35553
diff changeset
242 gdk_pixbuf_get_from_window(GdkWindow *window, gint src_x, gint src_y,
e140cb62e5f2 scrncap: fix gtk3 build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35553
diff changeset
243 gint width, gint height)
e140cb62e5f2 scrncap: fix gtk3 build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35553
diff changeset
244 {
e140cb62e5f2 scrncap: fix gtk3 build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35553
diff changeset
245 return gdk_pixbuf_get_from_drawable(NULL, window, NULL,
e140cb62e5f2 scrncap: fix gtk3 build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35553
diff changeset
246 src_x, src_y, 0, 0, width, height);
e140cb62e5f2 scrncap: fix gtk3 build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35553
diff changeset
247 }
e140cb62e5f2 scrncap: fix gtk3 build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35553
diff changeset
248
35526
ed1be305c985 Fix gtk_[hv]box_new gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35487
diff changeset
249 static inline GtkWidget *
ed1be305c985 Fix gtk_[hv]box_new gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35487
diff changeset
250 gtk_box_new(GtkOrientation orientation, gint spacing)
ed1be305c985 Fix gtk_[hv]box_new gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35487
diff changeset
251 {
ed1be305c985 Fix gtk_[hv]box_new gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35487
diff changeset
252 g_return_val_if_fail(orientation == GTK_ORIENTATION_HORIZONTAL ||
ed1be305c985 Fix gtk_[hv]box_new gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35487
diff changeset
253 orientation == GTK_ORIENTATION_VERTICAL, NULL);
ed1be305c985 Fix gtk_[hv]box_new gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35487
diff changeset
254
ed1be305c985 Fix gtk_[hv]box_new gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35487
diff changeset
255 if (orientation == GTK_ORIENTATION_HORIZONTAL)
ed1be305c985 Fix gtk_[hv]box_new gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35487
diff changeset
256 return gtk_hbox_new(FALSE, spacing);
ed1be305c985 Fix gtk_[hv]box_new gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35487
diff changeset
257 else /* GTK_ORIENTATION_VERTICAL */
ed1be305c985 Fix gtk_[hv]box_new gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35487
diff changeset
258 return gtk_vbox_new(FALSE, spacing);
ed1be305c985 Fix gtk_[hv]box_new gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35487
diff changeset
259 }
ed1be305c985 Fix gtk_[hv]box_new gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35487
diff changeset
260
35528
e04ba70092e9 Fix the rest of [hv] gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35526
diff changeset
261 static inline GtkWidget *
e04ba70092e9 Fix the rest of [hv] gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35526
diff changeset
262 gtk_separator_new(GtkOrientation orientation)
e04ba70092e9 Fix the rest of [hv] gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35526
diff changeset
263 {
e04ba70092e9 Fix the rest of [hv] gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35526
diff changeset
264 g_return_val_if_fail(orientation == GTK_ORIENTATION_HORIZONTAL ||
e04ba70092e9 Fix the rest of [hv] gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35526
diff changeset
265 orientation == GTK_ORIENTATION_VERTICAL, NULL);
e04ba70092e9 Fix the rest of [hv] gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35526
diff changeset
266
e04ba70092e9 Fix the rest of [hv] gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35526
diff changeset
267 if (orientation == GTK_ORIENTATION_HORIZONTAL)
e04ba70092e9 Fix the rest of [hv] gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35526
diff changeset
268 return gtk_hseparator_new();
e04ba70092e9 Fix the rest of [hv] gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35526
diff changeset
269 else /* GTK_ORIENTATION_VERTICAL */
e04ba70092e9 Fix the rest of [hv] gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35526
diff changeset
270 return gtk_vseparator_new();
e04ba70092e9 Fix the rest of [hv] gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35526
diff changeset
271 }
e04ba70092e9 Fix the rest of [hv] gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35526
diff changeset
272
e04ba70092e9 Fix the rest of [hv] gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35526
diff changeset
273 static inline GtkWidget *
e04ba70092e9 Fix the rest of [hv] gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35526
diff changeset
274 gtk_button_box_new(GtkOrientation orientation)
e04ba70092e9 Fix the rest of [hv] gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35526
diff changeset
275 {
e04ba70092e9 Fix the rest of [hv] gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35526
diff changeset
276 g_return_val_if_fail(orientation == GTK_ORIENTATION_HORIZONTAL ||
e04ba70092e9 Fix the rest of [hv] gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35526
diff changeset
277 orientation == GTK_ORIENTATION_VERTICAL, NULL);
e04ba70092e9 Fix the rest of [hv] gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35526
diff changeset
278
e04ba70092e9 Fix the rest of [hv] gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35526
diff changeset
279 if (orientation == GTK_ORIENTATION_HORIZONTAL)
e04ba70092e9 Fix the rest of [hv] gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35526
diff changeset
280 return gtk_hbutton_box_new();
e04ba70092e9 Fix the rest of [hv] gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35526
diff changeset
281 else /* GTK_ORIENTATION_VERTICAL */
e04ba70092e9 Fix the rest of [hv] gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35526
diff changeset
282 return gtk_vbutton_box_new();
e04ba70092e9 Fix the rest of [hv] gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35526
diff changeset
283 }
e04ba70092e9 Fix the rest of [hv] gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35526
diff changeset
284
35530
fdc05600d1fb Fix gtk2 build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35528
diff changeset
285 static inline GtkWidget *
fdc05600d1fb Fix gtk2 build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35528
diff changeset
286 gtk_paned_new(GtkOrientation orientation)
fdc05600d1fb Fix gtk2 build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35528
diff changeset
287 {
fdc05600d1fb Fix gtk2 build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35528
diff changeset
288 g_return_val_if_fail(orientation == GTK_ORIENTATION_HORIZONTAL ||
fdc05600d1fb Fix gtk2 build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35528
diff changeset
289 orientation == GTK_ORIENTATION_VERTICAL, NULL);
fdc05600d1fb Fix gtk2 build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35528
diff changeset
290
fdc05600d1fb Fix gtk2 build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35528
diff changeset
291 if (orientation == GTK_ORIENTATION_HORIZONTAL)
fdc05600d1fb Fix gtk2 build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35528
diff changeset
292 return gtk_hpaned_new();
fdc05600d1fb Fix gtk2 build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35528
diff changeset
293 else /* GTK_ORIENTATION_VERTICAL */
fdc05600d1fb Fix gtk2 build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35528
diff changeset
294 return gtk_vpaned_new();
fdc05600d1fb Fix gtk2 build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35528
diff changeset
295 }
fdc05600d1fb Fix gtk2 build
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35528
diff changeset
296
35532
2c802bb77720 Fix most of warnings for gtk 3.4
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35530
diff changeset
297 static inline GtkWidget *
2c802bb77720 Fix most of warnings for gtk 3.4
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35530
diff changeset
298 gtk_scale_new_with_range(GtkOrientation orientation, gdouble min, gdouble max,
2c802bb77720 Fix most of warnings for gtk 3.4
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35530
diff changeset
299 gdouble step)
2c802bb77720 Fix most of warnings for gtk 3.4
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35530
diff changeset
300 {
2c802bb77720 Fix most of warnings for gtk 3.4
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35530
diff changeset
301 g_return_val_if_fail(orientation == GTK_ORIENTATION_HORIZONTAL ||
2c802bb77720 Fix most of warnings for gtk 3.4
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35530
diff changeset
302 orientation == GTK_ORIENTATION_VERTICAL, NULL);
2c802bb77720 Fix most of warnings for gtk 3.4
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35530
diff changeset
303
2c802bb77720 Fix most of warnings for gtk 3.4
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35530
diff changeset
304 if (orientation == GTK_ORIENTATION_HORIZONTAL)
2c802bb77720 Fix most of warnings for gtk 3.4
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35530
diff changeset
305 return gtk_hscale_new_with_range(min, max, step);
2c802bb77720 Fix most of warnings for gtk 3.4
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35530
diff changeset
306 else /* GTK_ORIENTATION_VERTICAL */
2c802bb77720 Fix most of warnings for gtk 3.4
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35530
diff changeset
307 return gtk_vscale_new_with_range(min, max, step);
2c802bb77720 Fix most of warnings for gtk 3.4
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35530
diff changeset
308 }
2c802bb77720 Fix most of warnings for gtk 3.4
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents: 35530
diff changeset
309
33170
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
310 #if !GTK_CHECK_VERSION(2,24,0)
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
311
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
312 #define gdk_x11_set_sm_client_id gdk_set_sm_client_id
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
313 #define gdk_window_get_display gdk_drawable_get_display
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
314 #define GtkComboBoxText GtkComboBox
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
315 #define GTK_COMBO_BOX_TEXT GTK_COMBO_BOX
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
316 #define gtk_combo_box_text_new gtk_combo_box_new_text
33268
a24713d9bbb3 Fix GTK+3 compile.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33185
diff changeset
317 #define gtk_combo_box_text_new_with_entry gtk_combo_box_entry_new_text
33170
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
318 #define gtk_combo_box_text_append_text gtk_combo_box_append_text
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
319 #define gtk_combo_box_text_get_active_text gtk_combo_box_get_active_text
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
320 #define gtk_combo_box_text_remove gtk_combo_box_remove_text
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
321
33179
49992d98f392 Fix fallback function inlining.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33170
diff changeset
322 static inline gint gdk_window_get_width(GdkWindow *x)
33170
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
323 {
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
324 gint w;
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
325 gdk_drawable_get_size(GDK_DRAWABLE(x), &w, NULL);
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
326 return w;
33185
6e5188b4f928 Remove some sneaky trailing whitespace.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33180
diff changeset
327 }
33170
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
328
33179
49992d98f392 Fix fallback function inlining.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33170
diff changeset
329 static inline gint gdk_window_get_height(GdkWindow *x)
33170
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
330 {
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
331 gint h;
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
332 gdk_drawable_get_size(GDK_DRAWABLE(x), NULL, &h);
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
333 return h;
33185
6e5188b4f928 Remove some sneaky trailing whitespace.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33180
diff changeset
334 }
33170
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
335
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
336 #if !GTK_CHECK_VERSION(2,22,0)
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
337
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
338 #define gdk_drag_context_get_actions(x) (x)->action
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
339 #define gdk_drag_context_get_suggested_action(x) (x)->suggested_action
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
340 #define gtk_text_view_get_vadjustment(x) (x)->vadjustment
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
341 #define gtk_font_selection_dialog_get_font_selection(x) (x)->fontsel
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
342
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
343 #if !GTK_CHECK_VERSION(2,20,0)
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
344
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
345 #define gtk_widget_get_mapped GTK_WIDGET_MAPPED
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
346 #define gtk_widget_set_mapped(x,y) do { \
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
347 if (y) \
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
348 GTK_WIDGET_SET_FLAGS(x, GTK_MAPPED); \
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
349 else \
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
350 GTK_WIDGET_UNSET_FLAGS(x, GTK_MAPPED); \
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
351 } while(0)
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
352 #define gtk_widget_get_realized GTK_WIDGET_REALIZED
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
353 #define gtk_widget_set_realized(x,y) do { \
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
354 if (y) \
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
355 GTK_WIDGET_SET_FLAGS(x, GTK_REALIZED); \
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
356 else \
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
357 GTK_WIDGET_UNSET_FLAGS(x, GTK_REALIZED); \
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
358 } while(0)
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
359
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
360 #endif /* 2.20.0 */
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
361
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
362 #endif /* 2.22.0 */
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
363
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
364 #endif /* 2.24.0 */
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
365
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
366 #endif /* 3.0.0 */
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
367
33275
8da9d2ec671d Use new GtkFontChooser where available.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33268
diff changeset
368 #endif /* 3.2.0 */
8da9d2ec671d Use new GtkFontChooser where available.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 33268
diff changeset
369
33170
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
370 #endif /* _PIDGINGTK3COMPAT_H_ */
ce4447562d64 Add checks for old GTK+2 stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff changeset
371

mercurial