Merge lp:~muktupavels/notify-osd/fix-deprecation-warnings into lp:notify-osd
- fix-deprecation-warnings
- Merge into trunk
Proposed by
Alberts Muktupāvels
Status: | Merged |
---|---|
Approved by: | Lars Karlitski |
Approved revision: | 492 |
Merged at revision: | 486 |
Proposed branch: | lp:~muktupavels/notify-osd/fix-deprecation-warnings |
Merge into: | lp:notify-osd |
Diff against target: |
448 lines (+66/-84) 16 files modified
configure.in (+2/-2) debian/control (+2/-2) egg/egg-hack.c (+0/-24) egg/egg-hack.h (+0/-10) egg/test-timeline-dup-frames.c (+0/-2) egg/test-timeline-interpolate.c (+0/-2) egg/test-timeline-rewind.c (+0/-2) egg/test-timeline-smoothness.c (+0/-2) egg/test-timeline.c (+0/-2) src/bubble.c (+21/-12) src/defaults.c (+5/-5) src/dialog.c (+4/-2) src/main.c (+0/-1) tests/test-alpha-animation.c (+0/-2) tests/test-grow-bubble.c (+16/-7) tests/test-scroll-text.c (+16/-7) |
To merge this branch: | bzr merge lp:~muktupavels/notify-osd/fix-deprecation-warnings |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Lars Karlitski (community) | Approve | ||
Dmitry Shachnev | Approve | ||
Review via email: mp+245267@code.launchpad.net |
Commit message
Fix some deprecation warnings.
Description of the change
Fix some deprecation warnings.
To post a comment you must log in.
Revision history for this message
Dmitry Shachnev (mitya57) wrote : | # |
- 492. By Alberts Muktupāvels
-
bump required versions also in configure.in.
Revision history for this message
Alberts Muktupāvels (muktupavels) wrote : | # |
> Can you please bump required glib/gtk+ versions in configure.in as well?
OK.
Revision history for this message
Dmitry Shachnev (mitya57) : | # |
review:
Approve
Revision history for this message
Lars Karlitski (larsu) wrote : | # |
Looks good to me, thanks!
review:
Approve
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'configure.in' | |||
2 | --- configure.in 2012-03-23 14:35:42 +0000 | |||
3 | +++ configure.in 2014-12-21 14:35:42 +0000 | |||
4 | @@ -31,7 +31,7 @@ | |||
5 | 31 | # | 31 | # |
6 | 32 | # glib, we need 2.16.0 for the unit-tests | 32 | # glib, we need 2.16.0 for the unit-tests |
7 | 33 | # | 33 | # |
9 | 34 | PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.16.0 gthread-2.0 gio-2.0]) | 34 | PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.36.0 gthread-2.0 gio-2.0]) |
10 | 35 | 35 | ||
11 | 36 | # | 36 | # |
12 | 37 | # libwnck used by the dnd code | 37 | # libwnck used by the dnd code |
13 | @@ -69,7 +69,7 @@ | |||
14 | 69 | 69 | ||
15 | 70 | AM_PATH_GTK_3_0 | 70 | AM_PATH_GTK_3_0 |
16 | 71 | 71 | ||
18 | 72 | PKG_CHECK_MODULES([NOTIFY_OSD], [pixman-1 gtk+-3.0 >= 3.1.6]) | 72 | PKG_CHECK_MODULES([NOTIFY_OSD], [pixman-1 gtk+-3.0 >= 3.8.0]) |
19 | 73 | AC_SUBST(NOTIFY_OSD_CFLAGS) | 73 | AC_SUBST(NOTIFY_OSD_CFLAGS) |
20 | 74 | AC_SUBST(NOTIFY_OSD_LIBS) | 74 | AC_SUBST(NOTIFY_OSD_LIBS) |
21 | 75 | 75 | ||
22 | 76 | 76 | ||
23 | === modified file 'debian/control' | |||
24 | --- debian/control 2013-05-01 21:17:07 +0000 | |||
25 | +++ debian/control 2014-12-21 14:35:42 +0000 | |||
26 | @@ -8,8 +8,8 @@ | |||
27 | 8 | intltool, | 8 | intltool, |
28 | 9 | libdbus-1-dev (>= 0.36), | 9 | libdbus-1-dev (>= 0.36), |
29 | 10 | libdbus-glib-1-dev (>= 0.60), | 10 | libdbus-glib-1-dev (>= 0.60), |
32 | 11 | libglib2.0-dev (>= 2.4), | 11 | libglib2.0-dev (>= 2.36), |
33 | 12 | libgtk-3-dev (>= 3.1.6), | 12 | libgtk-3-dev (>= 3.8.0), |
34 | 13 | libnotify-dev (>= 0.6.1), | 13 | libnotify-dev (>= 0.6.1), |
35 | 14 | libwnck-3-dev, | 14 | libwnck-3-dev, |
36 | 15 | XS-Testsuite: autopkgtest | 15 | XS-Testsuite: autopkgtest |
37 | 16 | 16 | ||
38 | === modified file 'egg/egg-hack.c' | |||
39 | --- egg/egg-hack.c 2009-02-06 11:12:41 +0000 | |||
40 | +++ egg/egg-hack.c 2014-12-21 14:35:42 +0000 | |||
41 | @@ -61,7 +61,6 @@ | |||
42 | 61 | 61 | ||
43 | 62 | static guint egg_main_loop_level = 0; | 62 | static guint egg_main_loop_level = 0; |
44 | 63 | static GSList *main_loops = NULL; | 63 | static GSList *main_loops = NULL; |
45 | 64 | static gboolean egg_is_initialized = FALSE; | ||
46 | 65 | 64 | ||
47 | 66 | 65 | ||
48 | 67 | /** | 66 | /** |
49 | @@ -79,13 +78,6 @@ | |||
50 | 79 | EGG_CONTEXT (); | 78 | EGG_CONTEXT (); |
51 | 80 | #endif | 79 | #endif |
52 | 81 | 80 | ||
53 | 82 | if (!egg_is_initialized) | ||
54 | 83 | { | ||
55 | 84 | g_warning ("Called egg_main() but Egg wasn't initialised. " | ||
56 | 85 | "You must call egg_init() first."); | ||
57 | 86 | return; | ||
58 | 87 | } | ||
59 | 88 | |||
60 | 89 | EGG_MARK (); | 81 | EGG_MARK (); |
61 | 90 | 82 | ||
62 | 91 | egg_main_loop_level++; | 83 | egg_main_loop_level++; |
63 | @@ -116,22 +108,6 @@ | |||
64 | 116 | EGG_MARK (); | 108 | EGG_MARK (); |
65 | 117 | } | 109 | } |
66 | 118 | 110 | ||
67 | 119 | EggInitError | ||
68 | 120 | egg_init (int *argc, | ||
69 | 121 | char ***argv) | ||
70 | 122 | { | ||
71 | 123 | if (!egg_is_initialized) | ||
72 | 124 | { | ||
73 | 125 | /* initialise GLib type system */ | ||
74 | 126 | g_type_init (); | ||
75 | 127 | |||
76 | 128 | egg_is_initialized = TRUE; | ||
77 | 129 | } | ||
78 | 130 | |||
79 | 131 | return EGG_INIT_SUCCESS; | ||
80 | 132 | } | ||
81 | 133 | |||
82 | 134 | |||
83 | 135 | /* -------------------------------------------------------------------------- */ | 111 | /* -------------------------------------------------------------------------- */ |
84 | 136 | 112 | ||
85 | 137 | /* auto-generated code taken from egg-enum-types.c */ | 113 | /* auto-generated code taken from egg-enum-types.c */ |
86 | 138 | 114 | ||
87 | === modified file 'egg/egg-hack.h' | |||
88 | --- egg/egg-hack.h 2009-02-06 11:12:41 +0000 | |||
89 | +++ egg/egg-hack.h 2014-12-21 14:35:42 +0000 | |||
90 | @@ -52,16 +52,6 @@ | |||
91 | 52 | void | 52 | void |
92 | 53 | egg_threads_leave (void); | 53 | egg_threads_leave (void); |
93 | 54 | 54 | ||
94 | 55 | typedef enum { | ||
95 | 56 | EGG_INIT_SUCCESS = 1, | ||
96 | 57 | EGG_INIT_ERROR_UNKNOWN = 0, | ||
97 | 58 | EGG_INIT_ERROR_THREADS = -1, | ||
98 | 59 | EGG_INIT_ERROR_BACKEND = -2, | ||
99 | 60 | EGG_INIT_ERROR_INTERNAL = -3 | ||
100 | 61 | } EggInitError; | ||
101 | 62 | |||
102 | 63 | EggInitError egg_init (int *argc, | ||
103 | 64 | char ***argv); | ||
104 | 65 | void egg_main (void); | 55 | void egg_main (void); |
105 | 66 | 56 | ||
106 | 67 | 57 | ||
107 | 68 | 58 | ||
108 | === modified file 'egg/test-timeline-dup-frames.c' | |||
109 | --- egg/test-timeline-dup-frames.c 2009-02-06 11:12:41 +0000 | |||
110 | +++ egg/test-timeline-dup-frames.c 2014-12-21 14:35:42 +0000 | |||
111 | @@ -69,8 +69,6 @@ | |||
112 | 69 | { | 69 | { |
113 | 70 | TestState state; | 70 | TestState state; |
114 | 71 | 71 | ||
115 | 72 | egg_init(&argc, &argv); | ||
116 | 73 | |||
117 | 74 | state.timeline = | 72 | state.timeline = |
118 | 75 | egg_timeline_new (TEST_TIMELINE_FRAME_COUNT, | 73 | egg_timeline_new (TEST_TIMELINE_FRAME_COUNT, |
119 | 76 | TEST_TIMELINE_FPS); | 74 | TEST_TIMELINE_FPS); |
120 | 77 | 75 | ||
121 | === modified file 'egg/test-timeline-interpolate.c' | |||
122 | --- egg/test-timeline-interpolate.c 2009-02-06 11:12:41 +0000 | |||
123 | +++ egg/test-timeline-interpolate.c 2014-12-21 14:35:42 +0000 | |||
124 | @@ -125,8 +125,6 @@ | |||
125 | 125 | { | 125 | { |
126 | 126 | TestState state; | 126 | TestState state; |
127 | 127 | 127 | ||
128 | 128 | egg_init (&argc, &argv); | ||
129 | 129 | |||
130 | 130 | state.timeline = | 128 | state.timeline = |
131 | 131 | egg_timeline_new (TEST_TIMELINE_FRAME_COUNT, | 129 | egg_timeline_new (TEST_TIMELINE_FRAME_COUNT, |
132 | 132 | TEST_TIMELINE_FPS); | 130 | TEST_TIMELINE_FPS); |
133 | 133 | 131 | ||
134 | === modified file 'egg/test-timeline-rewind.c' | |||
135 | --- egg/test-timeline-rewind.c 2009-02-06 11:12:41 +0000 | |||
136 | +++ egg/test-timeline-rewind.c 2014-12-21 14:35:42 +0000 | |||
137 | @@ -72,8 +72,6 @@ | |||
138 | 72 | { | 72 | { |
139 | 73 | TestState state; | 73 | TestState state; |
140 | 74 | 74 | ||
141 | 75 | egg_init (&argc, &argv); | ||
142 | 76 | |||
143 | 77 | state.timeline = | 75 | state.timeline = |
144 | 78 | egg_timeline_new (TEST_TIMELINE_FRAME_COUNT, | 76 | egg_timeline_new (TEST_TIMELINE_FRAME_COUNT, |
145 | 79 | TEST_TIMELINE_FPS); | 77 | TEST_TIMELINE_FPS); |
146 | 80 | 78 | ||
147 | === modified file 'egg/test-timeline-smoothness.c' | |||
148 | --- egg/test-timeline-smoothness.c 2009-02-06 11:12:41 +0000 | |||
149 | +++ egg/test-timeline-smoothness.c 2014-12-21 14:35:42 +0000 | |||
150 | @@ -84,8 +84,6 @@ | |||
151 | 84 | { | 84 | { |
152 | 85 | TestState state; | 85 | TestState state; |
153 | 86 | 86 | ||
154 | 87 | egg_init (&argc, &argv); | ||
155 | 88 | |||
156 | 89 | state.timeline = | 87 | state.timeline = |
157 | 90 | egg_timeline_new (TEST_TIMELINE_FRAME_COUNT, | 88 | egg_timeline_new (TEST_TIMELINE_FRAME_COUNT, |
158 | 91 | TEST_TIMELINE_FPS); | 89 | TEST_TIMELINE_FPS); |
159 | 92 | 90 | ||
160 | === modified file 'egg/test-timeline.c' | |||
161 | --- egg/test-timeline.c 2009-02-06 11:12:41 +0000 | |||
162 | +++ egg/test-timeline.c 2014-12-21 14:35:42 +0000 | |||
163 | @@ -72,8 +72,6 @@ | |||
164 | 72 | gchar **markers; | 72 | gchar **markers; |
165 | 73 | gsize n_markers; | 73 | gsize n_markers; |
166 | 74 | 74 | ||
167 | 75 | egg_init (&argc, &argv); | ||
168 | 76 | |||
169 | 77 | timeline_1 = egg_timeline_new (10, 120); | 75 | timeline_1 = egg_timeline_new (10, 120); |
170 | 78 | egg_timeline_add_marker_at_frame (timeline_1, "foo", 5); | 76 | egg_timeline_add_marker_at_frame (timeline_1, "foo", 5); |
171 | 79 | egg_timeline_add_marker_at_frame (timeline_1, "bar", 5); | 77 | egg_timeline_add_marker_at_frame (timeline_1, "bar", 5); |
172 | 80 | 78 | ||
173 | === modified file 'src/bubble.c' | |||
174 | --- src/bubble.c 2013-12-04 16:43:44 +0000 | |||
175 | +++ src/bubble.c 2014-12-21 14:35:42 +0000 | |||
176 | @@ -1802,7 +1802,7 @@ | |||
177 | 1802 | { | 1802 | { |
178 | 1803 | if (priv->distance < 1.0f && !priv->prevent_fade) | 1803 | if (priv->distance < 1.0f && !priv->prevent_fade) |
179 | 1804 | { | 1804 | { |
181 | 1805 | gtk_window_set_opacity (window, | 1805 | gtk_widget_set_opacity (priv->widget, |
182 | 1806 | WINDOW_MIN_OPACITY + | 1806 | WINDOW_MIN_OPACITY + |
183 | 1807 | priv->distance * | 1807 | priv->distance * |
184 | 1808 | (WINDOW_MAX_OPACITY - | 1808 | (WINDOW_MAX_OPACITY - |
185 | @@ -1810,7 +1810,7 @@ | |||
186 | 1810 | bubble_refresh (bubble); | 1810 | bubble_refresh (bubble); |
187 | 1811 | } | 1811 | } |
188 | 1812 | else | 1812 | else |
190 | 1813 | gtk_window_set_opacity (window, WINDOW_MAX_OPACITY); | 1813 | gtk_widget_set_opacity (priv->widget, WINDOW_MAX_OPACITY); |
191 | 1814 | } | 1814 | } |
192 | 1815 | 1815 | ||
193 | 1816 | return TRUE; | 1816 | return TRUE; |
194 | @@ -1905,10 +1905,19 @@ | |||
195 | 1905 | 1905 | ||
196 | 1906 | if (gtk_widget_get_realized (window)) | 1906 | if (gtk_widget_get_realized (window)) |
197 | 1907 | { | 1907 | { |
202 | 1908 | gint distance_x = 0; | 1908 | GdkDeviceManager *device_manager; |
203 | 1909 | gint distance_y = 0; | 1909 | GdkDevice *device; |
204 | 1910 | 1910 | gint distance_x; | |
205 | 1911 | gtk_widget_get_pointer (window, &pointer_rel_x, &pointer_rel_y); | 1911 | gint distance_y; |
206 | 1912 | |||
207 | 1913 | device_manager = gdk_display_get_device_manager (gtk_widget_get_display (window)); | ||
208 | 1914 | device = gdk_device_manager_get_client_pointer (device_manager); | ||
209 | 1915 | gdk_window_get_device_position (gtk_widget_get_window (window), | ||
210 | 1916 | device, | ||
211 | 1917 | &pointer_rel_x, | ||
212 | 1918 | &pointer_rel_y, | ||
213 | 1919 | NULL); | ||
214 | 1920 | |||
215 | 1912 | gtk_window_get_position (GTK_WINDOW (window), &win_x, &win_y); | 1921 | gtk_window_get_position (GTK_WINDOW (window), &win_x, &win_y); |
216 | 1913 | pointer_abs_x = win_x + pointer_rel_x; | 1922 | pointer_abs_x = win_x + pointer_rel_x; |
217 | 1914 | pointer_abs_y = win_y + pointer_rel_y; | 1923 | pointer_abs_y = win_y + pointer_rel_y; |
218 | @@ -2259,7 +2268,7 @@ | |||
219 | 2259 | gtk_window_set_resizable (GTK_WINDOW (window), FALSE); | 2268 | gtk_window_set_resizable (GTK_WINDOW (window), FALSE); |
220 | 2260 | gtk_window_set_focus_on_map (GTK_WINDOW (window), FALSE); | 2269 | gtk_window_set_focus_on_map (GTK_WINDOW (window), FALSE); |
221 | 2261 | gtk_window_set_accept_focus (GTK_WINDOW (window), FALSE); | 2270 | gtk_window_set_accept_focus (GTK_WINDOW (window), FALSE); |
223 | 2262 | gtk_window_set_opacity (GTK_WINDOW (window), 0.0f); | 2271 | gtk_widget_set_opacity (window, 0.0f); |
224 | 2263 | 2272 | ||
225 | 2264 | // TODO: fold some of that back into bubble_init | 2273 | // TODO: fold some of that back into bubble_init |
226 | 2265 | this->priv = GET_PRIVATE (this); | 2274 | this->priv = GET_PRIVATE (this); |
227 | @@ -2891,10 +2900,10 @@ | |||
228 | 2891 | * WINDOW_MAX_OPACITY; | 2900 | * WINDOW_MAX_OPACITY; |
229 | 2892 | 2901 | ||
230 | 2893 | if (bubble_is_mouse_over (bubble)) | 2902 | if (bubble_is_mouse_over (bubble)) |
232 | 2894 | gtk_window_set_opacity (bubble_get_window (bubble), | 2903 | gtk_widget_set_opacity (GET_PRIVATE (bubble)->widget, |
233 | 2895 | WINDOW_MIN_OPACITY); | 2904 | WINDOW_MIN_OPACITY); |
234 | 2896 | else | 2905 | else |
236 | 2897 | gtk_window_set_opacity (bubble_get_window (bubble), opacity); | 2906 | gtk_widget_set_opacity (GET_PRIVATE (bubble)->widget, opacity); |
237 | 2898 | } | 2907 | } |
238 | 2899 | 2908 | ||
239 | 2900 | static void | 2909 | static void |
240 | @@ -2936,10 +2945,10 @@ | |||
241 | 2936 | } | 2945 | } |
242 | 2937 | 2946 | ||
243 | 2938 | if (bubble_is_mouse_over (bubble)) | 2947 | if (bubble_is_mouse_over (bubble)) |
245 | 2939 | gtk_window_set_opacity (bubble_get_window (bubble), | 2948 | gtk_widget_set_opacity (GET_PRIVATE (bubble)->widget, |
246 | 2940 | WINDOW_MIN_OPACITY); | 2949 | WINDOW_MIN_OPACITY); |
247 | 2941 | else | 2950 | else |
249 | 2942 | gtk_window_set_opacity (bubble_get_window (bubble), | 2951 | gtk_widget_set_opacity (GET_PRIVATE (bubble)->widget, |
250 | 2943 | WINDOW_MAX_OPACITY); | 2952 | WINDOW_MAX_OPACITY); |
251 | 2944 | 2953 | ||
252 | 2945 | bubble_start_timer (bubble, TRUE); | 2954 | bubble_start_timer (bubble, TRUE); |
253 | @@ -2990,7 +2999,7 @@ | |||
254 | 2990 | 2999 | ||
255 | 2991 | egg_timeline_start (timeline); | 3000 | egg_timeline_start (timeline); |
256 | 2992 | 3001 | ||
258 | 2993 | gtk_window_set_opacity (bubble_get_window (self), 0.0f); | 3002 | gtk_widget_set_opacity (GET_PRIVATE (self)->widget, 0.0f); |
259 | 2994 | 3003 | ||
260 | 2995 | bubble_show (self); | 3004 | bubble_show (self); |
261 | 2996 | } | 3005 | } |
262 | 2997 | 3006 | ||
263 | === modified file 'src/defaults.c' | |||
264 | --- src/defaults.c 2014-02-13 12:45:13 +0000 | |||
265 | +++ src/defaults.c 2014-12-21 14:35:42 +0000 | |||
266 | @@ -1865,6 +1865,8 @@ | |||
267 | 1865 | { | 1865 | { |
268 | 1866 | GdkRectangle rect; | 1866 | GdkRectangle rect; |
269 | 1867 | GdkWindow* active_window = NULL; | 1867 | GdkWindow* active_window = NULL; |
270 | 1868 | GdkDeviceManager* device_manager; | ||
271 | 1869 | GdkDevice* device; | ||
272 | 1868 | gint mx; | 1870 | gint mx; |
273 | 1869 | gint my; | 1871 | gint my; |
274 | 1870 | gint monitor = 0; | 1872 | gint monitor = 0; |
275 | @@ -1875,11 +1877,9 @@ | |||
276 | 1875 | 1877 | ||
277 | 1876 | g_return_if_fail (self != NULL && IS_DEFAULTS (self)); | 1878 | g_return_if_fail (self != NULL && IS_DEFAULTS (self)); |
278 | 1877 | 1879 | ||
284 | 1878 | gdk_display_get_pointer (gdk_display_get_default (), | 1880 | device_manager = gdk_display_get_device_manager (gdk_display_get_default ()); |
285 | 1879 | screen, | 1881 | device = gdk_device_manager_get_client_pointer (device_manager); |
286 | 1880 | &mx, | 1882 | gdk_device_get_position (device, screen, &mx, &my); |
282 | 1881 | &my, | ||
283 | 1882 | NULL); | ||
287 | 1883 | 1883 | ||
288 | 1884 | is_composited = gdk_screen_is_composited (*screen); | 1884 | is_composited = gdk_screen_is_composited (*screen); |
289 | 1885 | 1885 | ||
290 | 1886 | 1886 | ||
291 | === modified file 'src/dialog.c' | |||
292 | --- src/dialog.c 2010-10-05 17:54:42 +0000 | |||
293 | +++ src/dialog.c 2014-12-21 14:35:42 +0000 | |||
294 | @@ -176,7 +176,8 @@ | |||
295 | 176 | 176 | ||
296 | 177 | dialog = gtk_dialog_new (); | 177 | dialog = gtk_dialog_new (); |
297 | 178 | 178 | ||
299 | 179 | hbox = g_object_new (GTK_TYPE_HBOX, | 179 | hbox = g_object_new (GTK_TYPE_BOX, |
300 | 180 | "orientation", GTK_ORIENTATION_HORIZONTAL, | ||
301 | 180 | "spacing", gap, | 181 | "spacing", gap, |
302 | 181 | "border-width", 12, | 182 | "border-width", 12, |
303 | 182 | NULL); | 183 | NULL); |
304 | @@ -190,7 +191,8 @@ | |||
305 | 190 | gtk_misc_set_alignment (GTK_MISC (image), 0.5, 0.0); | 191 | gtk_misc_set_alignment (GTK_MISC (image), 0.5, 0.0); |
306 | 191 | gtk_box_pack_start (GTK_BOX (hbox), image, FALSE, FALSE, 0); | 192 | gtk_box_pack_start (GTK_BOX (hbox), image, FALSE, FALSE, 0); |
307 | 192 | 193 | ||
309 | 193 | vbox = g_object_new (GTK_TYPE_VBOX, | 194 | vbox = g_object_new (GTK_TYPE_BOX, |
310 | 195 | "orientation", GTK_ORIENTATION_VERTICAL, | ||
311 | 194 | NULL); | 196 | NULL); |
312 | 195 | 197 | ||
313 | 196 | title = gtk_label_new (NULL); | 198 | title = gtk_label_new (NULL); |
314 | 197 | 199 | ||
315 | === modified file 'src/main.c' | |||
316 | --- src/main.c 2013-10-29 18:26:05 +0000 | |||
317 | +++ src/main.c 2014-12-21 14:35:42 +0000 | |||
318 | @@ -48,7 +48,6 @@ | |||
319 | 48 | Observer* observer = NULL; | 48 | Observer* observer = NULL; |
320 | 49 | DBusGConnection* connection = NULL; | 49 | DBusGConnection* connection = NULL; |
321 | 50 | 50 | ||
322 | 51 | g_thread_init (NULL); | ||
323 | 52 | dbus_g_thread_init (); | 51 | dbus_g_thread_init (); |
324 | 53 | log_init (); | 52 | log_init (); |
325 | 54 | 53 | ||
326 | 55 | 54 | ||
327 | === modified file 'tests/test-alpha-animation.c' | |||
328 | --- tests/test-alpha-animation.c 2009-02-13 14:32:02 +0000 | |||
329 | +++ tests/test-alpha-animation.c 2014-12-21 14:35:42 +0000 | |||
330 | @@ -56,8 +56,6 @@ | |||
331 | 56 | EggTimeline *timeline; | 56 | EggTimeline *timeline; |
332 | 57 | EggAlpha *alpha; | 57 | EggAlpha *alpha; |
333 | 58 | 58 | ||
334 | 59 | egg_init (&argc, &argv); | ||
335 | 60 | |||
336 | 61 | timeline = egg_timeline_new_for_duration (700); | 59 | timeline = egg_timeline_new_for_duration (700); |
337 | 62 | alpha = egg_alpha_new_full (timeline, | 60 | alpha = egg_alpha_new_full (timeline, |
338 | 63 | EGG_ALPHA_SINE_DEC, | 61 | EGG_ALPHA_SINE_DEC, |
339 | 64 | 62 | ||
340 | === modified file 'tests/test-grow-bubble.c' | |||
341 | --- tests/test-grow-bubble.c 2011-07-08 08:34:52 +0000 | |||
342 | +++ tests/test-grow-bubble.c 2014-12-21 14:35:42 +0000 | |||
343 | @@ -328,7 +328,7 @@ | |||
344 | 328 | a.height, | 328 | a.height, |
345 | 329 | g_distance, | 329 | g_distance, |
346 | 330 | 1.0f - g_distance); | 330 | 1.0f - g_distance); |
348 | 331 | gtk_window_set_opacity (GTK_WINDOW (window), 0.3f + g_distance * 0.7f); | 331 | gtk_widget_set_opacity (window, 0.3f + g_distance * 0.7f); |
349 | 332 | } | 332 | } |
350 | 333 | else | 333 | else |
351 | 334 | { | 334 | { |
352 | @@ -340,7 +340,7 @@ | |||
353 | 340 | a.height, | 340 | a.height, |
354 | 341 | g_distance, | 341 | g_distance, |
355 | 342 | 0.0f); | 342 | 0.0f); |
357 | 343 | gtk_window_set_opacity (GTK_WINDOW (window), 1.0f); | 343 | gtk_widget_set_opacity (window, 1.0f); |
358 | 344 | } | 344 | } |
359 | 345 | 345 | ||
360 | 346 | return TRUE; | 346 | return TRUE; |
361 | @@ -482,10 +482,19 @@ | |||
362 | 482 | 482 | ||
363 | 483 | if (gtk_widget_get_realized (window)) | 483 | if (gtk_widget_get_realized (window)) |
364 | 484 | { | 484 | { |
369 | 485 | gint distance_x = 0; | 485 | GdkDeviceManager *device_manager; |
370 | 486 | gint distance_y = 0; | 486 | GdkDevice *device; |
371 | 487 | 487 | gint distance_x; | |
372 | 488 | gtk_widget_get_pointer (window, &pointer_rel_x, &pointer_rel_y); | 488 | gint distance_y; |
373 | 489 | |||
374 | 490 | device_manager = gdk_display_get_device_manager (gtk_widget_get_display (window)); | ||
375 | 491 | device = gdk_device_manager_get_client_pointer (device_manager); | ||
376 | 492 | gdk_window_get_device_position (gtk_widget_get_window (window), | ||
377 | 493 | device, | ||
378 | 494 | &pointer_rel_x, | ||
379 | 495 | &pointer_rel_y, | ||
380 | 496 | NULL); | ||
381 | 497 | |||
382 | 489 | gtk_window_get_position (GTK_WINDOW (window), &win_x, &win_y); | 498 | gtk_window_get_position (GTK_WINDOW (window), &win_x, &win_y); |
383 | 490 | pointer_abs_x = win_x + pointer_rel_x; | 499 | pointer_abs_x = win_x + pointer_rel_x; |
384 | 491 | pointer_abs_y = win_y + pointer_rel_y; | 500 | pointer_abs_y = win_y + pointer_rel_y; |
385 | @@ -714,7 +723,7 @@ | |||
386 | 714 | gtk_window_set_keep_above (GTK_WINDOW (window), TRUE); | 723 | gtk_window_set_keep_above (GTK_WINDOW (window), TRUE); |
387 | 715 | gtk_window_set_resizable (GTK_WINDOW (window), FALSE); | 724 | gtk_window_set_resizable (GTK_WINDOW (window), FALSE); |
388 | 716 | gtk_window_set_accept_focus (GTK_WINDOW (window), FALSE); | 725 | gtk_window_set_accept_focus (GTK_WINDOW (window), FALSE); |
390 | 717 | gtk_window_set_opacity (GTK_WINDOW (window), 1.0f); | 726 | gtk_widget_set_opacity (window, 1.0f); |
391 | 718 | gtk_widget_set_size_request (window, | 727 | gtk_widget_set_size_request (window, |
392 | 719 | (gint) (BUBBLE_WIDTH + 2.0f * | 728 | (gint) (BUBBLE_WIDTH + 2.0f * |
393 | 720 | BUBBLE_SHADOW_SIZE), | 729 | BUBBLE_SHADOW_SIZE), |
394 | 721 | 730 | ||
395 | === modified file 'tests/test-scroll-text.c' | |||
396 | --- tests/test-scroll-text.c 2011-07-08 08:34:52 +0000 | |||
397 | +++ tests/test-scroll-text.c 2014-12-21 14:35:42 +0000 | |||
398 | @@ -442,7 +442,7 @@ | |||
399 | 442 | cairo_pattern_destroy (mask); | 442 | cairo_pattern_destroy (mask); |
400 | 443 | cairo_pattern_destroy (pattern); | 443 | cairo_pattern_destroy (pattern); |
401 | 444 | 444 | ||
403 | 445 | gtk_window_set_opacity (GTK_WINDOW (window), | 445 | gtk_widget_set_opacity (window, |
404 | 446 | 0.3f + g_distance * 0.7f); | 446 | 0.3f + g_distance * 0.7f); |
405 | 447 | } | 447 | } |
406 | 448 | else | 448 | else |
407 | @@ -461,7 +461,7 @@ | |||
408 | 461 | cairo_mask (cr, mask); | 461 | cairo_mask (cr, mask); |
409 | 462 | cairo_pattern_destroy (pattern); | 462 | cairo_pattern_destroy (pattern); |
410 | 463 | 463 | ||
412 | 464 | gtk_window_set_opacity (GTK_WINDOW (window), 1.0f); | 464 | gtk_widget_set_opacity (window, 1.0f); |
413 | 465 | } | 465 | } |
414 | 466 | 466 | ||
415 | 467 | return TRUE; | 467 | return TRUE; |
416 | @@ -542,10 +542,19 @@ | |||
417 | 542 | 542 | ||
418 | 543 | if (gtk_widget_get_realized (window)) | 543 | if (gtk_widget_get_realized (window)) |
419 | 544 | { | 544 | { |
424 | 545 | gint distance_x = 0; | 545 | GdkDeviceManager *device_manager; |
425 | 546 | gint distance_y = 0; | 546 | GdkDevice *device; |
426 | 547 | 547 | gint distance_x; | |
427 | 548 | gtk_widget_get_pointer (window, &pointer_rel_x, &pointer_rel_y); | 548 | gint distance_y; |
428 | 549 | |||
429 | 550 | device_manager = gdk_display_get_device_manager (gtk_widget_get_display (window)); | ||
430 | 551 | device = gdk_device_manager_get_client_pointer (device_manager); | ||
431 | 552 | gdk_window_get_device_position (gtk_widget_get_window (window), | ||
432 | 553 | device, | ||
433 | 554 | &pointer_rel_x, | ||
434 | 555 | &pointer_rel_y, | ||
435 | 556 | NULL); | ||
436 | 557 | |||
437 | 549 | gtk_window_get_position (GTK_WINDOW (window), &win_x, &win_y); | 558 | gtk_window_get_position (GTK_WINDOW (window), &win_x, &win_y); |
438 | 550 | pointer_abs_x = win_x + pointer_rel_x; | 559 | pointer_abs_x = win_x + pointer_rel_x; |
439 | 551 | pointer_abs_y = win_y + pointer_rel_y; | 560 | pointer_abs_y = win_y + pointer_rel_y; |
440 | @@ -911,7 +920,7 @@ | |||
441 | 911 | gtk_window_set_keep_above (GTK_WINDOW (window), TRUE); | 920 | gtk_window_set_keep_above (GTK_WINDOW (window), TRUE); |
442 | 912 | gtk_window_set_resizable (GTK_WINDOW (window), FALSE); | 921 | gtk_window_set_resizable (GTK_WINDOW (window), FALSE); |
443 | 913 | gtk_window_set_accept_focus (GTK_WINDOW (window), FALSE); | 922 | gtk_window_set_accept_focus (GTK_WINDOW (window), FALSE); |
445 | 914 | gtk_window_set_opacity (GTK_WINDOW (window), 1.0f); | 923 | gtk_widget_set_opacity (window, 1.0f); |
446 | 915 | gtk_widget_set_size_request (window, | 924 | gtk_widget_set_size_request (window, |
447 | 916 | (gint) (BUBBLE_WIDTH + 2.0f * | 925 | (gint) (BUBBLE_WIDTH + 2.0f * |
448 | 917 | BUBBLE_SHADOW_SIZE), | 926 | BUBBLE_SHADOW_SIZE), |
Can you please bump required glib/gtk+ versions in configure.in as well?