Merge lp:~docky-core/plank/gtk3 into lp:plank

Proposed by Rico Tzschichholz
Status: Merged
Approved by: Robert Dyer
Approved revision: 491
Merged at revision: 552
Proposed branch: lp:~docky-core/plank/gtk3
Merge into: lp:plank
Diff against target: 1224 lines (+722/-89)
16 files modified
.bzrignore (+1/-0)
configure.ac (+79/-37)
docs/Makefile.am (+25/-8)
lib/Factories/AbstractMain.vala (+16/-1)
lib/HideManager.vala (+7/-1)
lib/Makefile.am (+83/-17)
lib/Widgets/CompositedWindow.vala (+12/-3)
lib/Widgets/DockWindow.vala (+24/-1)
lib/Widgets/HoverWindow.vala (+9/-2)
lib/Widgets/PoofWindow.vala (+6/-2)
lib/Widgets/TitledSeparatorMenuItem.vala (+29/-10)
lib/libplank3.pc.in (+11/-0)
lib/libplank3.symbols (+396/-0)
lib/plank3.deps (+8/-0)
po/POTFILES.skip (+3/-3)
src/Makefile.am (+13/-4)
To merge this branch: bzr merge lp:~docky-core/plank/gtk3
Reviewer Review Type Date Requested Status
Robert Dyer (community) Approve
Rico Tzschichholz Approve
Review via email: mp+78703@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Rico Tzschichholz (ricotz) wrote :

It doesnt interfere with the current gtk+2.0 code and therefore doesnt change the current process for the default build.

review: Approve
lp:~docky-core/plank/gtk3 updated
492. By Robert Dyer

merge trunk

493. By Robert Dyer

update copyrights and cleanup code

Revision history for this message
Robert Dyer (psybers) wrote :

Switch to GTK3 as default and I approve.

review: Approve
lp:~docky-core/plank/gtk3 updated
494. By Rico Tzschichholz

Make gtk+3.0 the default build and switch the conditional code paths.

Library names are preserved to convient reasons and they are a better fit
to the build dependencies.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file '.bzrignore'
2--- .bzrignore 2012-01-07 14:17:43 +0000
3+++ .bzrignore 2012-02-28 16:22:32 +0000
4@@ -28,6 +28,7 @@
5 Makefile
6 Makefile.in
7 .version
8+*.2.vala
9 po/*.gmo
10 po/.intltool-merge-cache
11 po/Makefile.in.in
12
13=== modified file 'configure.ac'
14--- configure.ac 2012-01-07 14:17:43 +0000
15+++ configure.ac 2012-02-28 16:22:32 +0000
16@@ -68,28 +68,60 @@
17 API_VERSION=0.2
18 AC_SUBST([API_VERSION])
19
20+
21+# -----------------------------------------------------------
22+# Use GTK+2.0 (default is GTK+3.0)
23+# -----------------------------------------------------------
24+AC_ARG_WITH([gtk2],
25+ [AS_HELP_STRING([--with-gtk2],
26+ [Use GTK+ version 2 @<:@default=no@:>@])],
27+ [],
28+ [with_gtk2=no])
29+
30+AM_CONDITIONAL(USE_GTK2, [test "x$with_gtk2" = "xyes"])
31+
32+
33 # -----------------------------------------------------------
34 # Dependencies
35 # -----------------------------------------------------------
36-GTK_MIN_VERSION=2.22.0
37-GLIB_MIN_VERSION=2.26.0
38-VALA_MIN_VERSION=0.10.0
39-VALADOC_MIN_VERSION=0.3.1
40-BAMF_MIN_VERSION=0.2.58
41-
42-PKG_CHECK_MODULES(PLANK_CORE, gobject-2.0 >= $GLIB_MIN_VERSION
43- glib-2.0 >= $GLIB_MIN_VERSION
44- gthread-2.0 >= $GLIB_MIN_VERSION
45- gio-2.0 >= $GLIB_MIN_VERSION
46- gio-unix-2.0 >= $GLIB_MIN_VERSION
47- gtk+-2.0 >= $GTK_MIN_VERSION
48- gdk-x11-2.0 >= $GTK_MIN_VERSION
49- libbamf >= $BAMF_MIN_VERSION
50- gee-1.0
51- libwnck-1.0
52- unique-1.0
53- x11
54-)
55+if test "x$with_gtk2" = "xyes"; then
56+ GTK_MIN_VERSION=2.22.0
57+ GLIB_MIN_VERSION=2.26.0
58+ VALA_MIN_VERSION=0.10.0
59+ VALADOC_MIN_VERSION=0.3.1
60+ BAMF_MIN_VERSION=0.2.58
61+else
62+ GTK_MIN_VERSION=3.0.0
63+ GLIB_MIN_VERSION=2.28.0
64+ VALA_MIN_VERSION=0.14.1
65+ VALADOC_MIN_VERSION=0.3.1
66+ BAMF_MIN_VERSION=0.2.92
67+fi
68+
69+PLANK_CORE_PKGS="gobject-2.0 >= $GLIB_MIN_VERSION \
70+ glib-2.0 >= $GLIB_MIN_VERSION \
71+ gthread-2.0 >= $GLIB_MIN_VERSION \
72+ gio-2.0 >= $GLIB_MIN_VERSION \
73+ gio-unix-2.0 >= $GLIB_MIN_VERSION \
74+ gee-1.0 \
75+ x11"
76+
77+if test "x$with_gtk2" = "xyes"; then
78+ PLANK_CORE_PKGS="$PLANK_CORE_PKGS \
79+ gtk+-2.0 >= $GTK_MIN_VERSION \
80+ gdk-x11-2.0 >= $GTK_MIN_VERSION \
81+ libbamf >= $BAMF_MIN_VERSION \
82+ libwnck-1.0 \
83+ unique-1.0"
84+else
85+ PLANK_CORE_PKGS="$PLANK_CORE_PKGS \
86+ gtk+-3.0 >= $GTK_MIN_VERSION \
87+ gdk-x11-3.0 >= $GTK_MIN_VERSION \
88+ libbamf3 >= $BAMF_MIN_VERSION \
89+ libwnck-3.0"
90+fi
91+
92+PKG_CHECK_MODULES(PLANK_CORE, $PLANK_CORE_PKGS)
93
94 #
95 # Vala building options -- allows tarball builds without installing Vala
96@@ -128,7 +160,8 @@
97 # Force Vala if generated source is missing or outdated
98 if test \
99 ! -e ${srcdir}/lib/libplank_la_vala.stamp -o \
100- ! -e ${srcdir}/src/plank_vala.stamp ; then
101+ ! -e ${srcdir}/lib/libplank3_la_vala.stamp -o \
102+ ! -e ${srcdir}/src/plank_vala.stamp; then
103 enable_vala=yes
104 echo "Vala source needs to be re-compiled; requiring Vala..."
105 fi
106@@ -144,22 +177,29 @@
107 AC_MSG_ERROR([Vala must be built with --enable-vapigen])
108 fi
109
110- PLANK_CORE_VALA_PKGS="--pkg gdk-x11-2.0 \
111- --pkg gtk+-2.0 \
112- --pkg gio-unix-2.0 \
113+ PLANK_CORE_COMMON_VALA_PKGS="--pkg gio-unix-2.0 \
114+ --pkg gee-1.0 \
115+ --pkg posix \
116+ --pkg x11"
117+
118+ PLANK_CORE_2_VALA_PKGS="--pkg gtk+-2.0 \
119+ --pkg gdk-x11-2.0 \
120+ --pkg bamf \
121+ --pkg libwnck-1.0 \
122+ --pkg unique-1.0"
123+ VALAFLAGS_2="$VALAFLAGS --thread --target-glib=2.26 --define=USE_GTK2"
124+
125+ PLANK_CORE_VALA_PKGS="--pkg gtk+-3.0 \
126+ --pkg gdk-x11-3.0 \
127 --pkg bamf \
128- --pkg gee-1.0 \
129- --pkg libwnck-1.0 \
130- --pkg posix \
131- --pkg unique-1.0 \
132- --pkg x11"
133- AC_SUBST(PLANK_CORE_VALA_PKGS)
134-
135- VALAFLAGS="$VALAFLAGS --thread --target-glib=2.26"
136- AC_SUBST(VALAFLAGS)
137-
138- PLANK_CORE_VALAFLAGS="$VALAFLAGS $PLANK_CORE_VALA_PKGS"
139+ --pkg libwnck-3.0"
140+ VALAFLAGS="$VALAFLAGS --thread --target-glib=2.28"
141+
142+ PLANK_CORE_VALAFLAGS="$VALAFLAGS $PLANK_CORE_COMMON_VALA_PKGS $PLANK_CORE_VALA_PKGS"
143 AC_SUBST(PLANK_CORE_VALAFLAGS)
144+
145+ PLANK_CORE_2_VALAFLAGS="$VALAFLAGS_2 $PLANK_CORE_COMMON_VALA_PKGS $PLANK_CORE_2_VALA_PKGS"
146+ AC_SUBST(PLANK_CORE_2_VALAFLAGS)
147 fi
148
149 # -----------------------------------------------------------
150@@ -168,16 +208,16 @@
151 AC_ARG_ENABLE([docs],
152 AS_HELP_STRING([--enable-docs],[Enable documentation generation]),
153 [enable_docs=$enableval], [enable_docs=no])
154-AM_CONDITIONAL([ENABLE_DOCS], [test x$enable_docs = xyes])
155+AM_CONDITIONAL([ENABLE_DOCS], [test "x$enable_docs" = "xyes"])
156
157 have_valadoc=no
158-if test x$enable_docs = xyes; then
159+if test "x$enable_docs" = "xyes"; then
160 # make sure the library is new enough and the program exists
161 PKG_CHECK_MODULES([VALADOC], [valadoc-1.0 >= $VALADOC_MIN_VERSION])
162 AC_PATH_PROG([VALADOC], [valadoc], [:])
163 AS_IF([test "$VALADOC" != :], have_valadoc=yes)
164 fi
165-AM_CONDITIONAL([HAVE_VALADOC], [test x$have_valadoc = xyes])
166+AM_CONDITIONAL([HAVE_VALADOC], [test "x$have_valadoc" = "xyes"])
167
168 if test "x$enable_docs" = "xyes" -a "x$have_valadoc" != "xyes"; then
169 AC_MSG_ERROR([Doc building requested but valadoc not installed.])
170@@ -221,6 +261,7 @@
171 data/themes/Transparent/Makefile
172 lib/Makefile
173 lib/libplank.pc
174+lib/libplank3.pc
175 man/Makefile
176 src/Makefile
177 docs/Makefile
178@@ -234,6 +275,7 @@
179 ${PACKAGE} ${VERSION}
180
181 Prefix......................: ${prefix}
182+ Use GTK+2.0 ................: ${with_gtk2}
183 Vala........................: ${enable_vala}
184 Vala Compiler...............: ${VALAC}
185 Vala Flags..................: ${VALAFLAGS}
186
187=== modified file 'docs/Makefile.am'
188--- docs/Makefile.am 2012-02-11 12:45:57 +0000
189+++ docs/Makefile.am 2012-02-28 16:22:32 +0000
190@@ -1,3 +1,9 @@
191+if USE_GTK2
192+SUFFIX=
193+else
194+SUFFIX=3
195+endif
196+
197 distclean_dirs = \
198 plank \
199 gtk-doc \
200@@ -52,20 +58,31 @@
201 $(NULL)
202
203 plank_doc_deps = \
204+ bamf \
205+ gee-1.0 \
206+ gio-unix-2.0 \
207+ posix \
208+ x11 \
209+ $(NULL)
210+
211+if USE_GTK2
212+plank_doc_deps += \
213 gdk-x11-2.0 \
214 gtk+-2.0 \
215- gio-unix-2.0 \
216- bamf \
217- gee-1.0 \
218 libwnck-1.0 \
219- posix \
220 unique-1.0 \
221- x11 \
222- $(NULL)
223+ $(NULL)
224+else
225+plank_doc_deps += \
226+ gdk-x11-3.0 \
227+ gtk+-3.0 \
228+ libwnck-3.0 \
229+ $(NULL)
230+endif
231
232 valadoc_flags_plank = \
233 $(valadoc_flags) \
234- -X $(top_srcdir)/lib/plank.h \
235+ -X $(top_srcdir)/lib/plank$(SUFFIX).h \
236 $(addprefix --pkg=,$(plank_doc_deps)) \
237 --vapidir=$(top_srcdir)/lib \
238 --vapidir=$(top_srcdir)/vapi \
239@@ -81,7 +98,7 @@
240
241 plank-gtk-doc: $(plank_doc_files)
242 $(AM_V_GEN)$(VALADOC) \
243- -X -l -X $(top_builddir)/lib/.libs/libplank.so \
244+ -X -l -X $(top_builddir)/lib/.libs/libplank$(SUFFIX).so \
245 -o gtk-doc/plank \
246 --doclet=gtkdoc \
247 $(valadoc_flags_plank) \
248
249=== modified file 'lib/Factories/AbstractMain.vala'
250--- lib/Factories/AbstractMain.vala 2012-02-16 10:42:10 +0000
251+++ lib/Factories/AbstractMain.vala 2012-02-28 16:22:32 +0000
252@@ -16,7 +16,9 @@
253 //
254
255 using Gtk;
256+#if USE_GTK2
257 using Unique;
258+#endif
259 using Posix;
260
261 using Plank.Services;
262@@ -266,7 +268,12 @@
263 Gtk.init (ref args);
264
265 // ensure only one instance per dock_path
266- if (new App (app_dbus + "." + dock_path, null).is_running)
267+ var path = app_dbus + "." + dock_path;
268+#if USE_GTK2
269+ if (new App (path, null).is_running)
270+#else
271+ if (new Gtk.Application (path, ApplicationFlags.IS_LAUNCHER).is_registered)
272+#endif
273 error ("Exiting because another instance of this application is already running with the name '%s'.".printf (dock_path));
274
275 return args;
276@@ -343,7 +350,11 @@
277 public virtual void show_about ()
278 {
279 if (about_dlg != null) {
280+#if USE_GTK2
281 about_dlg.window.raise ();
282+#else
283+ about_dlg.show_all ();
284+#endif
285 return;
286 }
287
288@@ -364,7 +375,11 @@
289 about_dlg.set_translator_credits (about_translators);
290
291 about_dlg.response.connect (() => {
292+#if USE_GTK2
293 about_dlg.hide_all ();
294+#else
295+ about_dlg.hide ();
296+#endif
297 });
298 about_dlg.hide.connect (() => {
299 about_dlg.destroy ();
300
301=== modified file 'lib/HideManager.vala'
302--- lib/HideManager.vala 2012-02-09 03:49:46 +0000
303+++ lib/HideManager.vala 2012-02-28 16:22:32 +0000
304@@ -120,7 +120,13 @@
305 {
306 // get current mouse pointer location
307 int x, y;
308- controller.window.get_display ().get_pointer (null, out x, out y, null);
309+
310+ controller.window.get_display ().
311+#if USE_GTK2
312+ get_pointer (null, out x, out y, null);
313+#else
314+ get_device_manager ().get_client_pointer ().get_position (null, out x, out y);
315+#endif
316
317 // get window location
318 var win_x = controller.position_manager.win_x;
319
320=== modified file 'lib/Makefile.am'
321--- lib/Makefile.am 2012-02-05 09:37:41 +0000
322+++ lib/Makefile.am 2012-02-28 16:22:32 +0000
323@@ -2,45 +2,52 @@
324
325 VAPIDIR = $(top_srcdir)/vapi
326
327-libplankincludedir = $(includedir)/plank
328-libplankinclude_HEADERS = plank.h
329+if USE_GTK2
330+SUFFIX=
331+lib_LTLIBRARIES = libplank.la
332+else
333+SUFFIX=3
334+lib_LTLIBRARIES = libplank3.la
335+endif
336+
337+BUILT_SOURCES = libplank$(SUFFIX)_la_vala.stamp
338+
339+libplankincludedir = $(includedir)/plank$(SUFFIX)
340+libplankinclude_HEADERS = plank$(SUFFIX).h
341
342 vapidir = $(datadir)/vala/vapi
343 dist_vapi_DATA = \
344- plank.vapi \
345- plank.deps \
346+ plank$(SUFFIX).vapi \
347+ plank$(SUFFIX).deps \
348 $(NULL)
349
350 pkgconfigdir = $(libdir)/pkgconfig
351-pkgconfig_DATA = libplank.pc
352+pkgconfig_DATA = libplank$(SUFFIX).pc
353
354 libplankdir = $(libdir)
355
356-BUILT_SOURCES = libplank_la_vala.stamp
357-
358-lib_LTLIBRARIES = libplank.la
359-
360-libplank_la_CFLAGS = \
361+libplank3_la_CFLAGS = \
362 $(PLANK_CORE_CFLAGS) \
363 -include config.h \
364 -w \
365 $(NULL)
366
367-libplank_la_LDFLAGS = \
368- -version-info "$(LT_CURRENT)":"$(LT_REVISION)":"$(LT_AGE)"
369+libplank3_la_LDFLAGS = \
370+ -version-info "$(LT_CURRENT)":"$(LT_REVISION)":"$(LT_AGE)" \
371+ -lm \
372 $(PLANK_CORE_LDFLAGS) \
373 $(NULL)
374
375-libplank_la_VALAFLAGS = \
376+libplank3_la_VALAFLAGS = \
377 $(PLANK_CORE_VALAFLAGS) \
378 --vapidir $(VAPIDIR) \
379 $(NULL)
380
381-libplank_la_LIBADD = \
382+libplank3_la_LIBADD = \
383 $(PLANK_CORE_LIBS) \
384 $(NULL)
385
386-libplank_la_VALASOURCES = \
387+libplank3_la_VALASOURCES = \
388 DockController.vala \
389 DockItems.vala \
390 DockPreferences.vala \
391@@ -76,6 +83,39 @@
392 Widgets/TitledSeparatorMenuItem.vala \
393 $(NULL)
394
395+libplank_la_valasource.stamp: $(libplank3_la_VALASOURCES)
396+ for f in $(filter %.vala,$^); do \
397+ cd $(abs_srcdir)/$$(dirname $$f); \
398+ if test \
399+ -f $$(basename $$f .vala).2.vala -a \
400+ ! -L $$(basename $$f .vala).2.vala; then \
401+ rm $$(dirname $$f)/$$(basename $$f .vala).2.vala; fi; \
402+ if test \
403+ ! -e $$(basename $$f .vala).2.vala; then \
404+ ln -s $$(basename $$f) $$(basename $$f .vala).2.vala; fi; \
405+ done
406+ $(AM_V_at)touch $@
407+
408+libplank_la_VALASOURCES = \
409+ libplank_la_valasource.stamp \
410+ $(libplank3_la_VALASOURCES:.vala=.2.vala) \
411+ $(NULL)
412+
413+libplank3_la_SOURCES = \
414+ libplank3_la_vala.stamp \
415+ $(libplank3_la_VALASOURCES:.vala=.c) \
416+ $(NULL)
417+
418+plank3.h plank3.vapi: libplank3_la_vala.stamp
419+
420+libplank_la_CFLAGS = $(libplank3_la_CFLAGS)
421+libplank_la_LDFLAGS = $(libplank3_la_LDFLAGS)
422+libplank_la_LIBADD = $(libplank3_la_LIBADD)
423+libplank_la_VALAFLAGS = \
424+ $(PLANK_CORE_2_VALAFLAGS) \
425+ --vapidir $(VAPIDIR) \
426+ $(NULL)
427+
428 libplank_la_SOURCES = \
429 libplank_la_vala.stamp \
430 $(libplank_la_VALASOURCES:.vala=.c) \
431@@ -83,7 +123,18 @@
432
433 plank.h plank.vapi: libplank_la_vala.stamp
434
435-libplank_la_vala.stamp: $(libplank_la_VALASOURCES)
436+libplank3_la_vala.stamp: $(libplank3_la_VALASOURCES)
437+ $(AM_V_VALA)$(VALAC) \
438+ $(libplank3_la_VALAFLAGS) \
439+ -C \
440+ -H plank3.h \
441+ --library plank3 \
442+ --symbols libplank3.symbols \
443+ --vapi plank3.vapi \
444+ $(filter %.vala %.c,$^)
445+ $(AM_V_at)touch $@
446+
447+libplank_la_vala.stamp: libplank_la_valasource.stamp $(libplank_la_VALASOURCES)
448 $(AM_V_VALA)$(VALAC) \
449 $(libplank_la_VALAFLAGS) \
450 -C \
451@@ -95,14 +146,29 @@
452 $(AM_V_at)touch $@
453
454 DISTCLEANFILES = \
455+ libplank_la_valasource.stamp \
456+ $(libplank3_la_VALASOURCES) \
457+ libplank_la_vala.stamp \
458 $(libplank_la_SOURCES) \
459- libplank_la_vala.stamp \
460 plank.vapi \
461 plank.h \
462+ libplank3_la_vala.stamp \
463+ $(libplank3_la_SOURCES) \
464+ plank3.vapi \
465+ plank3.h \
466 $(NULL)
467
468 EXTRA_DIST = \
469+ libplank_la_valasource.stamp \
470+ $(libplank3_la_VALASOURCES) \
471 $(libplank_la_VALASOURCES) \
472 libplank.pc.in \
473+ libplank3.pc.in \
474+ plank.deps \
475+ plank.vapi \
476+ plank.h \
477+ plank3.deps \
478+ plank3.vapi \
479+ plank3.h \
480 $(NULL)
481
482
483=== modified file 'lib/Widgets/CompositedWindow.vala'
484--- lib/Widgets/CompositedWindow.vala 2011-09-06 20:36:49 +0000
485+++ lib/Widgets/CompositedWindow.vala 2012-02-28 16:22:32 +0000
486@@ -1,5 +1,5 @@
487 //
488-// Copyright (C) 2011 Robert Dyer
489+// Copyright (C) 2011-2012 Robert Dyer, Rico Tzschichholz
490 //
491 // This program is free software: you can redistribute it and/or modify
492 // it under the terms of the GNU General Public License as published by
493@@ -39,17 +39,26 @@
494 resizable = false;
495 double_buffered = false;
496
497- set_default_colormap (get_screen ().get_rgba_colormap () ?? get_screen ().get_rgb_colormap ());
498+ var screen = get_screen ();
499+#if USE_GTK2
500+ set_default_colormap (screen.get_rgba_colormap () ?? screen.get_rgb_colormap ());
501
502 realize.connect (() => {
503 get_window ().set_back_pixmap (null, false);
504 });
505+#else
506+ set_visual (screen.get_rgba_visual () ?? screen.get_system_visual ());
507+#endif
508 }
509
510+#if USE_GTK2
511 public override bool expose_event (EventExpose event)
512 {
513 var cr = cairo_create (event.window);
514-
515+#else
516+ public override bool draw (Cairo.Context cr)
517+ {
518+#endif
519 cr.set_operator (Cairo.Operator.CLEAR);
520 cr.rectangle (0, 0, width_request, height_request);
521 cr.fill ();
522
523=== modified file 'lib/Widgets/DockWindow.vala'
524--- lib/Widgets/DockWindow.vala 2012-02-15 02:14:08 +0000
525+++ lib/Widgets/DockWindow.vala 2012-02-28 16:22:32 +0000
526@@ -178,8 +178,14 @@
527 /**
528 * {@inheritDoc}
529 */
530+#if USE_GTK2
531 public override bool expose_event (EventExpose event)
532 {
533+ var cr = cairo_create (event.window);
534+#else
535+ public override bool draw (Context cr)
536+ {
537+#endif
538 if (dock_is_starting) {
539 debug ("dock window loaded");
540 dock_is_starting = false;
541@@ -192,7 +198,7 @@
542 }
543
544 set_input_mask ();
545- controller.renderer.draw_dock (cairo_create (event.window));
546+ controller.renderer.draw_dock (cr);
547
548 return true;
549 }
550@@ -389,7 +395,11 @@
551
552 void set_input_mask ()
553 {
554+#if USE_GTK2
555 if (!is_realized ())
556+#else
557+ if (!get_realized ())
558+#endif
559 return;
560
561 var cursor = controller.position_manager.get_cursor_region ();
562@@ -397,13 +407,21 @@
563 return_if_fail (cursor.width > 0);
564 return_if_fail (cursor.height > 0);
565
566+#if USE_GTK2
567 var region = Gdk.Region.rectangle (Gdk.Rectangle () {x = 0, y = 0, width = cursor.width, height = cursor.height});
568+#else
569+ var region = new Region.rectangle (RectangleInt () {x = 0, y = 0, width = cursor.width, height = cursor.height});
570+#endif
571 get_window ().input_shape_combine_region (region, cursor.x, cursor.y);
572 }
573
574 void set_struts ()
575 {
576+#if USE_GTK2
577 if (!is_realized ())
578+#else
579+ if (!get_realized ())
580+#endif
581 return;
582
583 var struts = new ulong [Struts.N_VALUES];
584@@ -415,8 +433,13 @@
585 for (var i = 0; i < first_struts.length; i++)
586 first_struts [i] = struts [i];
587
588+#if USE_GTK2
589 unowned X.Display display = x11_drawable_get_xdisplay (get_window ());
590 var xid = x11_drawable_get_xid (get_window ());
591+#else
592+ unowned X.Display display = X11Display.get_xdisplay (get_display ());
593+ var xid = X11Window.get_xid (get_window ());
594+#endif
595
596 Gdk.error_trap_push ();
597 display.change_property (xid, display.intern_atom ("_NET_WM_STRUT_PARTIAL", false), X.XA_CARDINAL,
598
599=== modified file 'lib/Widgets/HoverWindow.vala'
600--- lib/Widgets/HoverWindow.vala 2012-02-08 20:58:41 +0000
601+++ lib/Widgets/HoverWindow.vala 2012-02-28 16:22:32 +0000
602@@ -158,6 +158,9 @@
603 text_offset = buffer / 2;
604
605 set_size_request (int.max (HOVER_HEIGHT, buffer + logical_rect.width), HOVER_HEIGHT);
606+#if !USE_GTK2
607+ queue_resize ();
608+#endif
609 }
610
611 void draw_background ()
612@@ -173,13 +176,17 @@
613 Pango.cairo_show_layout (background_buffer.Context, layout);
614 }
615
616+#if USE_GTK2
617 public override bool expose_event (EventExpose event)
618 {
619+ var cr = cairo_create (event.window);
620+#else
621+ public override bool draw (Cairo.Context cr)
622+ {
623+#endif
624 if (background_buffer == null || background_buffer.Height != height_request || background_buffer.Width != width_request)
625 draw_background ();
626
627- var cr = cairo_create (event.window);
628-
629 cr.set_operator (Operator.SOURCE);
630 cr.set_source_surface (background_buffer.Internal, 0, 0);
631 cr.paint ();
632
633=== modified file 'lib/Widgets/PoofWindow.vala'
634--- lib/Widgets/PoofWindow.vala 2011-09-07 09:12:27 +0000
635+++ lib/Widgets/PoofWindow.vala 2012-02-28 16:22:32 +0000
636@@ -1,5 +1,5 @@
637 //
638-// Copyright (C) 2011 Robert Dyer
639+// Copyright (C) 2011-2012 Robert Dyer, Rico Tzschichholz
640 //
641 // This program is free software: you can redistribute it and/or modify
642 // it under the terms of the GNU General Public License as published by
643@@ -79,10 +79,14 @@
644 return double.max (0, double.min (1, (double) new DateTime.now_utc ().difference (start_time) / RUN_LENGTH));
645 }
646
647+#if USE_GTK2
648 public override bool expose_event (EventExpose event)
649 {
650 var cr = cairo_create (event.window);
651-
652+#else
653+ public override bool draw (Cairo.Context cr)
654+ {
655+#endif
656 cr.set_operator (Operator.SOURCE);
657 cr.set_source_rgba (0, 0, 0, 0);
658 cr.paint ();
659
660=== modified file 'lib/Widgets/TitledSeparatorMenuItem.vala'
661--- lib/Widgets/TitledSeparatorMenuItem.vala 2011-09-06 20:36:49 +0000
662+++ lib/Widgets/TitledSeparatorMenuItem.vala 2012-02-28 16:22:32 +0000
663@@ -1,6 +1,6 @@
664 //
665 // Copyright (C) 2010 Michal Hruby <michal.mhr@gmail.com>
666-// Copyright (C) 2011 Robert Dyer
667+// Copyright (C) 2011-2012 Robert Dyer, Rico Tzschichholz
668 //
669 // This library is free software; you can redistribute it and/or
670 // modify it under the terms of the GNU Lesser General Public
671@@ -16,7 +16,7 @@
672 // along with this program. If not, see <http://www.gnu.org/licenses/>.
673 //
674 // Authored by Michal Hruby <michal.mhr@gmail.com>
675-// Modified by Robert Dyer
676+// Modified by Robert Dyer, Rico Tzschichholz
677 //
678
679 using Cairo;
680@@ -47,8 +47,14 @@
681 draw_line = false;
682 }
683
684+#if USE_GTK2
685 protected override bool expose_event (Gdk.EventExpose event)
686 {
687+ var cr = cairo_create (event.window);
688+#else
689+ protected override bool draw (Cairo.Context cr)
690+ {
691+#endif
692 Gtk.Allocation alloc;
693 get_allocation (out alloc);
694
695@@ -67,15 +73,25 @@
696 var ythickness = style.ythickness;
697
698 if (wide_separators)
699- Gtk.paint_box (style, get_window (), StateType.NORMAL,
700- ShadowType.ETCHED_OUT, event.area, this, "hseparator",
701+ Gtk.paint_box (style,
702+#if USE_GTK2
703+ get_window (), StateType.NORMAL, ShadowType.ETCHED_OUT, event.area,
704+#else
705+ cr, StateType.NORMAL, ShadowType.ETCHED_OUT,
706+#endif
707+ this, "hseparator",
708 alloc.x + horizontal_padding + xthickness,
709 alloc.y + (alloc.height - separator_height - ythickness)/2,
710 alloc.width - 2 * (horizontal_padding + xthickness),
711 separator_height);
712 else
713- Gtk.paint_hline (style, get_window (), StateType.NORMAL,
714- event.area, this, "menuitem",
715+ Gtk.paint_hline (style,
716+#if USE_GTK2
717+ get_window (), StateType.NORMAL, event.area,
718+#else
719+ cr, StateType.NORMAL,
720+#endif
721+ this, "menuitem",
722 alloc.x + horizontal_padding + xthickness,
723 alloc.x + alloc.width - horizontal_padding - xthickness - 1,
724 alloc.y + (alloc.height - ythickness) / 2);
725@@ -93,13 +109,16 @@
726 Pango.Rectangle ink_rect, logical_rect;
727 layout.get_pixel_extents (out ink_rect, out logical_rect);
728
729- Gtk.paint_flat_box (parent.get_style (), get_window (),
730- StateType.NORMAL, ShadowType.NONE,
731- null, this, null,
732+ Gtk.paint_flat_box (parent.get_style (),
733+#if USE_GTK2
734+ get_window (), StateType.NORMAL, ShadowType.NONE, null,
735+#else
736+ cr, StateType.NORMAL, ShadowType.NONE,
737+#endif
738+ this, null,
739 0, alloc.y,
740 alloc.x + logical_rect.width + 2 * horizontal_padding, alloc.height);
741
742- var cr = cairo_create (event.window);
743 var color = style.fg[StateType.NORMAL];
744
745 cr.move_to (alloc.x + horizontal_padding, alloc.y + (alloc.height - logical_rect.height) / 2);
746
747=== added file 'lib/libplank3.pc.in'
748--- lib/libplank3.pc.in 1970-01-01 00:00:00 +0000
749+++ lib/libplank3.pc.in 2012-02-28 16:22:32 +0000
750@@ -0,0 +1,11 @@
751+prefix=@prefix@
752+exec_prefix=@exec_prefix@
753+libdir=@libdir@
754+includedir=@includedir@
755+
756+Name: libplank
757+Description: Generic dock library of Plank
758+Version: @PACKAGE_VERSION@
759+Requires: cairo gee-1.0 glib-2.0 gio-2.0 gobject-2.0 gdk-3.0 gdk-pixbuf-2.0 gtk+-3.0
760+Libs: -L${libdir} -lplank
761+Cflags: -I${includedir}/plank
762
763=== added file 'lib/libplank3.symbols'
764--- lib/libplank3.symbols 1970-01-01 00:00:00 +0000
765+++ lib/libplank3.symbols 2012-02-28 16:22:32 +0000
766@@ -0,0 +1,396 @@
767+plank_dock_controller_get_type
768+plank_services_preferences_get_type
769+plank_dock_preferences_get_type
770+plank_dock_items_get_type
771+plank_position_manager_get_type
772+plank_drawing_animated_renderer_get_type
773+plank_dock_renderer_get_type
774+plank_hide_manager_get_type
775+plank_widgets_composited_window_get_type
776+plank_widgets_hover_window_get_type
777+plank_widgets_dock_window_get_type
778+plank_dock_controller_new
779+plank_dock_controller_construct
780+plank_items_dock_item_get_type
781+plank_dock_items_new
782+plank_dock_items_construct
783+plank_dock_items_add_item
784+plank_dock_items_remove_item
785+plank_dock_preferences_new
786+plank_dock_preferences_construct
787+plank_dock_preferences_new_with_file
788+plank_dock_preferences_construct_with_file
789+plank_dock_preferences_increase_icon_size
790+plank_dock_preferences_decrease_icon_size
791+plank_dock_preferences_is_horizontal_dock
792+plank_dock_preferences_get_IconSize
793+plank_dock_preferences_set_IconSize
794+plank_hide_type_get_type
795+plank_dock_preferences_get_HideMode
796+plank_dock_preferences_set_HideMode
797+plank_dock_preferences_get_UnhideDelay
798+plank_dock_preferences_set_UnhideDelay
799+plank_dock_preferences_get_Monitor
800+plank_dock_preferences_set_Monitor
801+plank_dock_preferences_get_Position
802+plank_dock_preferences_set_Position
803+plank_dock_preferences_get_Offset
804+plank_dock_preferences_set_Offset
805+plank_dock_renderer_get_hide_offset
806+plank_dock_renderer_new
807+plank_dock_renderer_construct
808+plank_dock_renderer_initialize
809+plank_dock_renderer_show
810+plank_dock_renderer_hide
811+plank_dock_renderer_reset_buffers
812+plank_dock_renderer_draw_dock
813+plank_dock_renderer_get_Hidden
814+plank_hide_manager_new
815+plank_hide_manager_construct
816+plank_hide_manager_initialize
817+plank_hide_manager_update_dock_hovered
818+plank_hide_manager_get_DockHovered
819+plank_hide_manager_set_DockHovered
820+plank_position_manager_new
821+plank_position_manager_construct
822+plank_position_manager_initialize
823+plank_drawing_theme_renderer_get_type
824+plank_drawing_dock_theme_renderer_get_type
825+plank_position_manager_reset_caches
826+plank_position_manager_get_cursor_region
827+plank_position_manager_get_static_dock_region
828+plank_position_manager_update_regions
829+plank_position_manager_item_draw_region
830+plank_position_manager_item_hover_region
831+plank_position_manager_get_menu_position
832+plank_position_manager_get_hover_position
833+plank_position_manager_update_dock_position
834+plank_position_manager_get_struts
835+plank_position_manager_get_win_x
836+plank_position_manager_set_win_x
837+plank_position_manager_get_win_y
838+plank_position_manager_set_win_y
839+plank_position_manager_get_IndicatorSize
840+plank_position_manager_get_GlowSize
841+plank_position_manager_get_HorizPadding
842+plank_position_manager_get_TopPadding
843+plank_position_manager_get_BottomPadding
844+plank_position_manager_get_ItemPadding
845+plank_position_manager_get_VisibleDockHeight
846+plank_position_manager_get_DockHeight
847+plank_position_manager_get_DockBackgroundHeight
848+plank_position_manager_get_VisibleDockWidth
849+plank_position_manager_get_DockWidth
850+plank_position_manager_get_DockBackgroundWidth
851+plank_drawing_animated_renderer_construct
852+plank_drawing_animated_renderer_construct_with_widget
853+plank_drawing_animated_renderer_set_widget
854+plank_drawing_animated_renderer_animation_needed
855+plank_drawing_animated_renderer_animated_draw
856+plank_services_prefs_serializable_get_type
857+plank_drawing_color_get_type
858+plank_drawing_color_new
859+plank_drawing_color_construct
860+plank_drawing_color_new_from_gdk
861+plank_drawing_color_construct_from_gdk
862+plank_drawing_color_set_hue
863+plank_drawing_color_set_sat
864+plank_drawing_color_set_val
865+plank_drawing_color_set_alpha
866+plank_drawing_color_get_hue
867+plank_drawing_color_get_sat
868+plank_drawing_color_get_val
869+plank_drawing_color_add_hue
870+plank_drawing_color_set_min_sat
871+plank_drawing_color_set_min_value
872+plank_drawing_color_set_max_sat
873+plank_drawing_color_set_max_val
874+plank_drawing_color_multiply_sat
875+plank_drawing_color_brighten_val
876+plank_drawing_color_darken_val
877+plank_drawing_color_darken_by_sat
878+plank_drawing_drawing_service_get_type
879+plank_drawing_drawing_service_get_icon_from_file
880+plank_drawing_drawing_service_get_icon_from_gicon
881+plank_drawing_drawing_service_load_icon
882+plank_drawing_drawing_service_ar_scale
883+plank_drawing_drawing_service_average_color
884+plank_drawing_drawing_service_new
885+plank_drawing_drawing_service_construct
886+plank_drawing_dock_surface_get_type
887+plank_drawing_dock_surface_new
888+plank_drawing_dock_surface_construct
889+plank_drawing_dock_surface_new_with_surface
890+plank_drawing_dock_surface_construct_with_surface
891+plank_drawing_dock_surface_new_with_dock_surface
892+plank_drawing_dock_surface_construct_with_dock_surface
893+plank_drawing_dock_surface_clear
894+plank_drawing_dock_surface_load_to_pixbuf
895+plank_drawing_dock_surface_average_color
896+plank_drawing_dock_surface_fast_blur
897+plank_drawing_dock_surface_exponential_blur
898+plank_drawing_dock_surface_gaussian_blur
899+plank_drawing_dock_surface_get_Internal
900+plank_drawing_dock_surface_get_Width
901+plank_drawing_dock_surface_get_Height
902+plank_drawing_dock_surface_get_Context
903+plank_drawing_dock_theme_renderer_create_indicator
904+plank_drawing_dock_theme_renderer_create_urgent_glow
905+plank_drawing_dock_theme_renderer_draw_active_glow
906+plank_drawing_dock_theme_renderer_draw_badge
907+plank_drawing_dock_theme_renderer_new
908+plank_drawing_dock_theme_renderer_construct
909+plank_drawing_dock_theme_renderer_get_HorizPadding
910+plank_drawing_dock_theme_renderer_set_HorizPadding
911+plank_drawing_dock_theme_renderer_get_TopPadding
912+plank_drawing_dock_theme_renderer_set_TopPadding
913+plank_drawing_dock_theme_renderer_get_BottomPadding
914+plank_drawing_dock_theme_renderer_set_BottomPadding
915+plank_drawing_dock_theme_renderer_get_ItemPadding
916+plank_drawing_dock_theme_renderer_set_ItemPadding
917+plank_drawing_dock_theme_renderer_get_IndicatorSize
918+plank_drawing_dock_theme_renderer_set_IndicatorSize
919+plank_drawing_dock_theme_renderer_get_UrgentBounceHeight
920+plank_drawing_dock_theme_renderer_set_UrgentBounceHeight
921+plank_drawing_dock_theme_renderer_get_LaunchBounceHeight
922+plank_drawing_dock_theme_renderer_set_LaunchBounceHeight
923+plank_drawing_dock_theme_renderer_get_FadeOpacity
924+plank_drawing_dock_theme_renderer_set_FadeOpacity
925+plank_drawing_dock_theme_renderer_get_ClickTime
926+plank_drawing_dock_theme_renderer_set_ClickTime
927+plank_drawing_dock_theme_renderer_get_UrgentBounceTime
928+plank_drawing_dock_theme_renderer_set_UrgentBounceTime
929+plank_drawing_dock_theme_renderer_get_LaunchBounceTime
930+plank_drawing_dock_theme_renderer_set_LaunchBounceTime
931+plank_drawing_dock_theme_renderer_get_ActiveTime
932+plank_drawing_dock_theme_renderer_set_ActiveTime
933+plank_drawing_dock_theme_renderer_get_SlideTime
934+plank_drawing_dock_theme_renderer_set_SlideTime
935+plank_drawing_dock_theme_renderer_get_FadeTime
936+plank_drawing_dock_theme_renderer_set_FadeTime
937+plank_drawing_dock_theme_renderer_get_HideTime
938+plank_drawing_dock_theme_renderer_set_HideTime
939+plank_drawing_dock_theme_renderer_get_GlowSize
940+plank_drawing_dock_theme_renderer_set_GlowSize
941+plank_drawing_dock_theme_renderer_get_GlowTime
942+plank_drawing_dock_theme_renderer_set_GlowTime
943+plank_drawing_dock_theme_renderer_get_GlowPulseTime
944+plank_drawing_dock_theme_renderer_set_GlowPulseTime
945+plank_drawing_hover_theme_renderer_get_type
946+plank_drawing_hover_theme_renderer_new
947+plank_drawing_hover_theme_renderer_construct
948+plank_drawing_theme_renderer_new
949+plank_drawing_theme_renderer_construct
950+plank_drawing_theme_renderer_load
951+plank_drawing_theme_renderer_get_top_offset
952+plank_drawing_theme_renderer_get_bottom_offset
953+plank_drawing_theme_renderer_draw_background
954+plank_drawing_theme_renderer_draw_inner_rect
955+plank_drawing_theme_renderer_draw_rounded_rect
956+plank_drawing_theme_renderer_get_TopRoundness
957+plank_drawing_theme_renderer_set_TopRoundness
958+plank_drawing_theme_renderer_get_BottomRoundness
959+plank_drawing_theme_renderer_set_BottomRoundness
960+plank_drawing_theme_renderer_get_LineWidth
961+plank_drawing_theme_renderer_set_LineWidth
962+plank_drawing_theme_renderer_get_OuterStrokeColor
963+plank_drawing_theme_renderer_set_OuterStrokeColor
964+plank_drawing_theme_renderer_get_FillStartColor
965+plank_drawing_theme_renderer_set_FillStartColor
966+plank_drawing_theme_renderer_get_FillEndColor
967+plank_drawing_theme_renderer_set_FillEndColor
968+plank_drawing_theme_renderer_get_InnerStrokeColor
969+plank_drawing_theme_renderer_set_InnerStrokeColor
970+plank_factories_abstract_main_get_type
971+plank_factories_abstract_main_start
972+plank_factories_abstract_main_initialize_program
973+plank_factories_abstract_main_parse_commandline
974+plank_factories_abstract_main_set_options
975+plank_factories_abstract_main_initialize_libraries
976+plank_factories_abstract_main_initialize_services
977+plank_factories_abstract_main_create_controller
978+plank_factories_abstract_main_is_launcher_for_dock
979+plank_factories_abstract_main_help
980+plank_factories_abstract_main_translate
981+plank_factories_abstract_main_quit
982+plank_factories_abstract_main_on_item_clicked
983+plank_factories_abstract_main_show_about
984+plank_factories_abstract_main_construct
985+plank_factories_factory_get_type
986+plank_factories_item_factory_get_type
987+plank_factories_factory_init
988+plank_factories_factory_new
989+plank_factories_factory_construct
990+plank_factories_item_factory_make_item
991+plank_factories_item_factory_default_make_item
992+plank_factories_item_factory_get_launcher_from_dockitem
993+plank_factories_item_factory_make_default_items
994+plank_factories_item_factory_make_dock_item
995+plank_factories_item_factory_new
996+plank_factories_item_factory_construct
997+plank_items_popup_button_get_type
998+plank_items_click_animation_get_type
999+plank_items_application_dock_item_get_type
1000+plank_items_application_dock_item_new_with_dockitem
1001+plank_items_application_dock_item_construct_with_dockitem
1002+plank_items_application_dock_item_load_from_launcher
1003+plank_items_application_dock_item_parse_launcher
1004+plank_items_application_dock_item_new
1005+plank_items_application_dock_item_construct
1006+plank_items_indicator_state_get_type
1007+plank_items_item_state_get_type
1008+plank_items_popup_button_from_event_button
1009+plank_items_dock_item_new
1010+plank_items_dock_item_construct
1011+plank_items_dock_item_handle_deleted
1012+plank_items_dock_item_delete
1013+plank_items_dock_item_reset_icon_buffer
1014+plank_items_dock_item_get_surface
1015+plank_items_dock_item_draw_icon
1016+plank_items_dock_item_clicked
1017+plank_items_dock_item_on_clicked
1018+plank_items_dock_item_scrolled
1019+plank_items_dock_item_on_scrolled
1020+plank_items_dock_item_get_menu_items
1021+plank_items_dock_item_unique_id
1022+plank_items_dock_item_as_uri
1023+plank_items_dock_item_create_menu_item
1024+plank_items_dock_item_get_Icon
1025+plank_items_dock_item_set_Icon
1026+plank_items_dock_item_get_ForcePixbuf
1027+plank_items_dock_item_set_ForcePixbuf
1028+plank_items_dock_item_get_Text
1029+plank_items_dock_item_set_Text
1030+plank_items_dock_item_get_BadgeText
1031+plank_items_dock_item_set_BadgeText
1032+plank_items_dock_item_get_Position
1033+plank_items_dock_item_set_Position
1034+plank_items_dock_item_get_Button
1035+plank_items_dock_item_set_Button
1036+plank_items_dock_item_get_State
1037+plank_items_dock_item_set_State
1038+plank_items_dock_item_get_Indicator
1039+plank_items_dock_item_set_Indicator
1040+plank_items_dock_item_get_ClickedAnimation
1041+plank_items_dock_item_set_ClickedAnimation
1042+plank_items_dock_item_get_AddTime
1043+plank_items_dock_item_set_AddTime
1044+plank_items_dock_item_get_RemoveTime
1045+plank_items_dock_item_set_RemoveTime
1046+plank_items_dock_item_get_LastClicked
1047+plank_items_dock_item_set_LastClicked
1048+plank_items_dock_item_get_LastScrolled
1049+plank_items_dock_item_set_LastScrolled
1050+plank_items_dock_item_get_LastUrgent
1051+plank_items_dock_item_set_LastUrgent
1052+plank_items_dock_item_get_LastActive
1053+plank_items_dock_item_set_LastActive
1054+plank_items_dock_item_get_ValidItem
1055+plank_items_dock_item_get_AverageIconColor
1056+plank_items_dock_item_set_AverageIconColor
1057+plank_items_dock_item_get_Launcher
1058+plank_items_dock_item_get_Sort
1059+plank_items_dock_item_set_Sort
1060+plank_items_dock_item_preferences_get_type
1061+plank_items_dock_item_get_Prefs
1062+plank_items_dock_item_set_Prefs
1063+plank_items_dock_item_preferences_new_with_file
1064+plank_items_dock_item_preferences_construct_with_file
1065+plank_items_dock_item_preferences_new
1066+plank_items_dock_item_preferences_construct
1067+plank_items_dock_item_preferences_get_Launcher
1068+plank_items_dock_item_preferences_set_Launcher
1069+plank_items_dock_item_preferences_get_Sort
1070+plank_items_dock_item_preferences_set_Sort
1071+plank_items_file_dock_item_get_type
1072+plank_items_file_dock_item_new_with_dockitem
1073+plank_items_file_dock_item_construct_with_dockitem
1074+plank_items_file_dock_item_launch
1075+plank_items_file_dock_item_new
1076+plank_items_file_dock_item_construct
1077+plank_items_plank_dock_item_get_type
1078+plank_items_plank_dock_item_new_with_dockitem
1079+plank_items_plank_dock_item_construct_with_dockitem
1080+plank_items_plank_dock_item_get_plank_menu_items
1081+plank_items_plank_dock_item_new
1082+plank_items_plank_dock_item_construct
1083+plank_services_log_level_get_type
1084+plank_services_logger_get_type
1085+plank_services_logger_initialize
1086+plank_services_logger_notification
1087+plank_services_logger_new
1088+plank_services_logger_construct
1089+plank_services_logger_get_DisplayLevel
1090+plank_services_logger_set_DisplayLevel
1091+plank_services_paths_get_type
1092+plank_services_paths_initialize
1093+plank_services_paths_ensure_directory_exists
1094+plank_services_paths_new
1095+plank_services_paths_construct
1096+plank_services_paths_get_HomeFolder
1097+plank_services_paths_set_HomeFolder
1098+plank_services_paths_get_DataFolder
1099+plank_services_paths_set_DataFolder
1100+plank_services_paths_get_ConfigHomeFolder
1101+plank_services_paths_set_ConfigHomeFolder
1102+plank_services_paths_get_DataHomeFolder
1103+plank_services_paths_set_DataHomeFolder
1104+plank_services_paths_get_CacheHomeFolder
1105+plank_services_paths_set_CacheHomeFolder
1106+plank_services_paths_get_DataDirFolders
1107+plank_services_paths_set_DataDirFolders
1108+plank_services_paths_get_AppConfigFolder
1109+plank_services_paths_set_AppConfigFolder
1110+plank_services_paths_get_AppDataFolder
1111+plank_services_paths_set_AppDataFolder
1112+plank_services_paths_get_AppCacheFolder
1113+plank_services_paths_set_AppCacheFolder
1114+plank_services_prefs_serializable_prefs_serialize
1115+plank_services_prefs_serializable_prefs_deserialize
1116+plank_services_preferences_construct
1117+plank_services_preferences_verify
1118+plank_services_preferences_reset_properties
1119+plank_services_preferences_construct_with_file
1120+plank_services_preferences_init_from_file
1121+plank_services_preferences_delay
1122+plank_services_preferences_apply
1123+plank_services_preferences_delete
1124+plank_services_system_get_type
1125+plank_services_system_open_uri
1126+plank_services_system_open
1127+plank_services_system_open_files
1128+plank_services_system_launch
1129+plank_services_system_launch_with_files
1130+plank_services_system_new
1131+plank_services_system_construct
1132+plank_widgets_composited_window_new
1133+plank_widgets_composited_window_construct
1134+plank_widgets_composited_window_new_with_type
1135+plank_widgets_composited_window_construct_with_type
1136+plank_widgets_dock_window_new
1137+plank_widgets_dock_window_construct
1138+plank_widgets_dock_window_set_hovered
1139+plank_widgets_dock_window_update_hovered
1140+plank_widgets_dock_window_position_hover
1141+plank_widgets_dock_window_set_size
1142+plank_widgets_dock_window_reposition
1143+plank_widgets_dock_window_update_icon_regions
1144+plank_widgets_dock_window_menu_is_visible
1145+plank_widgets_dock_window_do_popup
1146+plank_widgets_dock_window_on_menu_hide
1147+plank_widgets_dock_window_position_menu
1148+plank_widgets_dock_window_get_HoveredItem
1149+plank_widgets_dock_window_set_HoveredItem
1150+plank_widgets_hover_window_new
1151+plank_widgets_hover_window_construct
1152+plank_widgets_hover_window_move_hover
1153+plank_widgets_hover_window_get_Text
1154+plank_widgets_hover_window_set_Text
1155+plank_widgets_poof_window_get_type
1156+plank_widgets_poof_window_new
1157+plank_widgets_poof_window_construct
1158+plank_widgets_titled_separator_menu_item_get_type
1159+plank_widgets_titled_separator_menu_item_new
1160+plank_widgets_titled_separator_menu_item_construct
1161+plank_widgets_titled_separator_menu_item_new_no_line
1162+plank_widgets_titled_separator_menu_item_construct_no_line
1163
1164=== added file 'lib/plank3.deps'
1165--- lib/plank3.deps 1970-01-01 00:00:00 +0000
1166+++ lib/plank3.deps 2012-02-28 16:22:32 +0000
1167@@ -0,0 +1,8 @@
1168+cairo
1169+gdk-pixbuf-2.0
1170+gdk-3.0
1171+gee-1.0
1172+gio-2.0
1173+glib-2.0
1174+gobject-2.0
1175+gtk+-3.0
1176
1177=== modified file 'po/POTFILES.skip'
1178--- po/POTFILES.skip 2011-04-11 06:18:34 +0000
1179+++ po/POTFILES.skip 2012-02-28 16:22:32 +0000
1180@@ -1,6 +1,6 @@
1181-lib/*.c
1182+lib/Items/ApplicationDockItem.2.c
1183 lib/Items/ApplicationDockItem.c
1184+lib/Items/FileDockItem.2.c
1185 lib/Items/FileDockItem.c
1186+lib/Items/PlankDockItem.2.c
1187 lib/Items/PlankDockItem.c
1188-lib/Items/TransientDockItem.c
1189-
1190
1191=== modified file 'src/Makefile.am'
1192--- src/Makefile.am 2012-01-16 13:00:04 +0000
1193+++ src/Makefile.am 2012-02-28 16:22:32 +0000
1194@@ -2,9 +2,18 @@
1195
1196 VAPIDIR = $(top_srcdir)/vapi
1197
1198-plank_VALAFLAGS = \
1199- $(PLANK_CORE_VALAFLAGS) \
1200- $(top_srcdir)/lib/plank.vapi \
1201+if USE_GTK2
1202+SUFFIX=
1203+plank_VALAFLAGS = \
1204+ $(PLANK_CORE_2_VALAFLAGS)
1205+else
1206+SUFFIX=3
1207+plank_VALAFLAGS = \
1208+ $(PLANK_CORE_VALAFLAGS)
1209+endif
1210+
1211+plank_VALAFLAGS += \
1212+ $(top_srcdir)/lib/plank$(SUFFIX).vapi \
1213 --vapidir $(VAPIDIR) \
1214 $(VAPIDIR)/config.vapi \
1215 $(NULL)
1216@@ -23,7 +32,7 @@
1217
1218 plank_LDADD = \
1219 $(PLANK_CORE_LIBS) \
1220- $(top_builddir)/lib/libplank.la \
1221+ $(top_builddir)/lib/libplank$(SUFFIX).la \
1222 $(NULL)
1223
1224 plank_VALASOURCES = \

Subscribers

People subscribed via source and target branches

to status/vote changes: