Merge lp:~ricotz/plank/consolidate-api into lp:plank
- consolidate-api
- Merge into trunk
Status: | Merged |
---|---|
Merged at revision: | 1425 |
Proposed branch: | lp:~ricotz/plank/consolidate-api |
Merge into: | lp:plank |
Diff against target: |
5037 lines (+1199/-1288) 82 files modified
configure.ac (+3/-3) data/themes/Default/dock.theme (+2/-2) data/themes/Matte/dock.theme (+2/-2) data/themes/Transparent/dock.theme (+2/-2) docklets/Clippy/ClippyDockItem.vala (+6/-6) docklets/Clippy/ClippyDocklet.vala (+1/-1) docklets/Clippy/ClippyPreferences.vala (+1/-3) docklets/Clock/ClockDockItem.vala (+3/-4) docklets/Clock/ClockDocklet.vala (+1/-1) docklets/Clock/ClockPreferences.vala (+1/-3) docklets/Desktop/DesktopDockItem.vala (+4/-4) docklets/Desktop/DesktopDocklet.vala (+1/-1) docklets/Trash/TrashDockItem.vala (+4/-7) docklets/Trash/TrashDocklet.vala (+1/-1) docs/Makefile.am (+2/-2) examples/RemoteClient.vala (+4/-5) lib/DBus/Client.vala (+13/-13) lib/DBus/Interfaces.vala (+5/-5) lib/DBusManager.vala (+6/-10) lib/DockController.vala (+2/-7) lib/DockPreferences.vala (+2/-4) lib/DockRenderer.vala (+52/-57) lib/Docklets/Docklet.vala (+1/-1) lib/Docklets/DockletItem.vala (+1/-1) lib/Docklets/DockletManager.vala (+1/-1) lib/DragManager.vala (+1/-5) lib/Drawing/Color.vala (+1/-1) lib/Drawing/DockTheme.vala (+16/-18) lib/Drawing/DrawingService.vala (+2/-2) lib/Drawing/Easing.vala (+1/-1) lib/Drawing/Renderer.vala (+4/-4) lib/Drawing/Surface.vala (+22/-22) lib/Drawing/SurfaceCache.vala (+9/-11) lib/Drawing/Theme.vala (+3/-5) lib/Factories/AbstractMain.vala (+3/-7) lib/Factories/Factory.vala (+1/-1) lib/Factories/ItemFactory.vala (+13/-12) lib/HideManager.vala (+0/-3) lib/Items/ApplicationDockItem.vala (+11/-15) lib/Items/ApplicationDockItemProvider.vala (+1/-5) lib/Items/DefaultApplicationDockItemProvider.vala (+1/-6) lib/Items/DockContainer.vala (+1/-3) lib/Items/DockElement.vala (+10/-12) lib/Items/DockItem.vala (+20/-20) lib/Items/DockItemPreferences.vala (+1/-3) lib/Items/DockItemProvider.vala (+1/-3) lib/Items/Enums.vala (+2/-2) lib/Items/FileDockItem.vala (+15/-18) lib/Items/PlaceholderDockItem.vala (+3/-3) lib/Items/PlankDockItem.vala (+3/-7) lib/Items/TransientDockItem.vala (+1/-3) lib/Makefile.am (+2/-2) lib/PositionManager.vala (+0/-5) lib/Services/Logger.vala (+1/-1) lib/Services/Matcher.vala (+1/-1) lib/Services/Paths.vala (+1/-1) lib/Services/Preferences.vala (+32/-16) lib/Services/Settings.vala (+1/-1) lib/Services/System.vala (+1/-1) lib/Services/WindowControl.vala (+1/-1) lib/Services/Worker.vala (+1/-1) lib/Version.vala.in (+90/-97) lib/Widgets/CompositedWindow.vala (+1/-1) lib/Widgets/DockWindow.vala (+5/-10) lib/Widgets/HoverWindow.vala (+1/-1) lib/Widgets/PoofWindow.vala (+1/-3) lib/Widgets/PreferencesWindow.vala (+3/-8) lib/Widgets/TitledSeparatorMenuItem.vala (+1/-1) lib/libplank.symbols (+491/-491) src/Main.vala (+0/-3) tests/Controller.vala (+2/-4) tests/Dock.vala (+2/-2) tests/Drawing.vala (+51/-52) tests/Items.vala (+5/-6) tests/Main.vala (+3/-7) tests/Preferences.vala (+5/-5) tests/TestHelper.vala (+2/-2) tests/Widgets.vala (+3/-3) tests/data/test-app.dockitem (+1/-1) tests/data/themes/Test/dock.theme (+2/-2) tests/gmock/color.cpp (+220/-220) tests/test-config.vapi (+2/-1) |
To merge this branch: | bzr merge lp:~ricotz/plank/consolidate-api |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Docky Core | Pending | ||
Review via email: mp+261915@code.launchpad.net |
Commit message
Description of the change
- 1327. By Rico Tzschichholz
-
po: Update translations
- 1328. By Rico Tzschichholz
-
animatedrenderer: Always initialize frame if a redraw is scheduled
- 1329. By Rico Tzschichholz
-
po: Update translations
- 1330. By Rico Tzschichholz
-
dockrenderer: Guard duration-
calculations which are used for animations - 1331. By Rico Tzschichholz
-
Update symbols
- 1332. By Rico Tzschichholz
-
color: Avoid double setting of out-vars in hsv_to_rgb
- 1333. By Rico Tzschichholz
-
color: Clarify documention of set_min/max_* methods
- 1334. By Rico Tzschichholz
-
hidemanager: Add dodge-active hide-mode
- 1335. By Rico Tzschichholz
-
prefswindow: Use Gtk.Stack if available
- 1337. By Rico Tzschichholz
-
prefswindow: Allow closing the window using "Escape"
- 1338. By Rico Tzschichholz
-
po: Update translations
- 1339. By Rico Tzschichholz
-
ui: Tweak minimum gtk+ version for conditional 3.4 support
- 1340. By Rico Tzschichholz
-
build: Make sure to enable maintainer-mode by default
- 1341. By Rico Tzschichholz
-
Add icon-zoom preferences and expose gui-settings
- 1342. By Rico Tzschichholz
-
Add optional zoom animation when hovering dock-items
- 1343. By Rico Tzschichholz
-
Add ability to cache multiple sizes of drawn items
- 1344. By Rico Tzschichholz
-
Update symbols
- 1345. By Rico Tzschichholz
-
po: Update translation template
- 1346. By Rico Tzschichholz
-
surfacecache: Add missing mutex-unlock
- 1347. By Rico Tzschichholz
-
po: Update translations
- 1348. By Rico Tzschichholz
-
lib: Make sure to bind "plank" textdomain for library users
- 1349. By Rico Tzschichholz
-
lib: Replace non-constant string-
concatenation with string.printf() - 1350. By Rico Tzschichholz
-
appdockitem: Always indicate running application despite its window-count
- 1351. By Rico Tzschichholz
-
tests: Add google-mock support
- 1352. By kay van der Zander
-
gmock: Add tests for Color
- 1353. By Rico Tzschichholz
-
hidemanager: Rework enter/leave-event handling to determine "Hovered"
This removes handling of send_event and use "Disabled" for visible menu.
- 1354. By Rico Tzschichholz
-
po: Update translations
- 1355. By Rico Tzschichholz
-
ui: Fix "Icon Zoom" label spanning
- 1356. By Rico Tzschichholz
-
dockwindow: Reinstate "handling of send_event" to fix broken internal DnD
Regression of r1353
- 1357. By Rico Tzschichholz
-
surfacecache: Fix build with gee-1.0
- 1358. By Rico Tzschichholz
-
dockcontainer: Update element's RemoveTime on add/replace accordingly
- 1359. By Rico Tzschichholz
-
lib: Commonize naming of fields which are holding handler/timer-ids
Adjust some explictly typed assignments too.
- 1360. By Rico Tzschichholz
-
dockrenderer: Use animated_draw() and don't listen to HoveredItem changes
- 1361. By Rico Tzschichholz
-
dockrenderer: Do not forcefully unhide the dock if it already is
If we do it will cause the dock to hide and unhide again on startup.
- 1362. By Rico Tzschichholz
-
Revert "dockrenderer: Use animated_draw() and don't listen to HoveredItem changes"
- 1363. By Rico Tzschichholz
-
positionmanager: Make item's background-region always cover dock's background from bottom up
- 1364. By Rico Tzschichholz
-
po: Update translations
- 1365. By Rico Tzschichholz
-
hidemanager: Don't use actual cursor coords of leave-notify-event
If we received a leave-notify-event then don't be silly and make sure
update_hovered_ with_coords( ) will set Hovered to false by passing
(-1, -1). - 1366. By Rico Tzschichholz
-
hidemanager: Reinstate "handling of send_event" to avoid confusion with menu
Regression of r1353
- 1367. By Rico Tzschichholz
-
dockrenderer: Output the Cairo.SurfaceType used by Gtk+
- 1368. By Rico Tzschichholz
-
positionmanager: Fix background-size calculation with enabled icon-zoom
We need to take the zoomed icon-size into account to properly adjust the
horizontal padding for the background-sizing while differentiating
between first and last item. - 1369. By xapantu
-
hidemanager: Ignore pressure-reveal for 'absolute' input-devices
- 1370. By Rico Tzschichholz
-
dockelement: Make using -Werror=
pointer- to-int- cast pass - 1371. By Rico Tzschichholz
-
dockwindow: Make using -Werror=
unused- result pass - 1372. By Rico Tzschichholz
-
dockrenderer: Adjust shadow-size if window-scale-factor > 1 aka HiDPI
- 1373. By Rico Tzschichholz
-
po: Update translations
- 1374. By Rico Tzschichholz
-
lib: Cast some callbacks to avoid the creation of wrappers
- 1375. By Rico Tzschichholz
-
build: Require cairo >= 1.10
- 1376. By Rico Tzschichholz
-
lib: Cast some callbacks to avoid the creation of wrappers
- 1377. By Rico Tzschichholz
-
dbusmanager: Fix naming of fields which are holding handler/timer-ids
- 1378. By Rico Tzschichholz
-
dockrenderer: Avoid usage of Cairo.SurfaceTy
pe.COGL - 1379. By Rico Tzschichholz
-
build: Clean bamf/gtk+ version check
- 1380. By Rico Tzschichholz
-
itemfactory: Make get_launcher_
from_dockitem( ) a bit more safer/verbose - 1381. By Rico Tzschichholz
-
dockcontainer: Add remove_all()
- 1382. By Rico Tzschichholz
-
dockrenderer: Guard against empty dock (which ideally won't happen)
- 1383. By Rico Tzschichholz
-
dockcontroller: Clean out old default-provider after replacing it
- 1384. By Rico Tzschichholz
-
dockcontainer: Optimize prepend()
- 1385. By Rico Tzschichholz
-
po: Update translations
- 1386. By Rico Tzschichholz
-
itemfactory: Avoid a string-copying
- 1387. By Rico Tzschichholz
-
positionmanager: Demote criticals of get_draw_
value_for_ item() to debug/warning - 1388. By Rico Tzschichholz
-
Prepare 0.10.0 release
- 1389. By Rico Tzschichholz
-
Back to development
- 1390. By Mike Gabriel
-
animatedrenderer: Fix typo in error message
- 1391. By Rico Tzschichholz
-
build: Require valac >= 0.24.0 and obsolete conditionals
- 1392. By Rico Tzschichholz
-
po: Update translations
- 1393. By Rico Tzschichholz
-
po: Update translations
- 1394. By Rico Tzschichholz
-
filedockitem: Correctly display filenames with underscores in folder-menu
- 1395. By Rico Tzschichholz
-
positionmanager: Just return primary_monitor if empty plug_name was given
- 1396. By Rico Tzschichholz
-
positionmanager: Add verbose output for monitor_geo_changed
- 1397. By Rico Tzschichholz
-
dockitemprovider: Insert items where the data was dropped
If there is currently no HoveredItem try to determine the nearest one as
drop-point. - 1398. By Rico Tzschichholz
-
lib: Tweak method signature of file-monitor callbacks
- 1399. By Rico Tzschichholz
-
lib: FileMonitorEvent is a simple enum not a flag
- 1400. By Rico Tzschichholz
-
lib: Avoid some superfluous reference-taking
- 1401. By Rico Tzschichholz
-
plankdockitem: Open "preferences" on left-click instead of "about"
- 1402. By Rico Tzschichholz
-
defaultappprovider: Don't ignore opened applications if Wnck doesn't know
Better don't rely on Wnck if Bamf reported an opened application. If an
application is for whatever reason replacing or renaming its window on
startup we might drop it while Wnck reports a window-count of 0. - 1403. By Rico Tzschichholz
-
transientdockitem: Delayed reloading of the window-icon if needed
If the window-icon was null on the first try then schedule a 2nd one.
- 1404. By Rico Tzschichholz
-
lib: Actually pass e.g. -lm to the linker by adding it to *_LIBADD
- 1405. By Rico Tzschichholz
-
po: Update translations
- 1406. By Rico Tzschichholz
-
Prepare 0.10.1 release
- 1407. By Rico Tzschichholz
-
Back to development
- 1408. By Rico Tzschichholz
-
build: Be more rebust for parallel building
- 1409. By Rico Tzschichholz
-
dockrenderer: Don't request a redraw if "transient_items" is empty
- 1410. By Rico Tzschichholz
-
dockrenderer: Use non-linear transition in/out the "zoom" state
Increase transition-time to 200ms and use cubic-easing.
- 1411. By Rico Tzschichholz
-
easing: Some optimization, avoid vala's struct-copying by using pointers
- 1412. By Rico Tzschichholz
-
build: Be more rebust for parallel building
- 1413. By Rico Tzschichholz
-
easing: Use proper codestyle for ANIMATION_MODES while it is a const
- 1414. By Rico Tzschichholz
-
dockrenderer: Factor out jump-calculation into easing_bounce
- 1415. By Rico Tzschichholz
-
dockrenderer: Define and use some internal constants
- 1416. By Rico Tzschichholz
-
po: Update translations
- 1417. By Rico Tzschichholz
-
Add docklets support (internal/private)
Based on initially proposed docky 3.0 branch
- 1418. By Rico Tzschichholz
-
Add GSettings support and transition DockPreferences to it
- 1419. By Rico Tzschichholz
-
Update symbols
- 1420. By Rico Tzschichholz
-
po: Don't translate gschema for now
- 1421. By Rico Tzschichholz
-
Drop nested namespaces
- 1422. By Rico Tzschichholz
-
Rename DockSurface to Surface
- 1423. By Rico Tzschichholz
-
Rename AnimatedRenderer to Renderer
- 1424. By Rico Tzschichholz
-
build: Bump api and library version
- 1425. By Rico Tzschichholz
-
Keep existing theme and dockitem-files working and update them
Preview Diff
1 | === modified file 'configure.ac' |
2 | --- configure.ac 2015-11-02 13:42:37 +0000 |
3 | +++ configure.ac 2015-11-03 12:02:25 +0000 |
4 | @@ -3,7 +3,7 @@ |
5 | |
6 | m4_define([plank_major_version], [0]) |
7 | m4_define([plank_minor_version], [10]) |
8 | -m4_define([plank_micro_version], [1]) |
9 | +m4_define([plank_micro_version], [9]) |
10 | m4_define([plank_nano_version], [0]) |
11 | |
12 | # If library source has changed since last release, increment revision |
13 | @@ -11,7 +11,7 @@ |
14 | # increment current and set revision to 0 |
15 | # If interfaces have been added since last release, increment age |
16 | # If interfaces have been removed since last release, set age to 0 |
17 | -m4_define([plank_lt_current], [0]) |
18 | +m4_define([plank_lt_current], [1]) |
19 | m4_define([plank_lt_revision], [0]) |
20 | m4_define([plank_lt_age], [0]) |
21 | |
22 | @@ -87,7 +87,7 @@ |
23 | PLANK_NANO_VERSION=plank_nano_version |
24 | AC_SUBST([PLANK_NANO_VERSION]) |
25 | |
26 | -API_VERSION=0.3 |
27 | +API_VERSION=0.11 |
28 | AC_SUBST([API_VERSION]) |
29 | |
30 | |
31 | |
32 | === modified file 'data/themes/Default/dock.theme' |
33 | --- data/themes/Default/dock.theme 2015-05-13 07:34:46 +0000 |
34 | +++ data/themes/Default/dock.theme 2015-11-03 12:02:25 +0000 |
35 | @@ -1,7 +1,7 @@ |
36 | #This file auto-generated by Plank. |
37 | #2015-04-10T15:17:04+0000 |
38 | |
39 | -[PlankDrawingTheme] |
40 | +[PlankTheme] |
41 | #The roundness of the top corners. |
42 | TopRoundness=4 |
43 | #The roundness of the bottom corners. |
44 | @@ -17,7 +17,7 @@ |
45 | #The color (RGBA) of the inner stroke. |
46 | InnerStrokeColor=255;;255;;255;;255 |
47 | |
48 | -[PlankDrawingDockTheme] |
49 | +[PlankDockTheme] |
50 | #The padding on the left/right dock edges, in tenths of a percent of IconSize. |
51 | HorizPadding=0 |
52 | #The padding on the top dock edge, in tenths of a percent of IconSize. |
53 | |
54 | === modified file 'data/themes/Matte/dock.theme' |
55 | --- data/themes/Matte/dock.theme 2012-11-16 16:05:23 +0000 |
56 | +++ data/themes/Matte/dock.theme 2015-11-03 12:02:25 +0000 |
57 | @@ -1,7 +1,7 @@ |
58 | |
59 | -[PlankDrawingTheme] |
60 | +[PlankTheme] |
61 | |
62 | -[PlankDrawingDockTheme] |
63 | +[PlankDockTheme] |
64 | HorizPadding=1 |
65 | TopPadding=1 |
66 | BottomPadding=2 |
67 | |
68 | === modified file 'data/themes/Transparent/dock.theme' |
69 | --- data/themes/Transparent/dock.theme 2014-03-27 12:53:16 +0000 |
70 | +++ data/themes/Transparent/dock.theme 2015-11-03 12:02:25 +0000 |
71 | @@ -1,9 +1,9 @@ |
72 | |
73 | -[PlankDrawingTheme] |
74 | +[PlankTheme] |
75 | TopRoundness=0 |
76 | BottomRoundness=0 |
77 | LineWidth=0 |
78 | |
79 | -[PlankDrawingDockTheme] |
80 | +[PlankDockTheme] |
81 | TopPadding=-12 |
82 | BottomPadding=2 |
83 | |
84 | === modified file 'docklets/Clippy/ClippyDockItem.vala' |
85 | --- docklets/Clippy/ClippyDockItem.vala 2015-11-02 08:40:11 +0000 |
86 | +++ docklets/Clippy/ClippyDockItem.vala 2015-11-03 12:02:25 +0000 |
87 | @@ -17,7 +17,7 @@ |
88 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
89 | // |
90 | |
91 | -using Plank.Items; |
92 | +using Plank; |
93 | |
94 | namespace Docky |
95 | { |
96 | @@ -126,7 +126,7 @@ |
97 | updated (); |
98 | } |
99 | |
100 | - protected override Animation on_scrolled (Gdk.ScrollDirection direction, Gdk.ModifierType mod, uint32 event_time) |
101 | + protected override AnimationType on_scrolled (Gdk.ScrollDirection direction, Gdk.ModifierType mod, uint32 event_time) |
102 | { |
103 | if (direction == Gdk.ScrollDirection.UP) |
104 | cur_position++; |
105 | @@ -140,17 +140,17 @@ |
106 | |
107 | updated (); |
108 | |
109 | - return Animation.NONE; |
110 | + return AnimationType.NONE; |
111 | } |
112 | |
113 | - protected override Animation on_clicked (PopupButton button, Gdk.ModifierType mod, uint32 event_time) |
114 | + protected override AnimationType on_clicked (PopupButton button, Gdk.ModifierType mod, uint32 event_time) |
115 | { |
116 | if (button == PopupButton.LEFT && clips.size > 0) { |
117 | copy_entry (); |
118 | - return Animation.BOUNCE; |
119 | + return AnimationType.BOUNCE; |
120 | } |
121 | |
122 | - return Animation.NONE; |
123 | + return AnimationType.NONE; |
124 | } |
125 | |
126 | public override Gee.ArrayList<Gtk.MenuItem> get_menu_items () |
127 | |
128 | === modified file 'docklets/Clippy/ClippyDocklet.vala' |
129 | --- docklets/Clippy/ClippyDocklet.vala 2015-11-02 08:40:11 +0000 |
130 | +++ docklets/Clippy/ClippyDocklet.vala 2015-11-03 12:02:25 +0000 |
131 | @@ -26,7 +26,7 @@ |
132 | { |
133 | public class ClippyDocklet : Docklet |
134 | { |
135 | - public override Plank.Items.DockElement make_element (string launcher, GLib.File file) |
136 | + public override Plank.DockElement make_element (string launcher, GLib.File file) |
137 | { |
138 | return new ClippyDockItem.with_dockitem_file (file); |
139 | } |
140 | |
141 | === modified file 'docklets/Clippy/ClippyPreferences.vala' |
142 | --- docklets/Clippy/ClippyPreferences.vala 2015-11-02 08:40:11 +0000 |
143 | +++ docklets/Clippy/ClippyPreferences.vala 2015-11-03 12:02:25 +0000 |
144 | @@ -17,9 +17,7 @@ |
145 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
146 | // |
147 | |
148 | -using Plank.Items; |
149 | -using Plank.Services; |
150 | -using Plank.Widgets; |
151 | +using Plank; |
152 | |
153 | namespace Docky |
154 | { |
155 | |
156 | === modified file 'docklets/Clock/ClockDockItem.vala' |
157 | --- docklets/Clock/ClockDockItem.vala 2015-11-02 08:40:11 +0000 |
158 | +++ docklets/Clock/ClockDockItem.vala 2015-11-03 12:02:25 +0000 |
159 | @@ -17,8 +17,7 @@ |
160 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
161 | // |
162 | |
163 | -using Plank.Drawing; |
164 | -using Plank.Items; |
165 | +using Plank; |
166 | |
167 | namespace Docky |
168 | { |
169 | @@ -90,7 +89,7 @@ |
170 | reset_icon_buffer (); |
171 | } |
172 | |
173 | - protected override void draw_icon (DockSurface surface) |
174 | + protected override void draw_icon (Surface surface) |
175 | { |
176 | unowned ClockPreferences prefs = (ClockPreferences) Prefs; |
177 | |
178 | @@ -114,7 +113,7 @@ |
179 | cr.paint (); |
180 | } |
181 | |
182 | - void render_digital_clock (DockSurface surface, DateTime now, int size) |
183 | + void render_digital_clock (Surface surface, DateTime now, int size) |
184 | { |
185 | unowned ClockPreferences prefs = (ClockPreferences) Prefs; |
186 | unowned Cairo.Context cr = surface.Context; |
187 | |
188 | === modified file 'docklets/Clock/ClockDocklet.vala' |
189 | --- docklets/Clock/ClockDocklet.vala 2015-11-02 08:40:11 +0000 |
190 | +++ docklets/Clock/ClockDocklet.vala 2015-11-03 12:02:25 +0000 |
191 | @@ -28,7 +28,7 @@ |
192 | |
193 | public class ClockDocklet : Docklet |
194 | { |
195 | - public override Plank.Items.DockElement make_element (string launcher, GLib.File file) |
196 | + public override Plank.DockElement make_element (string launcher, GLib.File file) |
197 | { |
198 | return new ClockDockItem.with_dockitem_file (file); |
199 | } |
200 | |
201 | === modified file 'docklets/Clock/ClockPreferences.vala' |
202 | --- docklets/Clock/ClockPreferences.vala 2015-11-02 08:40:11 +0000 |
203 | +++ docklets/Clock/ClockPreferences.vala 2015-11-03 12:02:25 +0000 |
204 | @@ -17,9 +17,7 @@ |
205 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
206 | // |
207 | |
208 | -using Plank.Items; |
209 | -using Plank.Services; |
210 | -using Plank.Widgets; |
211 | +using Plank; |
212 | |
213 | namespace Docky |
214 | { |
215 | |
216 | === modified file 'docklets/Desktop/DesktopDockItem.vala' |
217 | --- docklets/Desktop/DesktopDockItem.vala 2015-11-02 08:40:11 +0000 |
218 | +++ docklets/Desktop/DesktopDockItem.vala 2015-11-03 12:02:25 +0000 |
219 | @@ -17,7 +17,7 @@ |
220 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
221 | // |
222 | |
223 | -using Plank.Items; |
224 | +using Plank; |
225 | |
226 | namespace Docky |
227 | { |
228 | @@ -41,15 +41,15 @@ |
229 | { |
230 | } |
231 | |
232 | - protected override Animation on_clicked (PopupButton button, Gdk.ModifierType mod, uint32 event_time) |
233 | + protected override AnimationType on_clicked (PopupButton button, Gdk.ModifierType mod, uint32 event_time) |
234 | { |
235 | if (button == PopupButton.LEFT) { |
236 | unowned Wnck.Screen screen = Wnck.Screen.get_default (); |
237 | screen.toggle_showing_desktop (!screen.get_showing_desktop ()); |
238 | - return Animation.BOUNCE; |
239 | + return AnimationType.BOUNCE; |
240 | } |
241 | |
242 | - return Animation.NONE; |
243 | + return AnimationType.NONE; |
244 | } |
245 | } |
246 | } |
247 | |
248 | === modified file 'docklets/Desktop/DesktopDocklet.vala' |
249 | --- docklets/Desktop/DesktopDocklet.vala 2015-11-02 08:40:11 +0000 |
250 | +++ docklets/Desktop/DesktopDocklet.vala 2015-11-03 12:02:25 +0000 |
251 | @@ -28,7 +28,7 @@ |
252 | |
253 | public class DesktopDocklet : Docklet |
254 | { |
255 | - public override Plank.Items.DockElement make_element (string launcher, GLib.File file) |
256 | + public override Plank.DockElement make_element (string launcher, GLib.File file) |
257 | { |
258 | return new DesktopDockItem.with_dockitem_file (file); |
259 | } |
260 | |
261 | === modified file 'docklets/Trash/TrashDockItem.vala' |
262 | --- docklets/Trash/TrashDockItem.vala 2015-11-02 08:40:11 +0000 |
263 | +++ docklets/Trash/TrashDockItem.vala 2015-11-03 12:02:25 +0000 |
264 | @@ -17,10 +17,7 @@ |
265 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
266 | // |
267 | |
268 | -using Plank.Drawing; |
269 | -using Plank.Items; |
270 | -using Plank.Services; |
271 | -using Plank.Widgets; |
272 | +using Plank; |
273 | |
274 | namespace Docky |
275 | { |
276 | @@ -110,14 +107,14 @@ |
277 | return 0U; |
278 | } |
279 | |
280 | - protected override Animation on_clicked (PopupButton button, Gdk.ModifierType mod, uint32 event_time) |
281 | + protected override AnimationType on_clicked (PopupButton button, Gdk.ModifierType mod, uint32 event_time) |
282 | { |
283 | if (button == PopupButton.LEFT) { |
284 | open_trash (); |
285 | - return Animation.BOUNCE; |
286 | + return AnimationType.BOUNCE; |
287 | } |
288 | |
289 | - return Animation.NONE; |
290 | + return AnimationType.NONE; |
291 | } |
292 | |
293 | protected override bool can_accept_drop (Gee.ArrayList<string> uris) |
294 | |
295 | === modified file 'docklets/Trash/TrashDocklet.vala' |
296 | --- docklets/Trash/TrashDocklet.vala 2015-11-02 08:40:11 +0000 |
297 | +++ docklets/Trash/TrashDocklet.vala 2015-11-03 12:02:25 +0000 |
298 | @@ -26,7 +26,7 @@ |
299 | { |
300 | public class TrashDocklet : Docklet |
301 | { |
302 | - public override Plank.Items.DockElement make_element (string launcher, GLib.File file) |
303 | + public override Plank.DockElement make_element (string launcher, GLib.File file) |
304 | { |
305 | return new TrashDockItem.with_dockitem_file (file); |
306 | } |
307 | |
308 | === modified file 'docs/Makefile.am' |
309 | --- docs/Makefile.am 2015-11-02 13:42:37 +0000 |
310 | +++ docs/Makefile.am 2015-11-03 12:02:25 +0000 |
311 | @@ -27,12 +27,12 @@ |
312 | $(top_builddir)/lib/Version.vala \ |
313 | $(top_srcdir)/lib/DBus/Client.vala \ |
314 | $(top_srcdir)/lib/DBus/Interfaces.vala \ |
315 | - $(top_srcdir)/lib/Drawing/AnimatedRenderer.vala \ |
316 | $(top_srcdir)/lib/Drawing/Color.vala \ |
317 | $(top_srcdir)/lib/Drawing/DrawingService.vala \ |
318 | - $(top_srcdir)/lib/Drawing/DockSurface.vala \ |
319 | $(top_srcdir)/lib/Drawing/DockTheme.vala \ |
320 | $(top_srcdir)/lib/Drawing/Easing.vala \ |
321 | + $(top_srcdir)/lib/Drawing/Renderer.vala \ |
322 | + $(top_srcdir)/lib/Drawing/Surface.vala \ |
323 | $(top_srcdir)/lib/Drawing/SurfaceCache.vala \ |
324 | $(top_srcdir)/lib/Drawing/Theme.vala \ |
325 | $(top_srcdir)/lib/Factories/AbstractMain.vala \ |
326 | |
327 | === modified file 'examples/RemoteClient.vala' |
328 | --- examples/RemoteClient.vala 2015-04-27 13:39:02 +0000 |
329 | +++ examples/RemoteClient.vala 2015-11-03 12:02:25 +0000 |
330 | @@ -17,10 +17,9 @@ |
331 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
332 | // |
333 | |
334 | -using Plank.DBus; |
335 | -using Plank.Services; |
336 | +using Plank; |
337 | |
338 | -namespace Plank.Examples |
339 | +namespace PlankExamples |
340 | { |
341 | public class RemoteClient : GLib.Application |
342 | { |
343 | @@ -37,11 +36,11 @@ |
344 | { |
345 | hold (); |
346 | |
347 | - var client = Client.get_instance (); |
348 | + var client = Plank.DBusClient.get_instance (); |
349 | client.proxy_changed.connect (handle_proxy_changed); |
350 | } |
351 | |
352 | - void handle_proxy_changed (Client client) |
353 | + void handle_proxy_changed (DBusClient client) |
354 | { |
355 | if (!client.is_connected) |
356 | return; |
357 | |
358 | === modified file 'lib/DBus/Client.vala' |
359 | --- lib/DBus/Client.vala 2015-08-23 16:02:36 +0000 |
360 | +++ lib/DBus/Client.vala 2015-11-03 12:02:25 +0000 |
361 | @@ -17,23 +17,23 @@ |
362 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
363 | // |
364 | |
365 | -namespace Plank.DBus |
366 | +namespace Plank |
367 | { |
368 | /** |
369 | * Connects to a running instance of plank via DBus and |
370 | * provides remote interface to a currently runnning dock. |
371 | */ |
372 | - public class Client : GLib.Object |
373 | + public class DBusClient : GLib.Object |
374 | { |
375 | - static Client? instance; |
376 | + static DBusClient? instance; |
377 | |
378 | /** |
379 | - * Get the singleton instance of {@link Plank.DBus.Client} |
380 | + * Get the singleton instance of {@link Plank.DBusClient} |
381 | */ |
382 | - public static unowned Client get_instance () |
383 | + public static unowned DBusClient get_instance () |
384 | { |
385 | if (instance == null) |
386 | - instance = new Client (); |
387 | + instance = new DBusClient (); |
388 | |
389 | return instance; |
390 | } |
391 | @@ -64,12 +64,12 @@ |
392 | uint dbus_dock_ping_id = 0; |
393 | uint dbus_name_owner_changed_signal_id = 0; |
394 | |
395 | - ItemsIface? items_proxy = null; |
396 | + DBusItemsIface? items_proxy = null; |
397 | int items_count = int.MIN; |
398 | string[]? persistent_apps_list = null; |
399 | string[]? transient_apps_list = null; |
400 | |
401 | - Client () |
402 | + DBusClient () |
403 | { |
404 | Object (); |
405 | } |
406 | @@ -100,8 +100,8 @@ |
407 | |
408 | try { |
409 | // Listen for "Ping" signals coming from docks |
410 | - dbus_dock_ping_id = connection.signal_subscribe (null, Plank.DBus.DOCK_INTERFACE_NAME, |
411 | - Plank.DBus.PING_NAME, null, null, DBusSignalFlags.NONE, (DBusSignalCallback) handle_dock_ping); |
412 | + dbus_dock_ping_id = connection.signal_subscribe (null, Plank.DBUS_DOCK_INTERFACE_NAME, |
413 | + Plank.DBUS_PING_NAME, null, null, DBusSignalFlags.NONE, (DBusSignalCallback) handle_dock_ping); |
414 | } catch (IOError e) { |
415 | warning ("Could not subscribe for dock signal (%s)", e.message); |
416 | } |
417 | @@ -113,13 +113,13 @@ |
418 | |
419 | try { |
420 | // Broadcast to inform running docks |
421 | - connection.emit_signal (null, client_object_path, Plank.DBus.CLIENT_INTERFACE_NAME, Plank.DBus.PING_NAME, null); |
422 | + connection.emit_signal (null, client_object_path, Plank.DBUS_CLIENT_INTERFACE_NAME, Plank.DBUS_PING_NAME, null); |
423 | } catch (Error e) { |
424 | warning ("Could not ping running docks (%s)", e.message); |
425 | } |
426 | } |
427 | |
428 | - ~Client () |
429 | + ~DBusClient () |
430 | { |
431 | if (connection != null) { |
432 | if (dbus_dock_ping_id > 0) |
433 | @@ -163,7 +163,7 @@ |
434 | debug ("Connecting and create proxies for '%s' (%s)", sender_name, object_path); |
435 | |
436 | try { |
437 | - items_proxy = connection.get_proxy_sync<Plank.DBus.ItemsIface> (sender_name, object_path, DBusProxyFlags.NONE); |
438 | + items_proxy = connection.get_proxy_sync<Plank.DBusItemsIface> (sender_name, object_path, DBusProxyFlags.NONE); |
439 | items_proxy.changed.connect (invalidate_items_cache); |
440 | dock_bus_owner = ((DBusProxy) items_proxy).get_name_owner (); |
441 | dock_bus_name = sender_name; |
442 | |
443 | === modified file 'lib/DBus/Interfaces.vala' |
444 | --- lib/DBus/Interfaces.vala 2015-04-27 13:39:02 +0000 |
445 | +++ lib/DBus/Interfaces.vala 2015-11-03 12:02:25 +0000 |
446 | @@ -17,18 +17,18 @@ |
447 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
448 | // |
449 | |
450 | -namespace Plank.DBus |
451 | +namespace Plank |
452 | { |
453 | - const string PING_NAME = "Ping"; |
454 | + const string DBUS_PING_NAME = "Ping"; |
455 | |
456 | - const string DOCK_INTERFACE_NAME = "net.launchpad.plank"; |
457 | - const string CLIENT_INTERFACE_NAME = "net.launchpad.plank.Client"; |
458 | + const string DBUS_DOCK_INTERFACE_NAME = "net.launchpad.plank"; |
459 | + const string DBUS_CLIENT_INTERFACE_NAME = "net.launchpad.plank.Client"; |
460 | |
461 | /** |
462 | * Provide an interface to manage items of the dock |
463 | */ |
464 | [DBus (name = "net.launchpad.plank.Items")] |
465 | - interface ItemsIface : GLib.Object |
466 | + interface DBusItemsIface : GLib.Object |
467 | { |
468 | /** |
469 | * Emmited when items are changed |
470 | |
471 | === modified file 'lib/DBusManager.vala' |
472 | --- lib/DBusManager.vala 2015-08-23 16:08:17 +0000 |
473 | +++ lib/DBusManager.vala 2015-11-03 12:02:25 +0000 |
474 | @@ -17,16 +17,12 @@ |
475 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
476 | // |
477 | |
478 | -using Plank.Factories; |
479 | -using Plank.Items; |
480 | -using Plank.Services; |
481 | - |
482 | namespace Plank |
483 | { |
484 | /** |
485 | * Provide an interface to manage items of the dock |
486 | */ |
487 | - class DBusItems : GLib.Object, Plank.DBus.ItemsIface |
488 | + class DBusItems : GLib.Object, Plank.DBusItemsIface |
489 | { |
490 | DockController controller; |
491 | uint changed_timer_id = 0U; |
492 | @@ -184,15 +180,15 @@ |
493 | |
494 | // Listen for "Ping" signals coming from clients |
495 | try { |
496 | - dbus_client_ping_signal_id = connection.signal_subscribe (null, Plank.DBus.CLIENT_INTERFACE_NAME, |
497 | - Plank.DBus.PING_NAME, null, null, DBusSignalFlags.NONE, (DBusSignalCallback) handle_client_ping); |
498 | + dbus_client_ping_signal_id = connection.signal_subscribe (null, Plank.DBUS_CLIENT_INTERFACE_NAME, |
499 | + Plank.DBUS_PING_NAME, null, null, DBusSignalFlags.NONE, (DBusSignalCallback) handle_client_ping); |
500 | } catch (IOError e) { |
501 | warning ("Could not subscribe for client signal (%s)", e.message); |
502 | } |
503 | |
504 | try { |
505 | var dbus_items = new DBusItems (controller); |
506 | - dbus_items_signal_id = connection.register_object<Plank.DBus.ItemsIface> (object_path, dbus_items); |
507 | + dbus_items_signal_id = connection.register_object<Plank.DBusItemsIface> (object_path, dbus_items); |
508 | } catch (IOError e) { |
509 | warning ("Could not register service (%s)", e.message); |
510 | } |
511 | @@ -201,7 +197,7 @@ |
512 | |
513 | try { |
514 | // Broadcast to inform running clients |
515 | - connection.emit_signal (null, dock_object_path, Plank.DBus.DOCK_INTERFACE_NAME, Plank.DBus.PING_NAME, null); |
516 | + connection.emit_signal (null, dock_object_path, Plank.DBUS_DOCK_INTERFACE_NAME, Plank.DBUS_PING_NAME, null); |
517 | } catch (Error e) { |
518 | warning ("Could not ping running clients (%s)", e.message); |
519 | } |
520 | @@ -223,7 +219,7 @@ |
521 | { |
522 | try { |
523 | // Broadcast to inform running clients |
524 | - connection.emit_signal (null, dock_object_path, Plank.DBus.DOCK_INTERFACE_NAME, Plank.DBus.PING_NAME, null); |
525 | + connection.emit_signal (null, dock_object_path, Plank.DBUS_DOCK_INTERFACE_NAME, Plank.DBUS_PING_NAME, null); |
526 | } catch (Error e) { |
527 | warning ("Could not ping running clients (%s)", e.message); |
528 | } |
529 | |
530 | === modified file 'lib/DockController.vala' |
531 | --- lib/DockController.vala 2015-11-02 13:42:37 +0000 |
532 | +++ lib/DockController.vala 2015-11-03 12:02:25 +0000 |
533 | @@ -17,11 +17,6 @@ |
534 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
535 | // |
536 | |
537 | -using Plank.Factories; |
538 | -using Plank.Items; |
539 | -using Plank.Widgets; |
540 | -using Plank.Services; |
541 | - |
542 | namespace Plank |
543 | { |
544 | public const string G_RESOURCE_PATH = "/net/launchpad/plank"; |
545 | @@ -122,7 +117,7 @@ |
546 | /** |
547 | * Initialize this controller. |
548 | * Call this when added at least one DockItemProvider otherwise the |
549 | - * {@link Plank.Items.DefaultApplicationDockItemProvider} will be added by default. |
550 | + * {@link Plank.DefaultApplicationDockItemProvider} will be added by default. |
551 | */ |
552 | public void initialize () |
553 | { |
554 | @@ -148,7 +143,7 @@ |
555 | |
556 | /** |
557 | * Add the default provider which is an instance of |
558 | - * {@link Plank.Items.DefaultApplicationDockItemProvider} |
559 | + * {@link Plank.DefaultApplicationDockItemProvider} |
560 | */ |
561 | public void add_default_provider () |
562 | { |
563 | |
564 | === modified file 'lib/DockPreferences.vala' |
565 | --- lib/DockPreferences.vala 2015-11-02 13:42:37 +0000 |
566 | +++ lib/DockPreferences.vala 2015-11-03 12:02:25 +0000 |
567 | @@ -17,14 +17,12 @@ |
568 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
569 | // |
570 | |
571 | -using Plank.Services; |
572 | - |
573 | namespace Plank |
574 | { |
575 | /** |
576 | * Contains all preferences for docks. |
577 | */ |
578 | - public class DockPreferences : Plank.Services.Settings |
579 | + public class DockPreferences : Plank.Settings |
580 | { |
581 | static GLib.Settings create_settings (string schema_id, string? path = null) |
582 | { |
583 | @@ -158,7 +156,7 @@ |
584 | |
585 | case "Theme": |
586 | if (Theme == "") |
587 | - Theme = Plank.Drawing.Theme.DEFAULT_NAME; |
588 | + Theme = Plank.Theme.DEFAULT_NAME; |
589 | else if (Theme.contains ("/")) |
590 | Theme = Theme.replace ("/", ""); |
591 | break; |
592 | |
593 | === modified file 'lib/DockRenderer.vala' |
594 | --- lib/DockRenderer.vala 2015-11-01 20:41:45 +0000 |
595 | +++ lib/DockRenderer.vala 2015-11-03 12:02:25 +0000 |
596 | @@ -17,17 +17,12 @@ |
597 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
598 | // |
599 | |
600 | -using Plank.Items; |
601 | -using Plank.Drawing; |
602 | -using Plank.Services; |
603 | -using Plank.Widgets; |
604 | - |
605 | namespace Plank |
606 | { |
607 | /** |
608 | * Handles all of the drawing for a dock. |
609 | */ |
610 | - public class DockRenderer : AnimatedRenderer |
611 | + public class DockRenderer : Renderer |
612 | { |
613 | public DockController controller { private get; construct; } |
614 | |
615 | @@ -57,16 +52,16 @@ |
616 | [CCode (notify = false)] |
617 | public Gdk.Point local_cursor { get; private set; } |
618 | |
619 | - DockSurface? main_buffer = null; |
620 | - DockSurface? fade_buffer = null; |
621 | - DockSurface? item_buffer = null; |
622 | - DockSurface? shadow_buffer = null; |
623 | + Surface? main_buffer = null; |
624 | + Surface? fade_buffer = null; |
625 | + Surface? item_buffer = null; |
626 | + Surface? shadow_buffer = null; |
627 | |
628 | - DockSurface? background_buffer = null; |
629 | + Surface? background_buffer = null; |
630 | Gdk.Rectangle background_rect; |
631 | - DockSurface? indicator_buffer = null; |
632 | - DockSurface? urgent_indicator_buffer = null; |
633 | - DockSurface? urgent_glow_buffer = null; |
634 | + Surface? indicator_buffer = null; |
635 | + Surface? urgent_indicator_buffer = null; |
636 | + Surface? urgent_glow_buffer = null; |
637 | |
638 | int64 last_hide = 0LL; |
639 | int64 last_hovered_changed = 0LL; |
640 | @@ -184,7 +179,7 @@ |
641 | theme.notify.disconnect (theme_changed); |
642 | |
643 | unowned string name = controller.prefs.Theme; |
644 | - if (name == Drawing.Theme.GTK_THEME_NAME) { |
645 | + if (name == Theme.GTK_THEME_NAME) { |
646 | if (gtk_theme_name_changed_handler_id == 0UL) |
647 | gtk_theme_name_changed_handler_id = Gtk.Settings.get_default ().notify["gtk-theme-name"].connect (load_theme); |
648 | } else if (gtk_theme_name_changed_handler_id > 0UL) { |
649 | @@ -259,9 +254,9 @@ |
650 | var hide_time = int64.max (0LL, frame_time - last_hide); |
651 | if (hide_time < hide_duration) { |
652 | if (controller.hide_manager.Hidden) |
653 | - hide_progress = Drawing.easing_for_mode (AnimationMode.EASE_IN_CUBIC, hide_time, hide_duration); |
654 | + hide_progress = easing_for_mode (AnimationMode.EASE_IN_CUBIC, hide_time, hide_duration); |
655 | else |
656 | - hide_progress = 1.0 - Drawing.easing_for_mode (AnimationMode.EASE_OUT_CUBIC, hide_time, hide_duration); |
657 | + hide_progress = 1.0 - easing_for_mode (AnimationMode.EASE_OUT_CUBIC, hide_time, hide_duration); |
658 | } else { |
659 | hide_progress = (controller.hide_manager.Hidden ? 1.0 : 0.0); |
660 | } |
661 | @@ -271,9 +266,9 @@ |
662 | double zoom_progress; |
663 | if (zoom_time < zoom_duration) { |
664 | if (controller.hide_manager.Hovered) |
665 | - zoom_progress = Drawing.easing_for_mode (AnimationMode.EASE_OUT_CUBIC, zoom_time, zoom_duration); |
666 | + zoom_progress = easing_for_mode (AnimationMode.EASE_OUT_CUBIC, zoom_time, zoom_duration); |
667 | else |
668 | - zoom_progress = 1.0 - Drawing.easing_for_mode (AnimationMode.EASE_IN_CUBIC, zoom_time, zoom_duration); |
669 | + zoom_progress = 1.0 - easing_for_mode (AnimationMode.EASE_IN_CUBIC, zoom_time, zoom_duration); |
670 | } else { |
671 | zoom_progress = (controller.hide_manager.Hovered ? 1.0 : 0.0); |
672 | } |
673 | @@ -363,21 +358,21 @@ |
674 | var win_rect = position_manager.get_dock_window_region (); |
675 | |
676 | if (main_buffer == null) { |
677 | - main_buffer = new DockSurface.with_surface (win_rect.width, win_rect.height, cr.get_target ()); |
678 | + main_buffer = new Surface.with_cairo_surface (win_rect.width, win_rect.height, cr.get_target ()); |
679 | #if HAVE_HIDPI |
680 | cairo_surface_set_device_scale (main_buffer.Internal, window_scale_factor, window_scale_factor); |
681 | #endif |
682 | } |
683 | |
684 | if (item_buffer == null) { |
685 | - item_buffer = new DockSurface.with_surface (win_rect.width, win_rect.height, cr.get_target ()); |
686 | + item_buffer = new Surface.with_cairo_surface (win_rect.width, win_rect.height, cr.get_target ()); |
687 | #if HAVE_HIDPI |
688 | cairo_surface_set_device_scale (item_buffer.Internal, window_scale_factor, window_scale_factor); |
689 | #endif |
690 | } |
691 | |
692 | if (shadow_buffer == null) { |
693 | - shadow_buffer = new DockSurface.with_surface (win_rect.width, win_rect.height, cr.get_target ()); |
694 | + shadow_buffer = new Surface.with_cairo_surface (win_rect.width, win_rect.height, cr.get_target ()); |
695 | #if HAVE_HIDPI |
696 | cairo_surface_set_device_scale (shadow_buffer.Internal, window_scale_factor, window_scale_factor); |
697 | #endif |
698 | @@ -400,7 +395,7 @@ |
699 | } |
700 | |
701 | if (opacity < 1.0 && fade_buffer == null) { |
702 | - fade_buffer = new DockSurface.with_surface (win_rect.width, win_rect.height, cr.get_target ()); |
703 | + fade_buffer = new Surface.with_cairo_surface (win_rect.width, win_rect.height, cr.get_target ()); |
704 | #if HAVE_HIDPI |
705 | cairo_surface_set_device_scale (fade_buffer.Internal, window_scale_factor, window_scale_factor); |
706 | #endif |
707 | @@ -551,7 +546,7 @@ |
708 | var x_offset = 0.0, y_offset = 0.0; |
709 | |
710 | // check for and calculate click-animation |
711 | - var max_click_time = item.ClickedAnimation == Animation.BOUNCE ? theme.LaunchBounceTime : theme.ClickTime; |
712 | + var max_click_time = item.ClickedAnimation == AnimationType.BOUNCE ? theme.LaunchBounceTime : theme.ClickTime; |
713 | max_click_time *= 1000; |
714 | var click_time = int64.max (0LL, frame_time - item.LastClicked); |
715 | if (click_time < max_click_time) { |
716 | @@ -559,16 +554,16 @@ |
717 | |
718 | switch (item.ClickedAnimation) { |
719 | default: |
720 | - case Animation.NONE: |
721 | + case AnimationType.NONE: |
722 | break; |
723 | - case Animation.BOUNCE: |
724 | + case AnimationType.BOUNCE: |
725 | if (screen_is_composited) |
726 | y_offset += position_manager.LaunchBounceHeight * easing_bounce (click_time, max_click_time, 2); |
727 | break; |
728 | - case Animation.DARKEN: |
729 | + case AnimationType.DARKEN: |
730 | draw_value.darken = double.max (0, Math.sin (Math.PI * click_animation_progress)) * 0.5; |
731 | break; |
732 | - case Animation.LIGHTEN: |
733 | + case AnimationType.LIGHTEN: |
734 | draw_value.lighten = double.max (0, Math.sin (Math.PI * click_animation_progress)) * 0.5; |
735 | break; |
736 | } |
737 | @@ -582,12 +577,12 @@ |
738 | |
739 | switch (item.ScrolledAnimation) { |
740 | default: |
741 | - case Animation.NONE: |
742 | + case AnimationType.NONE: |
743 | break; |
744 | - case Animation.DARKEN: |
745 | + case AnimationType.DARKEN: |
746 | draw_value.darken = double.max (0, Math.sin (Math.PI * scroll_animation_progress)) * 0.5; |
747 | break; |
748 | - case Animation.LIGHTEN: |
749 | + case AnimationType.LIGHTEN: |
750 | draw_value.lighten = double.max (0, Math.sin (Math.PI * scroll_animation_progress)) * 0.5; |
751 | break; |
752 | } |
753 | @@ -599,16 +594,16 @@ |
754 | if (hover_time < max_hover_time) { |
755 | var hover_animation_progress = 0.0; |
756 | if (hovered_item == item) { |
757 | - hover_animation_progress = Drawing.easing_for_mode (AnimationMode.LINEAR, hover_time, max_hover_time); |
758 | + hover_animation_progress = easing_for_mode (AnimationMode.LINEAR, hover_time, max_hover_time); |
759 | } else { |
760 | - hover_animation_progress = 1.0 - Drawing.easing_for_mode (AnimationMode.LINEAR, hover_time, max_hover_time); |
761 | + hover_animation_progress = 1.0 - easing_for_mode (AnimationMode.LINEAR, hover_time, max_hover_time); |
762 | } |
763 | |
764 | switch (item.HoveredAnimation) { |
765 | default: |
766 | - case Animation.NONE: |
767 | + case AnimationType.NONE: |
768 | break; |
769 | - case Animation.LIGHTEN: |
770 | + case AnimationType.LIGHTEN: |
771 | draw_value.lighten = hover_animation_progress * 0.2; |
772 | break; |
773 | } |
774 | @@ -638,13 +633,13 @@ |
775 | var move_duration = theme.ItemMoveTime * 1000; |
776 | var move_time = int64.max (0LL, frame_time - item.AddTime); |
777 | if (move_time < move_duration) { |
778 | - var move_animation_progress = 1.0 - Drawing.easing_for_mode (AnimationMode.LINEAR, move_time, move_duration); |
779 | - draw_value.opacity = Drawing.easing_for_mode (AnimationMode.EASE_IN_EXPO, move_time, move_duration); |
780 | + var move_animation_progress = 1.0 - easing_for_mode (AnimationMode.LINEAR, move_time, move_duration); |
781 | + draw_value.opacity = easing_for_mode (AnimationMode.EASE_IN_EXPO, move_time, move_duration); |
782 | y_offset -= move_animation_progress * (icon_size + position_manager.BottomPadding); |
783 | draw_value.show_indicator = false; |
784 | |
785 | // calculate the resulting incremental dynamic-animation-offset used to animate the background-resize and icon-offset |
786 | - move_animation_progress = 1.0 - Drawing.easing_for_mode (AnimationMode.EASE_OUT_QUINT, move_time, move_duration); |
787 | + move_animation_progress = 1.0 - easing_for_mode (AnimationMode.EASE_OUT_QUINT, move_time, move_duration); |
788 | dynamic_animation_offset -= move_animation_progress * (icon_size + position_manager.ItemPadding); |
789 | x_offset += dynamic_animation_offset; |
790 | } |
791 | @@ -652,13 +647,13 @@ |
792 | var move_duration = theme.ItemMoveTime * 1000; |
793 | var move_time = int64.max (0LL, frame_time - item.RemoveTime); |
794 | if (move_time < move_duration) { |
795 | - var move_animation_progress = Drawing.easing_for_mode (AnimationMode.LINEAR, move_time, move_duration); |
796 | - draw_value.opacity = 1.0 - Drawing.easing_for_mode (AnimationMode.EASE_OUT_EXPO, move_time, move_duration); |
797 | + var move_animation_progress = easing_for_mode (AnimationMode.LINEAR, move_time, move_duration); |
798 | + draw_value.opacity = 1.0 - easing_for_mode (AnimationMode.EASE_OUT_EXPO, move_time, move_duration); |
799 | y_offset -= move_animation_progress * (icon_size + position_manager.BottomPadding); |
800 | draw_value.show_indicator = false; |
801 | |
802 | // calculate the resulting incremental dynamic-animation-offset used to animate the background-resize and icon-offset |
803 | - move_animation_progress = 1.0 - Drawing.easing_for_mode (AnimationMode.EASE_IN_QUINT, move_time, move_duration); |
804 | + move_animation_progress = 1.0 - easing_for_mode (AnimationMode.EASE_IN_QUINT, move_time, move_duration); |
805 | dynamic_animation_offset += move_animation_progress * (icon_size + position_manager.ItemPadding); |
806 | x_offset += dynamic_animation_offset - (icon_size + position_manager.ItemPadding); |
807 | } |
808 | @@ -672,11 +667,11 @@ |
809 | var move_animation_progress = 0.0; |
810 | if (transient_items.size > 0) { |
811 | if (dynamic_animation_offset > 0) |
812 | - move_animation_progress = 1.0 - Drawing.easing_for_mode (AnimationMode.EASE_IN_QUINT, move_time, move_duration); |
813 | + move_animation_progress = 1.0 - easing_for_mode (AnimationMode.EASE_IN_QUINT, move_time, move_duration); |
814 | else |
815 | - move_animation_progress = 1.0 - Drawing.easing_for_mode (AnimationMode.EASE_OUT_QUINT, move_time, move_duration); |
816 | + move_animation_progress = 1.0 - easing_for_mode (AnimationMode.EASE_OUT_QUINT, move_time, move_duration); |
817 | } else { |
818 | - move_animation_progress = 1.0 - Drawing.easing_for_mode (AnimationMode.EASE_OUT_CIRC, move_time, move_duration); |
819 | + move_animation_progress = 1.0 - easing_for_mode (AnimationMode.EASE_OUT_CIRC, move_time, move_duration); |
820 | } |
821 | var change = move_animation_progress * (icon_size + position_manager.ItemPadding); |
822 | x_offset += (item.Position < item.LastPosition ? change : -change); |
823 | @@ -770,7 +765,7 @@ |
824 | var icon_surface = item.get_surface_copy (icon_size * window_scale_factor, icon_size * window_scale_factor, item_buffer); |
825 | unowned Cairo.Context icon_cr = icon_surface.Context; |
826 | |
827 | - DockSurface? icon_overlay_surface = null; |
828 | + Surface? icon_overlay_surface = null; |
829 | if (item.CountVisible || item.ProgressVisible) |
830 | icon_overlay_surface = item.get_foreground_surface (icon_size * window_scale_factor, icon_size * window_scale_factor, item_buffer, (DrawDataFunc<DockItem>) draw_item_foreground); |
831 | |
832 | @@ -836,7 +831,7 @@ |
833 | var icon_size = (int) (draw_value.icon_size + 2 * shadow_size) * window_scale_factor; |
834 | |
835 | // load and draw the icon shadow |
836 | - DockSurface? icon_shadow_surface = null; |
837 | + Surface? icon_shadow_surface = null; |
838 | if (shadow_size > 0) |
839 | icon_shadow_surface = item.get_background_surface (icon_size, icon_size, item_buffer, (DrawDataFunc<DockItem>) draw_item_background); |
840 | |
841 | @@ -858,10 +853,10 @@ |
842 | } |
843 | |
844 | [CCode (instance_pos = -1)] |
845 | - DockSurface draw_item_foreground (int width, int height, DockSurface model, DockItem item) |
846 | + Surface draw_item_foreground (int width, int height, Surface model, DockItem item) |
847 | { |
848 | Logger.verbose ("DockItem.draw_item_overlay (width = %i, height = %i)", width, height); |
849 | - var surface = new DockSurface.with_dock_surface (width, height, model); |
850 | + var surface = new Surface.with_surface (width, height, model); |
851 | |
852 | var icon_size = int.min (width, height) * window_scale_factor; |
853 | var urgent_color = get_styled_color (); |
854 | @@ -879,7 +874,7 @@ |
855 | } |
856 | |
857 | [CCode (instance_pos = -1)] |
858 | - DockSurface draw_item_background (int width, int height, DockSurface model, DockItem item) |
859 | + Surface draw_item_background (int width, int height, Surface model, DockItem item) |
860 | { |
861 | unowned PositionManager position_manager = controller.position_manager; |
862 | var shadow_size = position_manager.IconShadowSize * window_scale_factor; |
863 | @@ -889,7 +884,7 @@ |
864 | var icon_surface = item.get_surface (icon_size, icon_size, model); |
865 | |
866 | Logger.verbose ("DockItem.draw_icon_with_shadow (width = %i, height = %i, shadow_size = %i)", width, height, shadow_size); |
867 | - var surface = new DockSurface.with_dock_surface (width, height, model); |
868 | + var surface = new Surface.with_surface (width, height, model); |
869 | unowned Cairo.Context cr = surface.Context; |
870 | var shadow_surface = icon_surface.create_mask (0.4, null); |
871 | |
872 | @@ -933,7 +928,7 @@ |
873 | urgent_indicator_buffer = theme.create_indicator (position_manager.IndicatorSize, urgent_indicator_color, item_buffer); |
874 | } |
875 | |
876 | - unowned DockSurface indicator_surface = (item_state & ItemState.URGENT) != 0 ? urgent_indicator_buffer : indicator_buffer; |
877 | + unowned Surface indicator_surface = (item_state & ItemState.URGENT) != 0 ? urgent_indicator_buffer : indicator_buffer; |
878 | |
879 | var x = 0.0, y = 0.0; |
880 | switch (position_manager.Position) { |
881 | @@ -999,10 +994,10 @@ |
882 | cr.paint_with_alpha (opacity); |
883 | } |
884 | |
885 | - Drawing.Color get_styled_color () |
886 | + Color get_styled_color () |
887 | { |
888 | var background_selected_color = controller.window.get_style_context ().get_background_color (Gtk.StateFlags.SELECTED | Gtk.StateFlags.FOCUSED); |
889 | - var selected_color = (Drawing.Color) background_selected_color; |
890 | + var selected_color = (Color) background_selected_color; |
891 | selected_color.set_min_val (90 / (double) uint16.MAX); |
892 | return selected_color; |
893 | } |
894 | @@ -1108,13 +1103,13 @@ |
895 | |
896 | inline bool item_animation_needed (DockItem item, int64 render_time) |
897 | { |
898 | - if (item.ClickedAnimation != Animation.NONE |
899 | - && render_time - item.LastClicked <= (item.ClickedAnimation == Animation.BOUNCE ? theme.LaunchBounceTime : theme.ClickTime) * 1000) |
900 | + if (item.ClickedAnimation != AnimationType.NONE |
901 | + && render_time - item.LastClicked <= (item.ClickedAnimation == AnimationType.BOUNCE ? theme.LaunchBounceTime : theme.ClickTime) * 1000) |
902 | return true; |
903 | - if (item.HoveredAnimation != Animation.NONE |
904 | + if (item.HoveredAnimation != AnimationType.NONE |
905 | && render_time - item.LastHovered <= ITEM_HOVER_DURATION * 1000) |
906 | return true; |
907 | - if (item.ScrolledAnimation != Animation.NONE |
908 | + if (item.ScrolledAnimation != AnimationType.NONE |
909 | && render_time - item.LastScrolled <= ITEM_SCROLL_DURATION * 1000) |
910 | return true; |
911 | if (render_time - item.LastActive <= theme.ActiveTime * 1000) |
912 | |
913 | === modified file 'lib/Docklets/Docklet.vala' |
914 | --- lib/Docklets/Docklet.vala 2015-11-02 08:40:11 +0000 |
915 | +++ lib/Docklets/Docklet.vala 2015-11-03 12:02:25 +0000 |
916 | @@ -31,6 +31,6 @@ |
917 | return (launcher == "docklet://%s".printf (name)); |
918 | } |
919 | |
920 | - public abstract Plank.Items.DockElement make_element (string launcher, GLib.File file); |
921 | + public abstract Plank.DockElement make_element (string launcher, GLib.File file); |
922 | } |
923 | } |
924 | |
925 | === modified file 'lib/Docklets/DockletItem.vala' |
926 | --- lib/Docklets/DockletItem.vala 2015-11-02 08:40:11 +0000 |
927 | +++ lib/Docklets/DockletItem.vala 2015-11-03 12:02:25 +0000 |
928 | @@ -17,7 +17,7 @@ |
929 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
930 | // |
931 | |
932 | -using Plank.Items; |
933 | +using Plank; |
934 | |
935 | namespace Docky |
936 | { |
937 | |
938 | === modified file 'lib/Docklets/DockletManager.vala' |
939 | --- lib/Docklets/DockletManager.vala 2015-11-02 08:40:11 +0000 |
940 | +++ lib/Docklets/DockletManager.vala 2015-11-03 12:02:25 +0000 |
941 | @@ -40,7 +40,7 @@ |
942 | * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
943 | */ |
944 | |
945 | -using Plank.Services; |
946 | +using Plank; |
947 | |
948 | namespace Docky |
949 | { |
950 | |
951 | === modified file 'lib/DragManager.vala' |
952 | --- lib/DragManager.vala 2015-07-30 09:23:44 +0000 |
953 | +++ lib/DragManager.vala 2015-11-03 12:02:25 +0000 |
954 | @@ -17,10 +17,6 @@ |
955 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
956 | // |
957 | |
958 | -using Plank.Drawing; |
959 | -using Plank.Items; |
960 | -using Plank.Widgets; |
961 | - |
962 | namespace Plank |
963 | { |
964 | /** |
965 | @@ -184,7 +180,7 @@ |
966 | #if HAVE_HIDPI |
967 | drag_icon_size *= window_scale_factor; |
968 | #endif |
969 | - var drag_surface = new DockSurface (drag_icon_size, drag_icon_size); |
970 | + var drag_surface = new Surface (drag_icon_size, drag_icon_size); |
971 | #if HAVE_HIDPI |
972 | cairo_surface_set_device_scale (drag_surface.Internal, window_scale_factor, window_scale_factor); |
973 | #endif |
974 | |
975 | === modified file 'lib/Drawing/Color.vala' |
976 | --- lib/Drawing/Color.vala 2015-07-09 05:43:43 +0000 |
977 | +++ lib/Drawing/Color.vala 2015-11-03 12:02:25 +0000 |
978 | @@ -17,7 +17,7 @@ |
979 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
980 | // |
981 | |
982 | -namespace Plank.Drawing |
983 | +namespace Plank |
984 | { |
985 | /** |
986 | * Represents a RGBA color and has methods for manipulating the color. |
987 | |
988 | === modified file 'lib/Drawing/DockTheme.vala' |
989 | --- lib/Drawing/DockTheme.vala 2015-06-11 05:36:16 +0000 |
990 | +++ lib/Drawing/DockTheme.vala 2015-11-03 12:02:25 +0000 |
991 | @@ -17,9 +17,7 @@ |
992 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
993 | // |
994 | |
995 | -using Plank.Services; |
996 | - |
997 | -namespace Plank.Drawing |
998 | +namespace Plank |
999 | { |
1000 | /** |
1001 | * A themed renderer for dock windows. |
1002 | @@ -145,13 +143,13 @@ |
1003 | * @param height the height of the background |
1004 | * @param position the position of the dock |
1005 | * @param model existing surface to use as basis of new surface |
1006 | - * @return a new dock surface with the background drawn on it |
1007 | + * @return a new surface with the background drawn on it |
1008 | */ |
1009 | - public DockSurface create_background (int width, int height, Gtk.PositionType position, DockSurface model) |
1010 | + public Surface create_background (int width, int height, Gtk.PositionType position, Surface model) |
1011 | { |
1012 | Logger.verbose ("DockTheme.create_background (width = %i, height = %i)", width, height); |
1013 | |
1014 | - var surface = new DockSurface.with_dock_surface (width, height, model); |
1015 | + var surface = new Surface.with_surface (width, height, model); |
1016 | surface.clear (); |
1017 | |
1018 | if (width <= 0 || height <= 0) |
1019 | @@ -162,11 +160,11 @@ |
1020 | return surface; |
1021 | } |
1022 | |
1023 | - DockSurface temp; |
1024 | + Surface temp; |
1025 | if (position == Gtk.PositionType.TOP) |
1026 | - temp = new DockSurface.with_dock_surface (width, height, surface); |
1027 | + temp = new Surface.with_surface (width, height, surface); |
1028 | else |
1029 | - temp = new DockSurface.with_dock_surface (height, width, surface); |
1030 | + temp = new Surface.with_surface (height, width, surface); |
1031 | |
1032 | draw_background (temp); |
1033 | |
1034 | @@ -209,13 +207,13 @@ |
1035 | * @param size the size of the indicator |
1036 | * @param color the color of the indicator |
1037 | * @param model existing surface to use as basis of new surface |
1038 | - * @return a new dock surface with the indicator drawn on it |
1039 | + * @return a new surface with the indicator drawn on it |
1040 | */ |
1041 | - public DockSurface create_indicator (int size, Color color, DockSurface model) |
1042 | + public Surface create_indicator (int size, Color color, Surface model) |
1043 | { |
1044 | Logger.verbose ("DockTheme.create_indicator (size = %i)", size); |
1045 | |
1046 | - var surface = new DockSurface.with_dock_surface (size, size, model); |
1047 | + var surface = new Surface.with_surface (size, size, model); |
1048 | surface.clear (); |
1049 | |
1050 | if (size <= 0) |
1051 | @@ -250,13 +248,13 @@ |
1052 | * @param size the size of the urgent glow |
1053 | * @param color the color of the urgent glow |
1054 | * @param model existing surface to use as basis of new surface |
1055 | - * @return a new dock surface with the urgent glow drawn on it |
1056 | + * @return a new surface with the urgent glow drawn on it |
1057 | */ |
1058 | - public DockSurface create_urgent_glow (int size, Color color, DockSurface model) |
1059 | + public Surface create_urgent_glow (int size, Color color, Surface model) |
1060 | { |
1061 | Logger.verbose ("DockTheme.create_urgent_glow (size = %i)", size); |
1062 | |
1063 | - var surface = new DockSurface.with_dock_surface (size, size, model); |
1064 | + var surface = new Surface.with_surface (size, size, model); |
1065 | surface.clear (); |
1066 | |
1067 | if (size <= 0) |
1068 | @@ -292,7 +290,7 @@ |
1069 | * @param opacity the opacity of the glow |
1070 | * @param pos the dock's position |
1071 | */ |
1072 | - public void draw_active_glow (DockSurface surface, Gdk.Rectangle clip_rect, Gdk.Rectangle rect, Color color, double opacity, Gtk.PositionType pos) |
1073 | + public void draw_active_glow (Surface surface, Gdk.Rectangle clip_rect, Gdk.Rectangle rect, Color color, double opacity, Gtk.PositionType pos) |
1074 | { |
1075 | if (opacity <= 0.0 || rect.width <= 0 || rect.height <= 0) |
1076 | return; |
1077 | @@ -365,7 +363,7 @@ |
1078 | * @param color the color of the badge |
1079 | * @param count the number for the badge to show |
1080 | */ |
1081 | - public void draw_item_count (DockSurface surface, int icon_size, Color color, int64 count) |
1082 | + public void draw_item_count (Surface surface, int icon_size, Color color, int64 count) |
1083 | { |
1084 | unowned Cairo.Context cr = surface.Context; |
1085 | |
1086 | @@ -478,7 +476,7 @@ |
1087 | * @param color the color of the progress |
1088 | * @param progress the value between 0.0 and 1.0 |
1089 | */ |
1090 | - public void draw_item_progress (DockSurface surface, int icon_size, Color color, double progress) |
1091 | + public void draw_item_progress (Surface surface, int icon_size, Color color, double progress) |
1092 | { |
1093 | if (progress < 0) |
1094 | return; |
1095 | |
1096 | === modified file 'lib/Drawing/DrawingService.vala' |
1097 | --- lib/Drawing/DrawingService.vala 2015-06-10 11:51:45 +0000 |
1098 | +++ lib/Drawing/DrawingService.vala 2015-11-03 12:02:25 +0000 |
1099 | @@ -17,7 +17,7 @@ |
1100 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
1101 | // |
1102 | |
1103 | -namespace Plank.Drawing |
1104 | +namespace Plank |
1105 | { |
1106 | /** |
1107 | * Utility service for loading icons and working with pixbufs. |
1108 | @@ -368,7 +368,7 @@ |
1109 | * @param source the pixbuf to use |
1110 | * @return the average color of the pixbuf |
1111 | */ |
1112 | - public static Drawing.Color average_color (Gdk.Pixbuf source) |
1113 | + public static Color average_color (Gdk.Pixbuf source) |
1114 | { |
1115 | uint8 r, g, b, a, min, max; |
1116 | double delta; |
1117 | |
1118 | === modified file 'lib/Drawing/Easing.vala' |
1119 | --- lib/Drawing/Easing.vala 2015-11-01 08:56:05 +0000 |
1120 | +++ lib/Drawing/Easing.vala 2015-11-03 12:02:25 +0000 |
1121 | @@ -17,7 +17,7 @@ |
1122 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
1123 | // |
1124 | |
1125 | -namespace Plank.Drawing |
1126 | +namespace Plank |
1127 | { |
1128 | /** |
1129 | * Utility functions to calculate progress of transitions. |
1130 | |
1131 | === renamed file 'lib/Drawing/AnimatedRenderer.vala' => 'lib/Drawing/Renderer.vala' |
1132 | --- lib/Drawing/AnimatedRenderer.vala 2015-09-09 13:22:27 +0000 |
1133 | +++ lib/Drawing/Renderer.vala 2015-11-03 12:02:25 +0000 |
1134 | @@ -17,13 +17,13 @@ |
1135 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
1136 | // |
1137 | |
1138 | -namespace Plank.Drawing |
1139 | +namespace Plank |
1140 | { |
1141 | /** |
1142 | * Handles animated rendering. Uses a timer and continues requesting |
1143 | * redraws for a widget until no more animation is needed. |
1144 | */ |
1145 | - public abstract class AnimatedRenderer : GLib.Object |
1146 | + public abstract class Renderer : GLib.Object |
1147 | { |
1148 | public Gtk.Widget widget { get; construct; } |
1149 | |
1150 | @@ -40,7 +40,7 @@ |
1151 | /** |
1152 | * Creates a new animation renderer. |
1153 | */ |
1154 | - public AnimatedRenderer (Gtk.Widget widget) |
1155 | + public Renderer (Gtk.Widget widget) |
1156 | { |
1157 | Object (widget : widget); |
1158 | } |
1159 | @@ -54,7 +54,7 @@ |
1160 | widget_draw_handler_id = widget.draw.connect (on_widget_draw); |
1161 | } |
1162 | |
1163 | - ~AnimatedRenderer () |
1164 | + ~Renderer () |
1165 | { |
1166 | if (timer_id > 0U) { |
1167 | #if HAVE_GTK_3_8 |
1168 | |
1169 | === renamed file 'lib/Drawing/DockSurface.vala' => 'lib/Drawing/Surface.vala' |
1170 | --- lib/Drawing/DockSurface.vala 2015-07-16 08:24:10 +0000 |
1171 | +++ lib/Drawing/Surface.vala 2015-11-03 12:02:25 +0000 |
1172 | @@ -17,16 +17,16 @@ |
1173 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
1174 | // |
1175 | |
1176 | -namespace Plank.Drawing |
1177 | +namespace Plank |
1178 | { |
1179 | /** |
1180 | - * A dock surface is a wrapper class for a {@link Cairo.Surface}. |
1181 | + * A surface is a wrapper class for a {@link Cairo.Surface}. |
1182 | * It encapsulates a surface/context and provides utility methods. |
1183 | */ |
1184 | - public class DockSurface : GLib.Object |
1185 | + public class Surface : GLib.Object |
1186 | { |
1187 | /** |
1188 | - * The internal {@link Cairo.Surface} backing the dock surface. |
1189 | + * The internal {@link Cairo.Surface} backing the surface. |
1190 | */ |
1191 | public Cairo.Surface Internal { get; construct; } |
1192 | |
1193 | @@ -41,51 +41,51 @@ |
1194 | public int Height { get; construct; } |
1195 | |
1196 | /** |
1197 | - * A {@link Cairo.Context} for the dock surface. |
1198 | + * A {@link Cairo.Context} for the surface. |
1199 | */ |
1200 | public Cairo.Context Context { get; construct; } |
1201 | |
1202 | /** |
1203 | - * Creates a new dock surface. |
1204 | + * Creates a new surface. |
1205 | * |
1206 | * @param width width of the new surface |
1207 | * @param height height of the new surface |
1208 | */ |
1209 | - public DockSurface (int width, int height) |
1210 | + public Surface (int width, int height) |
1211 | { |
1212 | Object (Width: width, Height: height, Internal: new Cairo.ImageSurface (Cairo.Format.ARGB32, width, height)); |
1213 | } |
1214 | |
1215 | /** |
1216 | - * Creates a new dock surface compatible with an existing {@link Cairo.Surface}. |
1217 | + * Creates a new surface compatible with an existing {@link Cairo.Surface}. |
1218 | * |
1219 | * @param width width of the new surface |
1220 | * @param height height of the new surface |
1221 | * @param model existing {@link Cairo.Surface} to be similar to |
1222 | */ |
1223 | - public DockSurface.with_surface (int width, int height, Cairo.Surface model) |
1224 | + public Surface.with_cairo_surface (int width, int height, Cairo.Surface model) |
1225 | { |
1226 | Object (Width: width, Height: height, Internal: new Cairo.Surface.similar (model, Cairo.Content.COLOR_ALPHA, width, height)); |
1227 | } |
1228 | |
1229 | /** |
1230 | - * Creates a new dock surface compatible with an existing {@link Drawing.DockSurface}. |
1231 | + * Creates a new surface compatible with an existing {@link Surface}. |
1232 | * |
1233 | * @param width width of the new surface |
1234 | * @param height height of the new surface |
1235 | - * @param model existing {@link Drawing.DockSurface} to be similar to |
1236 | + * @param model existing {@link Surface} to be similar to |
1237 | */ |
1238 | - public DockSurface.with_dock_surface (int width, int height, DockSurface model) |
1239 | + public Surface.with_surface (int width, int height, Surface model) |
1240 | { |
1241 | Object (Width: width, Height: height, Internal: new Cairo.Surface.similar (model.Internal, Cairo.Content.COLOR_ALPHA, width, height)); |
1242 | } |
1243 | |
1244 | /** |
1245 | - * Creates a new dock surface with the given {@link Cairo.ImageSurface} as Internal. |
1246 | + * Creates a new surface with the given {@link Cairo.ImageSurface} as Internal. |
1247 | * |
1248 | * @param image existing {@link Cairo.ImageSurface} as Internal |
1249 | */ |
1250 | - public DockSurface.with_internal (Cairo.ImageSurface image) |
1251 | + public Surface.with_internal (Cairo.ImageSurface image) |
1252 | { |
1253 | Object (Width: image.get_width (), Height: image.get_height (), Internal: image); |
1254 | } |
1255 | @@ -113,9 +113,9 @@ |
1256 | * |
1257 | * @return copy of this surface |
1258 | */ |
1259 | - public DockSurface copy () |
1260 | + public Surface copy () |
1261 | { |
1262 | - var copy = new DockSurface.with_dock_surface (Width, Height, this); |
1263 | + var copy = new Surface.with_surface (Width, Height, this); |
1264 | unowned Cairo.Context cr = copy.Context; |
1265 | |
1266 | cr.set_source_surface (Internal, 0, 0); |
1267 | @@ -131,9 +131,9 @@ |
1268 | * @param height the resulting height |
1269 | * @return scaled copy of this surface |
1270 | */ |
1271 | - public DockSurface scaled_copy (int width, int height) |
1272 | + public Surface scaled_copy (int width, int height) |
1273 | { |
1274 | - var result = new DockSurface.with_dock_surface (width, height, this); |
1275 | + var result = new Surface.with_surface (width, height, this); |
1276 | unowned Cairo.Context cr = result.Context; |
1277 | |
1278 | cr.save (); |
1279 | @@ -146,7 +146,7 @@ |
1280 | } |
1281 | |
1282 | /** |
1283 | - * Saves the current dock surface to a {@link Gdk.Pixbuf}. |
1284 | + * Saves the current surface to a {@link Gdk.Pixbuf}. |
1285 | * |
1286 | * @return the {@link Gdk.Pixbuf} |
1287 | */ |
1288 | @@ -162,7 +162,7 @@ |
1289 | * @param extent bounding box of the found mask |
1290 | * @return a new surface containing the mask |
1291 | */ |
1292 | - public DockSurface create_mask (double threshold, out Gdk.Rectangle extent) |
1293 | + public Surface create_mask (double threshold, out Gdk.Rectangle extent) |
1294 | requires (threshold >= 0.0 && threshold <= 1.0) |
1295 | { |
1296 | var surface = new Cairo.ImageSurface (Cairo.Format.ARGB32, Width, Height); |
1297 | @@ -211,7 +211,7 @@ |
1298 | |
1299 | extent = {left, top, right - left, bottom - top}; |
1300 | |
1301 | - return new DockSurface.with_internal (surface); |
1302 | + return new Surface.with_internal (surface); |
1303 | } |
1304 | |
1305 | /** |
1306 | @@ -219,7 +219,7 @@ |
1307 | * |
1308 | * @return the average color of the surface |
1309 | */ |
1310 | - public Drawing.Color average_color () |
1311 | + public Color average_color () |
1312 | { |
1313 | return DrawingService.average_color (Gdk.pixbuf_get_from_surface (Internal, 0, 0, Width, Height)); |
1314 | } |
1315 | |
1316 | === modified file 'lib/Drawing/SurfaceCache.vala' |
1317 | --- lib/Drawing/SurfaceCache.vala 2015-07-30 09:23:44 +0000 |
1318 | +++ lib/Drawing/SurfaceCache.vala 2015-11-03 12:02:25 +0000 |
1319 | @@ -17,9 +17,7 @@ |
1320 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
1321 | // |
1322 | |
1323 | -using Plank.Services; |
1324 | - |
1325 | -namespace Plank.Drawing |
1326 | +namespace Plank |
1327 | { |
1328 | /** |
1329 | * Creates a new surface based on the given information |
1330 | @@ -30,7 +28,7 @@ |
1331 | * @param draw_data_func function which changes the surface |
1332 | * @return the newly created surface or NULL |
1333 | */ |
1334 | - public delegate DockSurface? DrawFunc<G> (int width, int height, DockSurface model, DrawDataFunc<G>? draw_data_func); |
1335 | + public delegate Surface? DrawFunc<G> (int width, int height, Surface model, DrawDataFunc<G>? draw_data_func); |
1336 | |
1337 | /** |
1338 | * Creates a new surface using the given element and information |
1339 | @@ -41,10 +39,10 @@ |
1340 | * @param data the data object used for drawing |
1341 | * @return the newly created surface or NULL |
1342 | */ |
1343 | - public delegate DockSurface? DrawDataFunc<G> (int width, int height, DockSurface model, G? data); |
1344 | + public delegate Surface? DrawDataFunc<G> (int width, int height, Surface model, G? data); |
1345 | |
1346 | /** |
1347 | - * Controls some internal behaviors of a {@link Plank.Drawing.SurfaceCache} |
1348 | + * Controls some internal behaviors of a {@link Plank.SurfaceCache} |
1349 | */ |
1350 | [Flags] |
1351 | public enum SurfaceCacheFlags |
1352 | @@ -120,7 +118,7 @@ |
1353 | public SurfaceCacheFlags flags { get; construct; } |
1354 | |
1355 | Gee.TreeSet<unowned SurfaceInfo> infos; |
1356 | - Gee.HashMap<SurfaceInfo, DockSurface> cache_map; |
1357 | + Gee.HashMap<SurfaceInfo, Surface> cache_map; |
1358 | unowned SurfaceInfo? last_info; |
1359 | Mutex cache_mutex; |
1360 | |
1361 | @@ -135,10 +133,10 @@ |
1362 | { |
1363 | #if HAVE_GEE_0_8 |
1364 | infos = new Gee.TreeSet<unowned SurfaceInfo> ((CompareDataFunc) SurfaceInfo.compare); |
1365 | - cache_map = new Gee.HashMap<SurfaceInfo, DockSurface> ((Gee.HashDataFunc<SurfaceInfo>) SurfaceInfo.hash); |
1366 | + cache_map = new Gee.HashMap<SurfaceInfo, Surface> ((Gee.HashDataFunc<SurfaceInfo>) SurfaceInfo.hash); |
1367 | #else |
1368 | infos = new Gee.TreeSet<unowned SurfaceInfo> ((CompareFunc) SurfaceInfo.compare); |
1369 | - cache_map = new Gee.HashMap<SurfaceInfo, DockSurface> ((HashFunc<SurfaceInfo>) SurfaceInfo.hash); |
1370 | + cache_map = new Gee.HashMap<SurfaceInfo, Surface> ((HashFunc<SurfaceInfo>) SurfaceInfo.hash); |
1371 | #endif |
1372 | last_info = null; |
1373 | |
1374 | @@ -161,14 +159,14 @@ |
1375 | last_info = null; |
1376 | } |
1377 | |
1378 | - public DockSurface? get_surface<G> (int width, int height, DockSurface model, DrawFunc<G> draw_func, DrawDataFunc<G>? draw_data_func) |
1379 | + public Surface? get_surface<G> (int width, int height, Surface model, DrawFunc<G> draw_func, DrawDataFunc<G>? draw_data_func) |
1380 | requires (width >= 0 && height >= 0) |
1381 | { |
1382 | cache_mutex.lock (); |
1383 | |
1384 | unowned SurfaceInfo? info; |
1385 | SurfaceInfo? current_info = null; |
1386 | - DockSurface? surface = null; |
1387 | + Surface? surface = null; |
1388 | bool needs_scaling = false; |
1389 | |
1390 | info = find_match ((uint16) width, (uint16) height, out needs_scaling); |
1391 | |
1392 | === modified file 'lib/Drawing/Theme.vala' |
1393 | --- lib/Drawing/Theme.vala 2015-07-20 09:03:45 +0000 |
1394 | +++ lib/Drawing/Theme.vala 2015-11-03 12:02:25 +0000 |
1395 | @@ -17,9 +17,7 @@ |
1396 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
1397 | // |
1398 | |
1399 | -using Plank.Services; |
1400 | - |
1401 | -namespace Plank.Drawing |
1402 | +namespace Plank |
1403 | { |
1404 | /** |
1405 | * A themed renderer for windows. |
1406 | @@ -117,9 +115,9 @@ |
1407 | /** |
1408 | * Draws a background onto the surface. |
1409 | * |
1410 | - * @param surface the dock surface to draw on |
1411 | + * @param surface the surface to draw on |
1412 | */ |
1413 | - public void draw_background (DockSurface surface) |
1414 | + public void draw_background (Surface surface) |
1415 | { |
1416 | unowned Cairo.Context cr = surface.Context; |
1417 | Cairo.Pattern gradient; |
1418 | |
1419 | === modified file 'lib/Factories/AbstractMain.vala' |
1420 | --- lib/Factories/AbstractMain.vala 2015-11-02 13:42:37 +0000 |
1421 | +++ lib/Factories/AbstractMain.vala 2015-11-03 12:02:25 +0000 |
1422 | @@ -17,11 +17,7 @@ |
1423 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
1424 | // |
1425 | |
1426 | -using Plank.Widgets; |
1427 | -using Plank.Services; |
1428 | -using Plank.Services.Windows; |
1429 | - |
1430 | -namespace Plank.Factories |
1431 | +namespace Plank |
1432 | { |
1433 | /** |
1434 | * The main class for all dock applications. All docks should extend this class. |
1435 | @@ -314,13 +310,13 @@ |
1436 | |
1437 | action = new SimpleAction ("help", null); |
1438 | action.activate.connect (() => { |
1439 | - Services.System.open_uri (help_url); |
1440 | + System.open_uri (help_url); |
1441 | }); |
1442 | add_action (action); |
1443 | |
1444 | action = new SimpleAction ("translate", null); |
1445 | action.activate.connect (() => { |
1446 | - Services.System.open_uri (translate_url); |
1447 | + System.open_uri (translate_url); |
1448 | }); |
1449 | add_action (action); |
1450 | |
1451 | |
1452 | === modified file 'lib/Factories/Factory.vala' |
1453 | --- lib/Factories/Factory.vala 2015-04-27 13:39:02 +0000 |
1454 | +++ lib/Factories/Factory.vala 2015-11-03 12:02:25 +0000 |
1455 | @@ -17,7 +17,7 @@ |
1456 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
1457 | // |
1458 | |
1459 | -namespace Plank.Factories |
1460 | +namespace Plank |
1461 | { |
1462 | /** |
1463 | * The main factory class for the dock. |
1464 | |
1465 | === modified file 'lib/Factories/ItemFactory.vala' |
1466 | --- lib/Factories/ItemFactory.vala 2015-11-02 13:42:37 +0000 |
1467 | +++ lib/Factories/ItemFactory.vala 2015-11-03 12:02:25 +0000 |
1468 | @@ -17,13 +17,10 @@ |
1469 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
1470 | // |
1471 | |
1472 | -using Plank.Items; |
1473 | -using Plank.Services; |
1474 | - |
1475 | -namespace Plank.Factories |
1476 | +namespace Plank |
1477 | { |
1478 | /** |
1479 | - * An item factory. Creates {@link Items.DockItem}s based on .dockitem files. |
1480 | + * An item factory. Creates {@link DockItem}s based on .dockitem files. |
1481 | */ |
1482 | public class ItemFactory : GLib.Object |
1483 | { |
1484 | @@ -94,10 +91,10 @@ |
1485 | public File launchers_dir; |
1486 | |
1487 | /** |
1488 | - * Creates a new {@link Items.DockElement} from a .dockitem. |
1489 | + * Creates a new {@link DockElement} from a .dockitem. |
1490 | * |
1491 | * @param file the {@link GLib.File} of .dockitem file to parse |
1492 | - * @return the new {@link Items.DockElement} created |
1493 | + * @return the new {@link DockElement} created |
1494 | */ |
1495 | public virtual DockElement make_element (GLib.File file) |
1496 | { |
1497 | @@ -105,9 +102,9 @@ |
1498 | } |
1499 | |
1500 | /** |
1501 | - * Creates a new {@link Items.PlankDockItem} for the dock itself. |
1502 | + * Creates a new {@link PlankDockItem} for the dock itself. |
1503 | * |
1504 | - * @return the new {@link Items.PlankDockItem} created |
1505 | + * @return the new {@link PlankDockItem} created |
1506 | */ |
1507 | public virtual DockItem get_item_for_dock () |
1508 | { |
1509 | @@ -115,11 +112,11 @@ |
1510 | } |
1511 | |
1512 | /** |
1513 | - * Creates a new {@link Items.DockElement} for a launcher parsed from a .dockitem. |
1514 | + * Creates a new {@link DockElement} for a launcher parsed from a .dockitem. |
1515 | * |
1516 | * @param file the {@link GLib.File} of .dockitem file that was parsed |
1517 | * @param launcher the launcher name from the .dockitem |
1518 | - * @return the new {@link Items.DockElement} created |
1519 | + * @return the new {@link DockElement} created |
1520 | */ |
1521 | protected DockElement default_make_element (GLib.File file, string launcher) |
1522 | { |
1523 | @@ -143,6 +140,10 @@ |
1524 | unowned string group_name = typeof (DockItemPreferences).name (); |
1525 | if (keyfile.has_group (group_name)) |
1526 | return keyfile.get_string (group_name, "Launcher"); |
1527 | + |
1528 | + // 0.10.1 > 0.10.9/0.11.x |
1529 | + if (keyfile.has_group ("PlankItemsDockItemPreferences")) |
1530 | + return keyfile.get_string ("PlankItemsDockItemPreferences", "Launcher"); |
1531 | } catch (Error e) { |
1532 | warning ("%s (%s)", e.message, file.get_basename ()); |
1533 | } |
1534 | @@ -356,7 +357,7 @@ |
1535 | if (launcher_file.query_exists ()) { |
1536 | var file = new KeyFile (); |
1537 | |
1538 | - file.set_string (typeof (Items.DockItemPreferences).name (), "Launcher", uri); |
1539 | + file.set_string (typeof (DockItemPreferences).name (), "Launcher", uri); |
1540 | |
1541 | try { |
1542 | // find a unique file name, based on the name of the launcher |
1543 | |
1544 | === modified file 'lib/HideManager.vala' |
1545 | --- lib/HideManager.vala 2015-08-19 21:16:03 +0000 |
1546 | +++ lib/HideManager.vala 2015-11-03 12:02:25 +0000 |
1547 | @@ -17,9 +17,6 @@ |
1548 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
1549 | // |
1550 | |
1551 | -using Plank.Services; |
1552 | -using Plank.Widgets; |
1553 | - |
1554 | namespace Plank |
1555 | { |
1556 | /** |
1557 | |
1558 | === modified file 'lib/Items/ApplicationDockItem.vala' |
1559 | --- lib/Items/ApplicationDockItem.vala 2015-11-01 20:41:45 +0000 |
1560 | +++ lib/Items/ApplicationDockItem.vala 2015-11-03 12:02:25 +0000 |
1561 | @@ -17,11 +17,7 @@ |
1562 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
1563 | // |
1564 | |
1565 | -using Plank.Drawing; |
1566 | -using Plank.Services; |
1567 | -using Plank.Services.Windows; |
1568 | - |
1569 | -namespace Plank.Items |
1570 | +namespace Plank |
1571 | { |
1572 | /** |
1573 | * A dock item for applications (with .desktop launchers). |
1574 | @@ -316,40 +312,40 @@ |
1575 | |
1576 | void launch () |
1577 | { |
1578 | - Services.System.launch (File.new_for_uri (Prefs.Launcher)); |
1579 | + System.launch (File.new_for_uri (Prefs.Launcher)); |
1580 | } |
1581 | |
1582 | /** |
1583 | * {@inheritDoc} |
1584 | */ |
1585 | - protected override Animation on_clicked (PopupButton button, Gdk.ModifierType mod, uint32 event_time) |
1586 | + protected override AnimationType on_clicked (PopupButton button, Gdk.ModifierType mod, uint32 event_time) |
1587 | { |
1588 | if (!is_window ()) |
1589 | if (button == PopupButton.MIDDLE |
1590 | || (button == PopupButton.LEFT && (App == null || WindowControl.get_num_windows (App) == 0 |
1591 | || (mod & Gdk.ModifierType.CONTROL_MASK) == Gdk.ModifierType.CONTROL_MASK))) { |
1592 | launch (); |
1593 | - return Animation.BOUNCE; |
1594 | + return AnimationType.BOUNCE; |
1595 | } |
1596 | |
1597 | if (button == PopupButton.LEFT && App != null && WindowControl.get_num_windows (App) > 0) { |
1598 | WindowControl.smart_focus (App, event_time); |
1599 | - return Animation.DARKEN; |
1600 | + return AnimationType.DARKEN; |
1601 | } |
1602 | |
1603 | - return Animation.NONE; |
1604 | + return AnimationType.NONE; |
1605 | } |
1606 | |
1607 | /** |
1608 | * {@inheritDoc} |
1609 | */ |
1610 | - protected override Animation on_scrolled (Gdk.ScrollDirection direction, Gdk.ModifierType mod, uint32 event_time) |
1611 | + protected override AnimationType on_scrolled (Gdk.ScrollDirection direction, Gdk.ModifierType mod, uint32 event_time) |
1612 | { |
1613 | if (App == null || WindowControl.get_num_windows (App) == 0) |
1614 | - return Animation.NONE; |
1615 | + return AnimationType.NONE; |
1616 | |
1617 | if (GLib.get_monotonic_time () - LastScrolled < ITEM_SCROLL_DURATION * 1000) |
1618 | - return Animation.DARKEN; |
1619 | + return AnimationType.DARKEN; |
1620 | |
1621 | LastScrolled = GLib.get_monotonic_time (); |
1622 | |
1623 | @@ -358,7 +354,7 @@ |
1624 | else |
1625 | WindowControl.focus_next (App, event_time); |
1626 | |
1627 | - return Animation.DARKEN; |
1628 | + return AnimationType.DARKEN; |
1629 | } |
1630 | |
1631 | static void combine_strings (ref string[] result, string delimiter, int n, int i) |
1632 | @@ -561,7 +557,7 @@ |
1633 | foreach (var uri in uris) |
1634 | files.add (File.new_for_uri (uri)); |
1635 | |
1636 | - Services.System.launch_with_files (File.new_for_uri (Prefs.Launcher), files.to_array ()); |
1637 | + System.launch_with_files (File.new_for_uri (Prefs.Launcher), files.to_array ()); |
1638 | |
1639 | return true; |
1640 | } |
1641 | |
1642 | === modified file 'lib/Items/ApplicationDockItemProvider.vala' |
1643 | --- lib/Items/ApplicationDockItemProvider.vala 2015-11-02 13:42:37 +0000 |
1644 | +++ lib/Items/ApplicationDockItemProvider.vala 2015-11-03 12:02:25 +0000 |
1645 | @@ -17,11 +17,7 @@ |
1646 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
1647 | // |
1648 | |
1649 | -using Plank.Factories; |
1650 | -using Plank.Services; |
1651 | -using Plank.Services.Windows; |
1652 | - |
1653 | -namespace Plank.Items |
1654 | +namespace Plank |
1655 | { |
1656 | /** |
1657 | * A container and controller class for managing application dock items on a dock. |
1658 | |
1659 | === modified file 'lib/Items/DefaultApplicationDockItemProvider.vala' |
1660 | --- lib/Items/DefaultApplicationDockItemProvider.vala 2015-10-08 17:36:33 +0000 |
1661 | +++ lib/Items/DefaultApplicationDockItemProvider.vala 2015-11-03 12:02:25 +0000 |
1662 | @@ -17,12 +17,7 @@ |
1663 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
1664 | // |
1665 | |
1666 | - |
1667 | -using Plank.Factories; |
1668 | -using Plank.Services; |
1669 | -using Plank.Services.Windows; |
1670 | - |
1671 | -namespace Plank.Items |
1672 | +namespace Plank |
1673 | { |
1674 | /** |
1675 | * The default container and controller class for managing application dock items on a dock. |
1676 | |
1677 | === modified file 'lib/Items/DockContainer.vala' |
1678 | --- lib/Items/DockContainer.vala 2015-09-03 21:03:22 +0000 |
1679 | +++ lib/Items/DockContainer.vala 2015-11-03 12:02:25 +0000 |
1680 | @@ -18,9 +18,7 @@ |
1681 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
1682 | // |
1683 | |
1684 | -using Plank.Services; |
1685 | - |
1686 | -namespace Plank.Items |
1687 | +namespace Plank |
1688 | { |
1689 | /** |
1690 | * A container and controller class for managing dock elements on a dock. |
1691 | |
1692 | === modified file 'lib/Items/DockElement.vala' |
1693 | --- lib/Items/DockElement.vala 2015-08-20 09:30:32 +0000 |
1694 | +++ lib/Items/DockElement.vala 2015-11-03 12:02:25 +0000 |
1695 | @@ -17,9 +17,7 @@ |
1696 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
1697 | // |
1698 | |
1699 | -using Plank.Drawing; |
1700 | - |
1701 | -namespace Plank.Items |
1702 | +namespace Plank |
1703 | { |
1704 | /** |
1705 | * The base class for all dock elements. |
1706 | @@ -63,17 +61,17 @@ |
1707 | /** |
1708 | * The animation to show for the item's last click event. |
1709 | */ |
1710 | - public Animation ClickedAnimation { get; protected set; default = Animation.NONE; } |
1711 | + public AnimationType ClickedAnimation { get; protected set; default = AnimationType.NONE; } |
1712 | |
1713 | /** |
1714 | * The animation to show for the item's last hover event. |
1715 | */ |
1716 | - public Animation HoveredAnimation { get; protected set; default = Animation.NONE; } |
1717 | + public AnimationType HoveredAnimation { get; protected set; default = AnimationType.NONE; } |
1718 | |
1719 | /** |
1720 | * The animation to show for the item's last scroll event. |
1721 | */ |
1722 | - public Animation ScrolledAnimation { get; protected set; default = Animation.NONE; } |
1723 | + public AnimationType ScrolledAnimation { get; protected set; default = AnimationType.NONE; } |
1724 | |
1725 | /** |
1726 | * The time the item was added to the dock. |
1727 | @@ -141,9 +139,9 @@ |
1728 | * @param event_time the timestamp of the event triggering this action |
1729 | * @return which type of animation to trigger |
1730 | */ |
1731 | - protected virtual Animation on_clicked (PopupButton button, Gdk.ModifierType mod, uint32 event_time) |
1732 | + protected virtual AnimationType on_clicked (PopupButton button, Gdk.ModifierType mod, uint32 event_time) |
1733 | { |
1734 | - return Animation.NONE; |
1735 | + return AnimationType.NONE; |
1736 | } |
1737 | |
1738 | /** |
1739 | @@ -160,9 +158,9 @@ |
1740 | * |
1741 | * @return which type of animation to trigger |
1742 | */ |
1743 | - protected virtual Animation on_hovered () |
1744 | + protected virtual AnimationType on_hovered () |
1745 | { |
1746 | - return Animation.LIGHTEN; |
1747 | + return AnimationType.LIGHTEN; |
1748 | } |
1749 | |
1750 | /** |
1751 | @@ -185,10 +183,10 @@ |
1752 | * @param event_time the timestamp of the event triggering this action |
1753 | * @return which type of animation to trigger |
1754 | */ |
1755 | - protected virtual Animation on_scrolled (Gdk.ScrollDirection direction, Gdk.ModifierType mod, uint32 event_time) |
1756 | + protected virtual AnimationType on_scrolled (Gdk.ScrollDirection direction, Gdk.ModifierType mod, uint32 event_time) |
1757 | { |
1758 | LastScrolled = GLib.get_monotonic_time (); |
1759 | - return Animation.NONE; |
1760 | + return AnimationType.NONE; |
1761 | } |
1762 | |
1763 | /** |
1764 | |
1765 | === modified file 'lib/Items/DockItem.vala' |
1766 | --- lib/Items/DockItem.vala 2015-10-07 11:51:01 +0000 |
1767 | +++ lib/Items/DockItem.vala 2015-11-03 12:02:25 +0000 |
1768 | @@ -17,13 +17,13 @@ |
1769 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
1770 | // |
1771 | |
1772 | -using Plank.Drawing; |
1773 | -using Plank.Services; |
1774 | -using Plank.Services.Windows; |
1775 | - |
1776 | -namespace Plank.Items |
1777 | +namespace Plank |
1778 | { |
1779 | /** |
1780 | +<<<<<<< TREE |
1781 | +======= |
1782 | + public delegate Surface DrawItemFunc (DockItem item, Surface source, Surface? target); |
1783 | +>>>>>>> MERGE-SOURCE |
1784 | * The base class for all dock items. |
1785 | */ |
1786 | public abstract class DockItem : DockElement |
1787 | @@ -103,7 +103,7 @@ |
1788 | /** |
1789 | * The average color of this item's icon. |
1790 | */ |
1791 | - public Drawing.Color AverageIconColor { get; protected set; default = Drawing.Color () { red = 0.0, green = 0.0, blue = 0.0, alpha = 0.0 }; } |
1792 | + public Color AverageIconColor { get; protected set; default = Color () { red = 0.0, green = 0.0, blue = 0.0, alpha = 0.0 }; } |
1793 | |
1794 | /** |
1795 | * The filename of the preferences backing file. |
1796 | @@ -126,7 +126,7 @@ |
1797 | |
1798 | SurfaceCache<DockItem> buffer; |
1799 | SurfaceCache<DockItem> background_buffer; |
1800 | - DockSurface? foreground_surface = null; |
1801 | + Surface? foreground_surface = null; |
1802 | |
1803 | FileMonitor? launcher_file_monitor = null; |
1804 | FileMonitor? icon_file_monitor = null; |
1805 | @@ -419,7 +419,7 @@ |
1806 | } |
1807 | |
1808 | /** |
1809 | - * Returns the dock surface for this item. |
1810 | + * Returns the surface for this item. |
1811 | * |
1812 | * It might trigger an internal redraw if the requested size |
1813 | * isn't cached yet. |
1814 | @@ -427,17 +427,17 @@ |
1815 | * @param width width of the icon surface |
1816 | * @param height height of the icon surface |
1817 | * @param model existing surface to use as basis of new surface |
1818 | - * @return the dock surface for this item which may not be changed |
1819 | + * @return the surface for this item which may not be changed |
1820 | */ |
1821 | - public DockSurface get_surface (int width, int height, DockSurface model) |
1822 | + public Surface get_surface (int width, int height, Surface model) |
1823 | { |
1824 | return buffer.get_surface<DockItem> (width, height, model, (DrawFunc<DockItem>) internal_get_surface, null); |
1825 | } |
1826 | |
1827 | [CCode (instance_pos = -1)] |
1828 | - DockSurface internal_get_surface (int width, int height, DockSurface model, DrawDataFunc<DockItem>? draw_data_func) |
1829 | + Surface internal_get_surface (int width, int height, Surface model, DrawDataFunc<DockItem>? draw_data_func) |
1830 | { |
1831 | - var surface = new DockSurface.with_dock_surface (width, height, model); |
1832 | + var surface = new Surface.with_surface (width, height, model); |
1833 | |
1834 | Logger.verbose ("DockItem.draw_icon (width = %i, height = %i)", width, height); |
1835 | draw_icon (surface); |
1836 | @@ -458,13 +458,13 @@ |
1837 | * @param draw_data_func function which creates/changes the background surface |
1838 | * @return the background surface of this item which may not be changed |
1839 | */ |
1840 | - public DockSurface? get_background_surface (int width, int height, DockSurface model, DrawDataFunc<DockItem>? draw_data_func) |
1841 | + public Surface? get_background_surface (int width, int height, Surface model, DrawDataFunc<DockItem>? draw_data_func) |
1842 | { |
1843 | return background_buffer.get_surface<DockItem> (width, height, model, (DrawFunc<DockItem>) internal_get_background_surface, (DrawDataFunc<DockItem>) draw_data_func); |
1844 | } |
1845 | |
1846 | [CCode (instance_pos = -1)] |
1847 | - DockSurface? internal_get_background_surface (int width, int height, DockSurface model, DrawDataFunc<DockItem>? draw_data_func) |
1848 | + Surface? internal_get_background_surface (int width, int height, Surface model, DrawDataFunc<DockItem>? draw_data_func) |
1849 | { |
1850 | if (draw_data_func == null) |
1851 | return null; |
1852 | @@ -483,7 +483,7 @@ |
1853 | * @param draw_data_func function which creates/changes the foreground surface |
1854 | * @return the background surface of this item which may not be changed |
1855 | */ |
1856 | - public DockSurface? get_foreground_surface (int width, int height, DockSurface model, DrawDataFunc<DockItem>? draw_data_func) |
1857 | + public Surface? get_foreground_surface (int width, int height, Surface model, DrawDataFunc<DockItem>? draw_data_func) |
1858 | { |
1859 | if (draw_data_func == null) { |
1860 | foreground_surface = null; |
1861 | @@ -500,7 +500,7 @@ |
1862 | } |
1863 | |
1864 | /** |
1865 | - * Returns a copy of the dock surface for this item. |
1866 | + * Returns a copy of the surface for this item. |
1867 | * |
1868 | * It will trigger an internal redraw if the requested size |
1869 | * isn't matching the cache. |
1870 | @@ -508,9 +508,9 @@ |
1871 | * @param width width of the icon surface |
1872 | * @param height height of the icon surface |
1873 | * @param model existing surface to use as basis of new surface |
1874 | - * @return the copied dock surface for this item |
1875 | + * @return the copied surface for this item |
1876 | */ |
1877 | - public DockSurface get_surface_copy (int width, int height, DockSurface model) |
1878 | + public Surface get_surface_copy (int width, int height, Surface model) |
1879 | { |
1880 | return get_surface (width, height, model).copy (); |
1881 | } |
1882 | @@ -520,7 +520,7 @@ |
1883 | * |
1884 | * @param surface the surface to draw on |
1885 | */ |
1886 | - protected virtual void draw_icon (DockSurface surface) |
1887 | + protected virtual void draw_icon (Surface surface) |
1888 | { |
1889 | Cairo.Surface? icon = null; |
1890 | Gdk.Pixbuf? pbuf = ForcePixbuf; |
1891 | @@ -558,7 +558,7 @@ |
1892 | * |
1893 | * @param surface the surface to draw on |
1894 | */ |
1895 | - protected virtual void draw_icon_fast (DockSurface surface) |
1896 | + protected virtual void draw_icon_fast (Surface surface) |
1897 | { |
1898 | unowned Cairo.Context cr = surface.Context; |
1899 | var width = surface.Width; |
1900 | |
1901 | === modified file 'lib/Items/DockItemPreferences.vala' |
1902 | --- lib/Items/DockItemPreferences.vala 2015-04-27 13:39:02 +0000 |
1903 | +++ lib/Items/DockItemPreferences.vala 2015-11-03 12:02:25 +0000 |
1904 | @@ -17,9 +17,7 @@ |
1905 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
1906 | // |
1907 | |
1908 | -using Plank.Services; |
1909 | - |
1910 | -namespace Plank.Items |
1911 | +namespace Plank |
1912 | { |
1913 | /** |
1914 | * Contains preference keys for a dock item. |
1915 | |
1916 | === modified file 'lib/Items/DockItemProvider.vala' |
1917 | --- lib/Items/DockItemProvider.vala 2015-10-06 18:10:59 +0000 |
1918 | +++ lib/Items/DockItemProvider.vala 2015-11-03 12:02:25 +0000 |
1919 | @@ -17,9 +17,7 @@ |
1920 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
1921 | // |
1922 | |
1923 | -using Plank.Services; |
1924 | - |
1925 | -namespace Plank.Items |
1926 | +namespace Plank |
1927 | { |
1928 | /** |
1929 | * A container and controller class for managing dock items. |
1930 | |
1931 | === modified file 'lib/Items/Enums.vala' |
1932 | --- lib/Items/Enums.vala 2015-05-08 18:03:50 +0000 |
1933 | +++ lib/Items/Enums.vala 2015-11-03 12:02:25 +0000 |
1934 | @@ -17,12 +17,12 @@ |
1935 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
1936 | // |
1937 | |
1938 | -namespace Plank.Items |
1939 | +namespace Plank |
1940 | { |
1941 | /** |
1942 | * What type of animation to perform when an item is or was interacted with. |
1943 | */ |
1944 | - public enum Animation |
1945 | + public enum AnimationType |
1946 | { |
1947 | /** |
1948 | * No animation. |
1949 | |
1950 | === modified file 'lib/Items/FileDockItem.vala' |
1951 | --- lib/Items/FileDockItem.vala 2015-10-07 11:51:01 +0000 |
1952 | +++ lib/Items/FileDockItem.vala 2015-11-03 12:02:25 +0000 |
1953 | @@ -17,10 +17,7 @@ |
1954 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
1955 | // |
1956 | |
1957 | -using Plank.Drawing; |
1958 | -using Plank.Services; |
1959 | - |
1960 | -namespace Plank.Items |
1961 | +namespace Plank |
1962 | { |
1963 | /** |
1964 | * A dock item for files or folders on the dock. |
1965 | @@ -141,7 +138,7 @@ |
1966 | /** |
1967 | * {@inheritDoc} |
1968 | */ |
1969 | - protected override void draw_icon_fast (DockSurface surface) |
1970 | + protected override void draw_icon_fast (Surface surface) |
1971 | { |
1972 | unowned Cairo.Context cr = surface.Context; |
1973 | var width = surface.Width; |
1974 | @@ -175,7 +172,7 @@ |
1975 | /** |
1976 | * {@inheritDoc} |
1977 | */ |
1978 | - protected override void draw_icon (DockSurface surface) |
1979 | + protected override void draw_icon (Surface surface) |
1980 | { |
1981 | if (!is_valid () || !has_default_icon_match ()) { |
1982 | base.draw_icon (surface); |
1983 | @@ -241,28 +238,28 @@ |
1984 | */ |
1985 | public void launch () |
1986 | { |
1987 | - Services.System.open (OwnedFile); |
1988 | - ClickedAnimation = Animation.BOUNCE; |
1989 | + System.open (OwnedFile); |
1990 | + ClickedAnimation = AnimationType.BOUNCE; |
1991 | LastClicked = GLib.get_monotonic_time (); |
1992 | } |
1993 | |
1994 | /** |
1995 | * {@inheritDoc} |
1996 | */ |
1997 | - protected override Animation on_clicked (PopupButton button, Gdk.ModifierType mod, uint32 event_time) |
1998 | + protected override AnimationType on_clicked (PopupButton button, Gdk.ModifierType mod, uint32 event_time) |
1999 | { |
2000 | if (button == PopupButton.MIDDLE) { |
2001 | launch (); |
2002 | - return Animation.BOUNCE; |
2003 | + return AnimationType.BOUNCE; |
2004 | } |
2005 | |
2006 | // this actually only happens if its a file, not a directory |
2007 | if (button == PopupButton.LEFT) { |
2008 | launch (); |
2009 | - return Animation.BOUNCE; |
2010 | + return AnimationType.BOUNCE; |
2011 | } |
2012 | |
2013 | - return Animation.NONE; |
2014 | + return AnimationType.NONE; |
2015 | } |
2016 | |
2017 | /** |
2018 | @@ -295,8 +292,8 @@ |
2019 | ApplicationDockItem.parse_launcher (uri, out icon, out text); |
2020 | item = create_menu_item (text, icon, true); |
2021 | item.activate.connect (() => { |
2022 | - Services.System.launch (file); |
2023 | - ClickedAnimation = Animation.BOUNCE; |
2024 | + System.launch (file); |
2025 | + ClickedAnimation = AnimationType.BOUNCE; |
2026 | LastClicked = GLib.get_monotonic_time (); |
2027 | }); |
2028 | } else { |
2029 | @@ -305,8 +302,8 @@ |
2030 | text = text.replace ("_", "__"); |
2031 | item = create_menu_item (text, icon, true); |
2032 | item.activate.connect (() => { |
2033 | - Services.System.open (file); |
2034 | - ClickedAnimation = Animation.BOUNCE; |
2035 | + System.open (file); |
2036 | + ClickedAnimation = AnimationType.BOUNCE; |
2037 | LastClicked = GLib.get_monotonic_time (); |
2038 | }); |
2039 | } |
2040 | @@ -356,8 +353,8 @@ |
2041 | |
2042 | item = create_menu_item (_("Open Containing _Folder"), "folder"); |
2043 | item.activate.connect (() => { |
2044 | - Services.System.open (OwnedFile.get_parent ()); |
2045 | - ClickedAnimation = Animation.BOUNCE; |
2046 | + System.open (OwnedFile.get_parent ()); |
2047 | + ClickedAnimation = AnimationType.BOUNCE; |
2048 | LastClicked = GLib.get_monotonic_time (); |
2049 | }); |
2050 | items.add (item); |
2051 | |
2052 | === modified file 'lib/Items/PlaceholderDockItem.vala' |
2053 | --- lib/Items/PlaceholderDockItem.vala 2015-05-09 13:27:52 +0000 |
2054 | +++ lib/Items/PlaceholderDockItem.vala 2015-11-03 12:02:25 +0000 |
2055 | @@ -17,7 +17,7 @@ |
2056 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
2057 | // |
2058 | |
2059 | -namespace Plank.Items |
2060 | +namespace Plank |
2061 | { |
2062 | /** |
2063 | * A dock item as a placeholder for the dock itself if nothing was added yet. |
2064 | @@ -41,9 +41,9 @@ |
2065 | /** |
2066 | * {@inheritDoc} |
2067 | */ |
2068 | - protected override Animation on_clicked (PopupButton button, Gdk.ModifierType mod, uint32 event_time) |
2069 | + protected override AnimationType on_clicked (PopupButton button, Gdk.ModifierType mod, uint32 event_time) |
2070 | { |
2071 | - return Animation.NONE; |
2072 | + return AnimationType.NONE; |
2073 | } |
2074 | |
2075 | /** |
2076 | |
2077 | === modified file 'lib/Items/PlankDockItem.vala' |
2078 | --- lib/Items/PlankDockItem.vala 2015-10-07 16:13:57 +0000 |
2079 | +++ lib/Items/PlankDockItem.vala 2015-11-03 12:02:25 +0000 |
2080 | @@ -17,11 +17,7 @@ |
2081 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
2082 | // |
2083 | |
2084 | -using Plank.Factories; |
2085 | -using Plank.Services; |
2086 | -using Plank.Widgets; |
2087 | - |
2088 | -namespace Plank.Items |
2089 | +namespace Plank |
2090 | { |
2091 | /** |
2092 | * A dock item for the dock itself. Has things like about, help, quit etc. |
2093 | @@ -60,11 +56,11 @@ |
2094 | /** |
2095 | * {@inheritDoc} |
2096 | */ |
2097 | - protected override Animation on_clicked (PopupButton button, Gdk.ModifierType mod, uint32 event_time) |
2098 | + protected override AnimationType on_clicked (PopupButton button, Gdk.ModifierType mod, uint32 event_time) |
2099 | { |
2100 | Application.get_default ().activate_action ("preferences", null); |
2101 | |
2102 | - return Animation.DARKEN; |
2103 | + return AnimationType.DARKEN; |
2104 | } |
2105 | |
2106 | /** |
2107 | |
2108 | === modified file 'lib/Items/TransientDockItem.vala' |
2109 | --- lib/Items/TransientDockItem.vala 2015-10-08 19:50:22 +0000 |
2110 | +++ lib/Items/TransientDockItem.vala 2015-11-03 12:02:25 +0000 |
2111 | @@ -17,9 +17,7 @@ |
2112 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
2113 | // |
2114 | |
2115 | -using Plank.Services.Windows; |
2116 | - |
2117 | -namespace Plank.Items |
2118 | +namespace Plank |
2119 | { |
2120 | /** |
2121 | * A dock item for applications which aren't pinned or doesn't have a matched desktop-files. |
2122 | |
2123 | === modified file 'lib/Makefile.am' |
2124 | --- lib/Makefile.am 2015-11-02 13:42:37 +0000 |
2125 | +++ lib/Makefile.am 2015-11-03 12:02:25 +0000 |
2126 | @@ -68,12 +68,12 @@ |
2127 | PositionManager.vala \ |
2128 | DBus/Client.vala \ |
2129 | DBus/Interfaces.vala \ |
2130 | - Drawing/AnimatedRenderer.vala \ |
2131 | Drawing/Color.vala \ |
2132 | Drawing/DrawingService.vala \ |
2133 | - Drawing/DockSurface.vala \ |
2134 | Drawing/DockTheme.vala \ |
2135 | Drawing/Easing.vala \ |
2136 | + Drawing/Renderer.vala \ |
2137 | + Drawing/Surface.vala \ |
2138 | Drawing/SurfaceCache.vala \ |
2139 | Drawing/Theme.vala \ |
2140 | Factories/AbstractMain.vala \ |
2141 | |
2142 | === modified file 'lib/PositionManager.vala' |
2143 | --- lib/PositionManager.vala 2015-11-02 13:42:37 +0000 |
2144 | +++ lib/PositionManager.vala 2015-11-03 12:02:25 +0000 |
2145 | @@ -17,11 +17,6 @@ |
2146 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
2147 | // |
2148 | |
2149 | -using Plank.Items; |
2150 | -using Plank.Drawing; |
2151 | -using Plank.Services; |
2152 | -using Plank.Services.Windows; |
2153 | - |
2154 | namespace Plank |
2155 | { |
2156 | /** |
2157 | |
2158 | === modified file 'lib/Services/Logger.vala' |
2159 | --- lib/Services/Logger.vala 2015-06-08 12:10:47 +0000 |
2160 | +++ lib/Services/Logger.vala 2015-11-03 12:02:25 +0000 |
2161 | @@ -18,7 +18,7 @@ |
2162 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
2163 | // |
2164 | |
2165 | -namespace Plank.Services |
2166 | +namespace Plank |
2167 | { |
2168 | const string[] LOG_LEVEL_TO_STRING = { |
2169 | "VERBOSE", |
2170 | |
2171 | === modified file 'lib/Services/Matcher.vala' |
2172 | --- lib/Services/Matcher.vala 2015-04-27 13:39:02 +0000 |
2173 | +++ lib/Services/Matcher.vala 2015-11-03 12:02:25 +0000 |
2174 | @@ -17,7 +17,7 @@ |
2175 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
2176 | // |
2177 | |
2178 | -namespace Plank.Services.Windows |
2179 | +namespace Plank |
2180 | { |
2181 | /** |
2182 | * Wrapper for Bamf.Matcher |
2183 | |
2184 | === modified file 'lib/Services/Paths.vala' |
2185 | --- lib/Services/Paths.vala 2015-04-27 13:39:02 +0000 |
2186 | +++ lib/Services/Paths.vala 2015-11-03 12:02:25 +0000 |
2187 | @@ -17,7 +17,7 @@ |
2188 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
2189 | // |
2190 | |
2191 | -namespace Plank.Services |
2192 | +namespace Plank |
2193 | { |
2194 | /** |
2195 | * A wrapper class that gives static instances of {@link GLib.File} |
2196 | |
2197 | === modified file 'lib/Services/Preferences.vala' |
2198 | --- lib/Services/Preferences.vala 2015-10-07 12:05:46 +0000 |
2199 | +++ lib/Services/Preferences.vala 2015-11-03 12:02:25 +0000 |
2200 | @@ -17,30 +17,28 @@ |
2201 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
2202 | // |
2203 | |
2204 | -using Plank.Drawing; |
2205 | - |
2206 | -namespace Plank.Services |
2207 | +namespace Plank |
2208 | { |
2209 | /** |
2210 | * This interface is used by objects that need to be serialized in a Preferences. |
2211 | * The object must have a string representation and provide these methods to |
2212 | * translate between the string and object representations. |
2213 | */ |
2214 | - public interface PrefsSerializable : GLib.Object |
2215 | + public interface Serializable : GLib.Object |
2216 | { |
2217 | /** |
2218 | * Serializes the object into a string representation. |
2219 | * |
2220 | * @return the string representation of the object |
2221 | */ |
2222 | - public abstract string prefs_serialize (); |
2223 | + public abstract string serialize (); |
2224 | |
2225 | /** |
2226 | * De-serializes the object from a string representation. |
2227 | * |
2228 | * @param s the string representation of the object |
2229 | */ |
2230 | - public abstract void prefs_deserialize (string s); |
2231 | + public abstract void deserialize (string s); |
2232 | } |
2233 | |
2234 | /** |
2235 | @@ -51,6 +49,14 @@ |
2236 | */ |
2237 | public abstract class Preferences : GLib.Object |
2238 | { |
2239 | + // Transition old group-names to new ones to preserve existing settings and keep themes working |
2240 | + static string[,] TRANSITION_MAP = { |
2241 | + // 0.10.1 > 0.10.9/0.11.x |
2242 | + {"PlankItemsDockItemPreferences", "PlankDockItemPreferences"}, |
2243 | + {"PlankDrawingTheme", "PlankTheme"}, |
2244 | + {"PlankDrawingDockTheme", "PlankDockTheme"} |
2245 | + }; |
2246 | + |
2247 | /** |
2248 | * This signal indicates that the backing file for this preferences was deleted. |
2249 | */ |
2250 | @@ -353,6 +359,16 @@ |
2251 | foreach (var prop in get_class ().list_properties ()) { |
2252 | unowned string group_name = prop.owner_type.name (); |
2253 | |
2254 | + if (!file.has_group (group_name)) { |
2255 | + // Accept and handle old preferences files |
2256 | + for (var i = 0; i < 3; i++) |
2257 | + if (TRANSITION_MAP[i,1] == group_name) { |
2258 | + group_name = TRANSITION_MAP[i,0]; |
2259 | + missing_keys = true; |
2260 | + break; |
2261 | + } |
2262 | + } |
2263 | + |
2264 | if (!file.has_group (group_name) || !file.has_key (group_name, prop.name)) { |
2265 | warning ("Missing key '%s' for group '%s' in preferences file '%s' - using default value", prop.name, group_name, backing_file.get_path () ?? ""); |
2266 | missing_keys = true; |
2267 | @@ -404,21 +420,21 @@ |
2268 | if (old_val == new_val) |
2269 | continue; |
2270 | @set (prop.name, new_val); |
2271 | - } else if (type.is_a (typeof (Drawing.Color)) || type.is_a (typeof (Gdk.RGBA))) { |
2272 | + } else if (type.is_a (typeof (Color)) || type.is_a (typeof (Gdk.RGBA))) { |
2273 | var val = Value (type); |
2274 | get_property (prop.name, ref val); |
2275 | - Drawing.Color* old_val = val.get_boxed (); |
2276 | + Color* old_val = val.get_boxed (); |
2277 | var old_val_string = old_val.to_prefs_string (); |
2278 | var new_val_string = file.get_string (group_name, prop.name); |
2279 | if (old_val_string == new_val_string) |
2280 | continue; |
2281 | - var new_val = Drawing.Color.from_prefs_string (new_val_string); |
2282 | + var new_val = Color.from_prefs_string (new_val_string); |
2283 | val.set_boxed (&new_val); |
2284 | set_property (prop.name, val); |
2285 | - } else if (type.is_a (typeof (PrefsSerializable))) { |
2286 | - PrefsSerializable val; |
2287 | + } else if (type.is_a (typeof (Serializable))) { |
2288 | + Serializable val; |
2289 | @get (prop.name, out val); |
2290 | - val.prefs_deserialize (file.get_string (group_name, prop.name)); |
2291 | + val.deserialize (file.get_string (group_name, prop.name)); |
2292 | continue; |
2293 | } else { |
2294 | debug ("Unsupported preferences type '%s' for property '%s' in file '%s'", type.name (), prop.name, backing_file.get_path () ?? ""); |
2295 | @@ -499,15 +515,15 @@ |
2296 | int new_val; |
2297 | @get (prop.name, out new_val); |
2298 | file.set_integer (group_name, prop.name, new_val); |
2299 | - } else if (type.is_a (typeof (Drawing.Color)) || type.is_a (typeof (Gdk.RGBA))) { |
2300 | + } else if (type.is_a (typeof (Color)) || type.is_a (typeof (Gdk.RGBA))) { |
2301 | var val = Value (type); |
2302 | get_property (prop.name, ref val); |
2303 | - Drawing.Color* color = val.get_boxed (); |
2304 | + Color* color = val.get_boxed (); |
2305 | file.set_string (group_name, prop.name, (color.to_prefs_string ())); |
2306 | - } else if (type.is_a (typeof (PrefsSerializable))) { |
2307 | + } else if (type.is_a (typeof (Serializable))) { |
2308 | var val = Value (type); |
2309 | get_property (prop.name, ref val); |
2310 | - file.set_string (group_name, prop.name, (val.get_object () as PrefsSerializable).prefs_serialize ()); |
2311 | + file.set_string (group_name, prop.name, ((Serializable) val.get_object ()).serialize ()); |
2312 | } else { |
2313 | debug ("Unsupported preferences type '%s' for property '%s' in file '%s'", type.name (), prop.name, backing_file.get_path () ?? ""); |
2314 | continue; |
2315 | |
2316 | === modified file 'lib/Services/Settings.vala' |
2317 | --- lib/Services/Settings.vala 2015-11-02 13:42:37 +0000 |
2318 | +++ lib/Services/Settings.vala 2015-11-03 12:02:25 +0000 |
2319 | @@ -15,7 +15,7 @@ |
2320 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
2321 | // |
2322 | |
2323 | -namespace Plank.Services |
2324 | +namespace Plank |
2325 | { |
2326 | /** |
2327 | * The base class for gsettings-based configuration classes. Defined properties will be bound |
2328 | |
2329 | === modified file 'lib/Services/System.vala' |
2330 | --- lib/Services/System.vala 2015-04-27 13:39:02 +0000 |
2331 | +++ lib/Services/System.vala 2015-11-03 12:02:25 +0000 |
2332 | @@ -17,7 +17,7 @@ |
2333 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
2334 | // |
2335 | |
2336 | -namespace Plank.Services |
2337 | +namespace Plank |
2338 | { |
2339 | /** |
2340 | * A utility class for launching applications and opening files/URIs. |
2341 | |
2342 | === modified file 'lib/Services/WindowControl.vala' |
2343 | --- lib/Services/WindowControl.vala 2015-07-30 09:23:44 +0000 |
2344 | +++ lib/Services/WindowControl.vala 2015-11-03 12:02:25 +0000 |
2345 | @@ -17,7 +17,7 @@ |
2346 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
2347 | // |
2348 | |
2349 | -namespace Plank.Services.Windows |
2350 | +namespace Plank |
2351 | { |
2352 | public enum Struts |
2353 | { |
2354 | |
2355 | === modified file 'lib/Services/Worker.vala' |
2356 | --- lib/Services/Worker.vala 2015-06-08 21:31:17 +0000 |
2357 | +++ lib/Services/Worker.vala 2015-11-03 12:02:25 +0000 |
2358 | @@ -17,7 +17,7 @@ |
2359 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
2360 | // |
2361 | |
2362 | -namespace Plank.Services |
2363 | +namespace Plank |
2364 | { |
2365 | public enum TaskPriority { |
2366 | LOW, |
2367 | |
2368 | === modified file 'lib/Version.vala.in' |
2369 | --- lib/Version.vala.in 2015-04-27 13:39:02 +0000 |
2370 | +++ lib/Version.vala.in 2015-11-03 12:02:25 +0000 |
2371 | @@ -20,105 +20,98 @@ |
2372 | namespace Plank |
2373 | { |
2374 | /** |
2375 | - * Some constants and functions to determine and check the version |
2376 | - * of the plank library. |
2377 | - */ |
2378 | - namespace Version |
2379 | + * Like get_major_version, but from the headers used at application compile time, |
2380 | + * rather than from the library linked against at application run time |
2381 | + */ |
2382 | + public const int MAJOR_VERSION = @PLANK_MAJOR_VERSION@; |
2383 | + /** |
2384 | + * Like get_minor_version, but from the headers used at application compile time, |
2385 | + * rather than from the library linked against at application run time |
2386 | + */ |
2387 | + public const int MINOR_VERSION = @PLANK_MINOR_VERSION@; |
2388 | + /** |
2389 | + * Like get_micro_version, but from the headers used at application compile time, |
2390 | + * rather than from the library linked against at application run time |
2391 | + */ |
2392 | + public const int MICRO_VERSION = @PLANK_MICRO_VERSION@; |
2393 | + /** |
2394 | + * Like get_nano_version, but from the headers used at application compile time, |
2395 | + * rather than from the library linked against at application run time |
2396 | + */ |
2397 | + public const int NANO_VERSION = @PLANK_NANO_VERSION@; |
2398 | + |
2399 | + /** |
2400 | + * Returns the major version number of the plank library. |
2401 | + * |
2402 | + * This function is in the library, so it represents the GTK+ |
2403 | + * library your code is are running against. |
2404 | + * |
2405 | + * @return the major version number of the plank library |
2406 | + */ |
2407 | + public uint get_major_version () { |
2408 | + return Build.VERSION_MAJOR; |
2409 | + } |
2410 | + |
2411 | + /** |
2412 | + * Returns the minor version number of the plank library. |
2413 | + * |
2414 | + * This function is in the library, so it represents the plank |
2415 | + * library your code is are running against. |
2416 | + * |
2417 | + * @return the minor version number of the plank library |
2418 | + */ |
2419 | + public uint get_minor_version () { |
2420 | + return Build.VERSION_MINOR; |
2421 | + } |
2422 | + |
2423 | + /** |
2424 | + * Returns the micro version number of the plank library. |
2425 | + * |
2426 | + * This function is in the library, so it represents the plank |
2427 | + * library your code is are running against. |
2428 | + * |
2429 | + * @return the micro version number of the plank library |
2430 | + */ |
2431 | + public uint get_micro_version () { |
2432 | + return Build.VERSION_MICRO; |
2433 | + } |
2434 | + |
2435 | + /** |
2436 | + * Returns the nano version number of the plank library. |
2437 | + * |
2438 | + * This function is in the library, so it represents the plank |
2439 | + * library your code is are running against. |
2440 | + * |
2441 | + * @return the nano version number of the plank library |
2442 | + */ |
2443 | + public uint get_nano_version () { |
2444 | + return Build.VERSION_NANO; |
2445 | + } |
2446 | + |
2447 | + /** |
2448 | + * Checks that the plank library in use is compatible with the given version. |
2449 | + * |
2450 | + * This function is in the library, so it represents the plank |
2451 | + * library your code is are running against. |
2452 | + * |
2453 | + * @param required_major the required major version |
2454 | + * @param required_minor the required minor version |
2455 | + * @param required_micro the required micro version |
2456 | + * @return null if the plank library is compatible with the given version, |
2457 | + * or a string describing the version mismatch. |
2458 | + */ |
2459 | + public unowned string? check_version (uint required_major, uint required_minor, uint required_micro) |
2460 | { |
2461 | - /** |
2462 | - * Like get_major_version, but from the headers used at application compile time, |
2463 | - * rather than from the library linked against at application run time |
2464 | - */ |
2465 | - public const int MAJOR = @PLANK_MAJOR_VERSION@; |
2466 | - /** |
2467 | - * Like get_minor_version, but from the headers used at application compile time, |
2468 | - * rather than from the library linked against at application run time |
2469 | - */ |
2470 | - public const int MINOR = @PLANK_MINOR_VERSION@; |
2471 | - /** |
2472 | - * Like get_micro_version, but from the headers used at application compile time, |
2473 | - * rather than from the library linked against at application run time |
2474 | - */ |
2475 | - public const int MICRO = @PLANK_MICRO_VERSION@; |
2476 | - /** |
2477 | - * Like get_nano_version, but from the headers used at application compile time, |
2478 | - * rather than from the library linked against at application run time |
2479 | - */ |
2480 | - public const int NANO = @PLANK_NANO_VERSION@; |
2481 | - |
2482 | - /** |
2483 | - * Returns the major version number of the plank library. |
2484 | - * |
2485 | - * This function is in the library, so it represents the GTK+ |
2486 | - * library your code is are running against. |
2487 | - * |
2488 | - * @return the major version number of the plank library |
2489 | - */ |
2490 | - public uint get_major_version () { |
2491 | - return Build.VERSION_MAJOR; |
2492 | - } |
2493 | - |
2494 | - /** |
2495 | - * Returns the minor version number of the plank library. |
2496 | - * |
2497 | - * This function is in the library, so it represents the plank |
2498 | - * library your code is are running against. |
2499 | - * |
2500 | - * @return the minor version number of the plank library |
2501 | - */ |
2502 | - public uint get_minor_version () { |
2503 | - return Build.VERSION_MINOR; |
2504 | - } |
2505 | - |
2506 | - /** |
2507 | - * Returns the micro version number of the plank library. |
2508 | - * |
2509 | - * This function is in the library, so it represents the plank |
2510 | - * library your code is are running against. |
2511 | - * |
2512 | - * @return the micro version number of the plank library |
2513 | - */ |
2514 | - public uint get_micro_version () { |
2515 | - return Build.VERSION_MICRO; |
2516 | - } |
2517 | - |
2518 | - /** |
2519 | - * Returns the nano version number of the plank library. |
2520 | - * |
2521 | - * This function is in the library, so it represents the plank |
2522 | - * library your code is are running against. |
2523 | - * |
2524 | - * @return the nano version number of the plank library |
2525 | - */ |
2526 | - public uint get_nano_version () { |
2527 | - return Build.VERSION_NANO; |
2528 | - } |
2529 | - |
2530 | - /** |
2531 | - * Checks that the plank library in use is compatible with the given version. |
2532 | - * |
2533 | - * This function is in the library, so it represents the plank |
2534 | - * library your code is are running against. |
2535 | - * |
2536 | - * @param required_major the required major version |
2537 | - * @param required_minor the required minor version |
2538 | - * @param required_micro the required micro version |
2539 | - * @return null if the plank library is compatible with the given version, |
2540 | - * or a string describing the version mismatch. |
2541 | - */ |
2542 | - public unowned string? check (uint required_major, uint required_minor, uint required_micro) |
2543 | - { |
2544 | - uint effective_micro = 100 * Build.VERSION_MINOR + Build.VERSION_MICRO; |
2545 | - uint required_effective_micro = 100 * required_minor + required_micro; |
2546 | + uint effective_micro = 100 * Build.VERSION_MINOR + Build.VERSION_MICRO; |
2547 | + uint required_effective_micro = 100 * required_minor + required_micro; |
2548 | |
2549 | - if (required_major > Build.VERSION_MAJOR) |
2550 | - return "plank version too old (major mismatch)"; |
2551 | - |
2552 | - if (required_effective_micro > effective_micro) |
2553 | - return "plank version too old (micro mismatch)"; |
2554 | - |
2555 | - return null; |
2556 | - } |
2557 | + if (required_major > Build.VERSION_MAJOR) |
2558 | + return "plank version too old (major mismatch)"; |
2559 | + |
2560 | + if (required_effective_micro > effective_micro) |
2561 | + return "plank version too old (micro mismatch)"; |
2562 | + |
2563 | + return null; |
2564 | } |
2565 | } |
2566 | |
2567 | |
2568 | === modified file 'lib/Widgets/CompositedWindow.vala' |
2569 | --- lib/Widgets/CompositedWindow.vala 2015-04-28 11:05:27 +0000 |
2570 | +++ lib/Widgets/CompositedWindow.vala 2015-11-03 12:02:25 +0000 |
2571 | @@ -17,7 +17,7 @@ |
2572 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
2573 | // |
2574 | |
2575 | -namespace Plank.Widgets |
2576 | +namespace Plank |
2577 | { |
2578 | /** |
2579 | * A {@link Gtk.Window} with compositing support enabled. |
2580 | |
2581 | === modified file 'lib/Widgets/DockWindow.vala' |
2582 | --- lib/Widgets/DockWindow.vala 2015-08-23 15:14:48 +0000 |
2583 | +++ lib/Widgets/DockWindow.vala 2015-11-03 12:02:25 +0000 |
2584 | @@ -17,12 +17,7 @@ |
2585 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
2586 | // |
2587 | |
2588 | -using Plank.Factories; |
2589 | -using Plank.Items; |
2590 | -using Plank.Services; |
2591 | -using Plank.Services.Windows; |
2592 | - |
2593 | -namespace Plank.Widgets |
2594 | +namespace Plank |
2595 | { |
2596 | /** |
2597 | * The main window for all docks. |
2598 | @@ -641,13 +636,13 @@ |
2599 | |
2600 | menu_item = new Gtk.MenuItem.with_mnemonic ("Open config folder"); |
2601 | menu_item.activate.connect (() => { |
2602 | - Services.System.open (controller.config_folder); |
2603 | + System.open (controller.config_folder); |
2604 | }); |
2605 | debug_items.add (menu_item); |
2606 | |
2607 | menu_item = new Gtk.MenuItem.with_mnemonic ("Open current theme file"); |
2608 | menu_item.activate.connect (() => { |
2609 | - Services.System.open (controller.renderer.theme.get_backing_file ()); |
2610 | + System.open (controller.renderer.theme.get_backing_file ()); |
2611 | }); |
2612 | debug_items.add (menu_item); |
2613 | |
2614 | @@ -674,14 +669,14 @@ |
2615 | |
2616 | menu_item = new Gtk.MenuItem.with_mnemonic ("Open dockitem file"); |
2617 | menu_item.activate.connect (() => { |
2618 | - Services.System.open (dock_item_file); |
2619 | + System.open (dock_item_file); |
2620 | }); |
2621 | menu_item.sensitive = (dock_item_file != null && dock_item_file.query_exists ()); |
2622 | debug_items.add (menu_item); |
2623 | |
2624 | menu_item = new Gtk.MenuItem.with_mnemonic ("Open launcher file"); |
2625 | menu_item.activate.connect (() => { |
2626 | - Services.System.open (File.new_for_uri (item.Launcher)); |
2627 | + System.open (File.new_for_uri (item.Launcher)); |
2628 | }); |
2629 | menu_item.sensitive = (item.Launcher != ""); |
2630 | debug_items.add (menu_item); |
2631 | |
2632 | === modified file 'lib/Widgets/HoverWindow.vala' |
2633 | --- lib/Widgets/HoverWindow.vala 2015-09-10 14:58:38 +0000 |
2634 | +++ lib/Widgets/HoverWindow.vala 2015-11-03 12:02:25 +0000 |
2635 | @@ -17,7 +17,7 @@ |
2636 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
2637 | // |
2638 | |
2639 | -namespace Plank.Widgets |
2640 | +namespace Plank |
2641 | { |
2642 | /** |
2643 | * A hover window that shows labels for dock items. |
2644 | |
2645 | === modified file 'lib/Widgets/PoofWindow.vala' |
2646 | --- lib/Widgets/PoofWindow.vala 2015-07-30 09:23:44 +0000 |
2647 | +++ lib/Widgets/PoofWindow.vala 2015-11-03 12:02:25 +0000 |
2648 | @@ -17,9 +17,7 @@ |
2649 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
2650 | // |
2651 | |
2652 | -using Plank.Services; |
2653 | - |
2654 | -namespace Plank.Widgets |
2655 | +namespace Plank |
2656 | { |
2657 | /** |
2658 | * An animated window that draws a 'poof' animation. |
2659 | |
2660 | === modified file 'lib/Widgets/PreferencesWindow.vala' |
2661 | --- lib/Widgets/PreferencesWindow.vala 2015-06-27 13:37:11 +0000 |
2662 | +++ lib/Widgets/PreferencesWindow.vala 2015-11-03 12:02:25 +0000 |
2663 | @@ -17,12 +17,7 @@ |
2664 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
2665 | // |
2666 | |
2667 | -using Plank.Items; |
2668 | -using Plank.Drawing; |
2669 | -using Plank.Services; |
2670 | -using Plank.Services.Windows; |
2671 | - |
2672 | -namespace Plank.Widgets |
2673 | +namespace Plank |
2674 | { |
2675 | public class PreferencesWindow : Gtk.Window |
2676 | { |
2677 | @@ -191,7 +186,7 @@ |
2678 | break; |
2679 | case "Theme": |
2680 | var pos = 0; |
2681 | - foreach (unowned string theme in Plank.Drawing.Theme.get_theme_list ()) { |
2682 | + foreach (unowned string theme in Plank.Theme.get_theme_list ()) { |
2683 | if (theme == prefs.Theme) |
2684 | cb_theme.set_active (pos); |
2685 | pos++; |
2686 | @@ -374,7 +369,7 @@ |
2687 | void init_dock_tab () |
2688 | { |
2689 | var pos = 0; |
2690 | - foreach (unowned string theme in Plank.Drawing.Theme.get_theme_list ()) { |
2691 | + foreach (unowned string theme in Plank.Theme.get_theme_list ()) { |
2692 | cb_theme.append ("%i".printf (pos), theme); |
2693 | if (theme == prefs.Theme) |
2694 | cb_theme.set_active (pos); |
2695 | |
2696 | === modified file 'lib/Widgets/TitledSeparatorMenuItem.vala' |
2697 | --- lib/Widgets/TitledSeparatorMenuItem.vala 2015-01-21 12:26:03 +0000 |
2698 | +++ lib/Widgets/TitledSeparatorMenuItem.vala 2015-11-03 12:02:25 +0000 |
2699 | @@ -20,7 +20,7 @@ |
2700 | // Modified by Robert Dyer, Rico Tzschichholz |
2701 | // |
2702 | |
2703 | -namespace Plank.Widgets |
2704 | +namespace Plank |
2705 | { |
2706 | /** |
2707 | * A {@link Gtk.SeparatorMenuItem} with a title on it. |
2708 | |
2709 | === modified file 'lib/libplank.symbols' |
2710 | --- lib/libplank.symbols 2015-11-02 18:32:58 +0000 |
2711 | +++ lib/libplank.symbols 2015-11-03 12:02:25 +0000 |
2712 | @@ -1,3 +1,95 @@ |
2713 | +plank_abstract_main_construct |
2714 | +plank_abstract_main_create_actions |
2715 | +plank_abstract_main_create_controller |
2716 | +plank_abstract_main_get_about_artists |
2717 | +plank_abstract_main_get_about_authors |
2718 | +plank_abstract_main_get_about_documenters |
2719 | +plank_abstract_main_get_about_license_type |
2720 | +plank_abstract_main_get_about_translators |
2721 | +plank_abstract_main_get_app_copyright |
2722 | +plank_abstract_main_get_app_dbus |
2723 | +plank_abstract_main_get_app_icon |
2724 | +plank_abstract_main_get_app_launcher |
2725 | +plank_abstract_main_get_build_data_dir |
2726 | +plank_abstract_main_get_build_pkg_data_dir |
2727 | +plank_abstract_main_get_build_release_name |
2728 | +plank_abstract_main_get_build_version |
2729 | +plank_abstract_main_get_build_version_info |
2730 | +plank_abstract_main_get_dock_name |
2731 | +plank_abstract_main_get_exec_name |
2732 | +plank_abstract_main_get_help_url |
2733 | +plank_abstract_main_get_main_url |
2734 | +plank_abstract_main_get_program_name |
2735 | +plank_abstract_main_get_translate_url |
2736 | +plank_abstract_main_get_type |
2737 | +plank_abstract_main_initialize |
2738 | +plank_abstract_main_is_launcher_for_dock |
2739 | +plank_abstract_main_set_about_artists |
2740 | +plank_abstract_main_set_about_authors |
2741 | +plank_abstract_main_set_about_documenters |
2742 | +plank_abstract_main_set_about_license_type |
2743 | +plank_abstract_main_set_about_translators |
2744 | +plank_abstract_main_set_dock_name |
2745 | +plank_abstract_main_set_help_url |
2746 | +plank_abstract_main_set_main_url |
2747 | +plank_abstract_main_set_translate_url |
2748 | +plank_animation_mode_get_type |
2749 | +plank_animation_type_get_type |
2750 | +plank_application_dock_item_construct |
2751 | +plank_application_dock_item_construct_with_dockitem_file |
2752 | +plank_application_dock_item_construct_with_dockitem_filename |
2753 | +plank_application_dock_item_get_type |
2754 | +plank_application_dock_item_get_unity_application_uri |
2755 | +plank_application_dock_item_get_unity_dbusname |
2756 | +plank_application_dock_item_has_unity_info |
2757 | +plank_application_dock_item_is_running |
2758 | +plank_application_dock_item_is_window |
2759 | +plank_application_dock_item_new |
2760 | +plank_application_dock_item_new_with_dockitem_file |
2761 | +plank_application_dock_item_new_with_dockitem_filename |
2762 | +plank_application_dock_item_parse_launcher |
2763 | +plank_application_dock_item_provider_acquire_unity_dbus |
2764 | +plank_application_dock_item_provider_app_opened |
2765 | +plank_application_dock_item_provider_construct |
2766 | +plank_application_dock_item_provider_delay_items_monitor |
2767 | +plank_application_dock_item_provider_get_item_list_string |
2768 | +plank_application_dock_item_provider_get_LaunchersDir |
2769 | +plank_application_dock_item_provider_get_type |
2770 | +plank_application_dock_item_provider_item_for_application |
2771 | +plank_application_dock_item_provider_new |
2772 | +plank_application_dock_item_provider_release_unity_dbus |
2773 | +plank_application_dock_item_provider_resume_items_monitor |
2774 | +plank_application_dock_item_set_urgent |
2775 | +plank_application_dock_item_unity_reset |
2776 | +plank_application_dock_item_unity_update |
2777 | +plank_check_version |
2778 | +plank_color_add_hue |
2779 | +plank_color_brighten_val |
2780 | +plank_color_darken_by_sat |
2781 | +plank_color_darken_val |
2782 | +plank_color_dup |
2783 | +plank_color_free |
2784 | +plank_color_from_prefs_string |
2785 | +plank_color_get_hsv |
2786 | +plank_color_get_hue |
2787 | +plank_color_get_sat |
2788 | +plank_color_get_type |
2789 | +plank_color_get_val |
2790 | +plank_color_multiply_sat |
2791 | +plank_color_set_hsv |
2792 | +plank_color_set_hue |
2793 | +plank_color_set_max_sat |
2794 | +plank_color_set_max_val |
2795 | +plank_color_set_min_sat |
2796 | +plank_color_set_min_val |
2797 | +plank_color_set_sat |
2798 | +plank_color_set_val |
2799 | +plank_color_to_prefs_string |
2800 | +plank_composited_window_construct |
2801 | +plank_composited_window_construct_with_type |
2802 | +plank_composited_window_get_type |
2803 | +plank_composited_window_new |
2804 | +plank_composited_window_new_with_type |
2805 | plank_dbus_client_add_item |
2806 | plank_dbus_client_get_instance |
2807 | plank_dbus_client_get_is_connected |
2808 | @@ -9,6 +101,27 @@ |
2809 | plank_dbus_manager_construct |
2810 | plank_dbus_manager_get_type |
2811 | plank_dbus_manager_new |
2812 | +plank_default_application_dock_item_provider_construct |
2813 | +plank_default_application_dock_item_provider_get_Prefs |
2814 | +plank_default_application_dock_item_provider_get_type |
2815 | +plank_default_application_dock_item_provider_new |
2816 | +plank_default_application_dock_item_provider_pin_item |
2817 | +plank_dock_container_add |
2818 | +plank_dock_container_add_all |
2819 | +plank_dock_container_connect_element |
2820 | +plank_dock_container_construct |
2821 | +plank_dock_container_disconnect_element |
2822 | +plank_dock_container_get_Elements |
2823 | +plank_dock_container_get_type |
2824 | +plank_dock_container_get_VisibleElements |
2825 | +plank_dock_container_move_element |
2826 | +plank_dock_container_move_to |
2827 | +plank_dock_container_prepare |
2828 | +plank_dock_container_prepend |
2829 | +plank_dock_container_remove |
2830 | +plank_dock_container_remove_all |
2831 | +plank_dock_container_replace |
2832 | +plank_dock_container_update_visible_elements |
2833 | plank_dock_controller_add_default_provider |
2834 | plank_dock_controller_construct |
2835 | plank_dock_controller_get_config_folder |
2836 | @@ -30,6 +143,115 @@ |
2837 | plank_dock_controller_set_position_manager |
2838 | plank_dock_controller_set_renderer |
2839 | plank_dock_controller_set_window |
2840 | +plank_dock_element_accept_drop |
2841 | +plank_dock_element_as_uri |
2842 | +plank_dock_element_can_accept_drop |
2843 | +plank_dock_element_can_be_removed |
2844 | +plank_dock_element_clicked |
2845 | +plank_dock_element_construct |
2846 | +plank_dock_element_create_menu_item |
2847 | +plank_dock_element_create_menu_item_with_pixbuf |
2848 | +plank_dock_element_get_AddTime |
2849 | +plank_dock_element_get_Button |
2850 | +plank_dock_element_get_ClickedAnimation |
2851 | +plank_dock_element_get_Container |
2852 | +plank_dock_element_get_dock |
2853 | +plank_dock_element_get_HoveredAnimation |
2854 | +plank_dock_element_get_IsAttached |
2855 | +plank_dock_element_get_IsVisible |
2856 | +plank_dock_element_get_LastActive |
2857 | +plank_dock_element_get_LastClicked |
2858 | +plank_dock_element_get_LastHovered |
2859 | +plank_dock_element_get_LastMove |
2860 | +plank_dock_element_get_LastScrolled |
2861 | +plank_dock_element_get_LastUrgent |
2862 | +plank_dock_element_get_LastValid |
2863 | +plank_dock_element_get_menu_items |
2864 | +plank_dock_element_get_RemoveTime |
2865 | +plank_dock_element_get_ScrolledAnimation |
2866 | +plank_dock_element_get_Text |
2867 | +plank_dock_element_get_type |
2868 | +plank_dock_element_hovered |
2869 | +plank_dock_element_on_clicked |
2870 | +plank_dock_element_on_hovered |
2871 | +plank_dock_element_on_scrolled |
2872 | +plank_dock_element_reset_buffers |
2873 | +plank_dock_element_scrolled |
2874 | +plank_dock_element_set_AddTime |
2875 | +plank_dock_element_set_Button |
2876 | +plank_dock_element_set_ClickedAnimation |
2877 | +plank_dock_element_set_Container |
2878 | +plank_dock_element_set_HoveredAnimation |
2879 | +plank_dock_element_set_IsAttached |
2880 | +plank_dock_element_set_IsVisible |
2881 | +plank_dock_element_set_LastActive |
2882 | +plank_dock_element_set_LastClicked |
2883 | +plank_dock_element_set_LastHovered |
2884 | +plank_dock_element_set_LastMove |
2885 | +plank_dock_element_set_LastScrolled |
2886 | +plank_dock_element_set_LastUrgent |
2887 | +plank_dock_element_set_LastValid |
2888 | +plank_dock_element_set_RemoveTime |
2889 | +plank_dock_element_set_ScrolledAnimation |
2890 | +plank_dock_element_set_Text |
2891 | +plank_dock_element_unique_id |
2892 | +plank_dock_item_construct |
2893 | +plank_dock_item_copy_values_to |
2894 | +plank_dock_item_delete |
2895 | +plank_dock_item_draw_icon |
2896 | +plank_dock_item_draw_icon_fast |
2897 | +plank_dock_item_get_AverageIconColor |
2898 | +plank_dock_item_get_background_surface |
2899 | +plank_dock_item_get_Count |
2900 | +plank_dock_item_get_CountVisible |
2901 | +plank_dock_item_get_DockItemFilename |
2902 | +plank_dock_item_get_ForcePixbuf |
2903 | +plank_dock_item_get_foreground_surface |
2904 | +plank_dock_item_get_Icon |
2905 | +plank_dock_item_get_Indicator |
2906 | +plank_dock_item_get_LastPosition |
2907 | +plank_dock_item_get_Launcher |
2908 | +plank_dock_item_get_Position |
2909 | +plank_dock_item_get_Prefs |
2910 | +plank_dock_item_get_Progress |
2911 | +plank_dock_item_get_ProgressVisible |
2912 | +plank_dock_item_get_State |
2913 | +plank_dock_item_get_surface |
2914 | +plank_dock_item_get_surface_copy |
2915 | +plank_dock_item_get_type |
2916 | +plank_dock_item_is_valid |
2917 | +plank_dock_item_load_from_launcher |
2918 | +plank_dock_item_preferences_construct |
2919 | +plank_dock_item_preferences_construct_with_file |
2920 | +plank_dock_item_preferences_construct_with_filename |
2921 | +plank_dock_item_preferences_construct_with_launcher |
2922 | +plank_dock_item_preferences_get_Launcher |
2923 | +plank_dock_item_preferences_get_type |
2924 | +plank_dock_item_preferences_new |
2925 | +plank_dock_item_preferences_new_with_file |
2926 | +plank_dock_item_preferences_new_with_filename |
2927 | +plank_dock_item_preferences_new_with_launcher |
2928 | +plank_dock_item_preferences_set_Launcher |
2929 | +plank_dock_item_provider_add_item_with_uri |
2930 | +plank_dock_item_provider_construct |
2931 | +plank_dock_item_provider_get_type |
2932 | +plank_dock_item_provider_handle_item_deleted |
2933 | +plank_dock_item_provider_item_exists_for_uri |
2934 | +plank_dock_item_provider_item_for_uri |
2935 | +plank_dock_item_provider_new |
2936 | +plank_dock_item_reset_icon_buffer |
2937 | +plank_dock_item_set_AverageIconColor |
2938 | +plank_dock_item_set_Count |
2939 | +plank_dock_item_set_CountVisible |
2940 | +plank_dock_item_set_ForcePixbuf |
2941 | +plank_dock_item_set_Icon |
2942 | +plank_dock_item_set_Indicator |
2943 | +plank_dock_item_set_LastPosition |
2944 | +plank_dock_item_set_Position |
2945 | +plank_dock_item_set_Progress |
2946 | +plank_dock_item_set_ProgressVisible |
2947 | +plank_dock_item_set_State |
2948 | +plank_dock_item_unset_move_state |
2949 | plank_dock_preferences_construct |
2950 | plank_dock_preferences_decrease_icon_size |
2951 | plank_dock_preferences_get_Alignment |
2952 | @@ -85,6 +307,67 @@ |
2953 | plank_dock_renderer_new |
2954 | plank_dock_renderer_reset_buffers |
2955 | plank_dock_renderer_update_local_cursor |
2956 | +plank_dock_theme_construct |
2957 | +plank_dock_theme_create_background |
2958 | +plank_dock_theme_create_indicator |
2959 | +plank_dock_theme_create_urgent_glow |
2960 | +plank_dock_theme_draw_active_glow |
2961 | +plank_dock_theme_draw_item_count |
2962 | +plank_dock_theme_draw_item_progress |
2963 | +plank_dock_theme_get_ActiveTime |
2964 | +plank_dock_theme_get_BottomPadding |
2965 | +plank_dock_theme_get_ClickTime |
2966 | +plank_dock_theme_get_FadeOpacity |
2967 | +plank_dock_theme_get_FadeTime |
2968 | +plank_dock_theme_get_GlowPulseTime |
2969 | +plank_dock_theme_get_GlowSize |
2970 | +plank_dock_theme_get_GlowTime |
2971 | +plank_dock_theme_get_HideTime |
2972 | +plank_dock_theme_get_HorizPadding |
2973 | +plank_dock_theme_get_IconShadowSize |
2974 | +plank_dock_theme_get_IndicatorSize |
2975 | +plank_dock_theme_get_ItemMoveTime |
2976 | +plank_dock_theme_get_ItemPadding |
2977 | +plank_dock_theme_get_LaunchBounceHeight |
2978 | +plank_dock_theme_get_LaunchBounceTime |
2979 | +plank_dock_theme_get_SlideTime |
2980 | +plank_dock_theme_get_TopPadding |
2981 | +plank_dock_theme_get_type |
2982 | +plank_dock_theme_get_UrgentBounceHeight |
2983 | +plank_dock_theme_get_UrgentBounceTime |
2984 | +plank_dock_theme_get_UrgentHueShift |
2985 | +plank_dock_theme_new |
2986 | +plank_dock_theme_set_ActiveTime |
2987 | +plank_dock_theme_set_BottomPadding |
2988 | +plank_dock_theme_set_ClickTime |
2989 | +plank_dock_theme_set_FadeOpacity |
2990 | +plank_dock_theme_set_FadeTime |
2991 | +plank_dock_theme_set_GlowPulseTime |
2992 | +plank_dock_theme_set_GlowSize |
2993 | +plank_dock_theme_set_GlowTime |
2994 | +plank_dock_theme_set_HideTime |
2995 | +plank_dock_theme_set_HorizPadding |
2996 | +plank_dock_theme_set_IconShadowSize |
2997 | +plank_dock_theme_set_IndicatorSize |
2998 | +plank_dock_theme_set_ItemMoveTime |
2999 | +plank_dock_theme_set_ItemPadding |
3000 | +plank_dock_theme_set_LaunchBounceHeight |
3001 | +plank_dock_theme_set_LaunchBounceTime |
3002 | +plank_dock_theme_set_SlideTime |
3003 | +plank_dock_theme_set_TopPadding |
3004 | +plank_dock_theme_set_UrgentBounceHeight |
3005 | +plank_dock_theme_set_UrgentBounceTime |
3006 | +plank_dock_theme_set_UrgentHueShift |
3007 | +plank_dock_window_construct |
3008 | +plank_dock_window_get_HoveredItem |
3009 | +plank_dock_window_get_HoveredItemProvider |
3010 | +plank_dock_window_get_type |
3011 | +plank_dock_window_menu_is_visible |
3012 | +plank_dock_window_new |
3013 | +plank_dock_window_update_hovered |
3014 | +plank_dock_window_update_icon_region |
3015 | +plank_dock_window_update_icon_regions |
3016 | +plank_dock_window_update_size_and_position |
3017 | plank_drag_manager_construct |
3018 | plank_drag_manager_drop_is_accepted_by |
3019 | plank_drag_manager_ensure_proxy |
3020 | @@ -96,203 +379,36 @@ |
3021 | plank_drag_manager_get_type |
3022 | plank_drag_manager_initialize |
3023 | plank_drag_manager_new |
3024 | -plank_drawing_animated_renderer_animated_draw |
3025 | -plank_drawing_animated_renderer_animation_needed |
3026 | -plank_drawing_animated_renderer_construct |
3027 | -plank_drawing_animated_renderer_draw |
3028 | -plank_drawing_animated_renderer_force_frame_time_update |
3029 | -plank_drawing_animated_renderer_get_frame_time |
3030 | -plank_drawing_animated_renderer_get_type |
3031 | -plank_drawing_animated_renderer_get_widget |
3032 | -plank_drawing_animated_renderer_initialize_frame |
3033 | -plank_drawing_animation_mode_get_type |
3034 | -plank_drawing_color_add_hue |
3035 | -plank_drawing_color_brighten_val |
3036 | -plank_drawing_color_darken_by_sat |
3037 | -plank_drawing_color_darken_val |
3038 | -plank_drawing_color_dup |
3039 | -plank_drawing_color_free |
3040 | -plank_drawing_color_from_prefs_string |
3041 | -plank_drawing_color_get_hsv |
3042 | -plank_drawing_color_get_hue |
3043 | -plank_drawing_color_get_sat |
3044 | -plank_drawing_color_get_type |
3045 | -plank_drawing_color_get_val |
3046 | -plank_drawing_color_multiply_sat |
3047 | -plank_drawing_color_set_hsv |
3048 | -plank_drawing_color_set_hue |
3049 | -plank_drawing_color_set_max_sat |
3050 | -plank_drawing_color_set_max_val |
3051 | -plank_drawing_color_set_min_sat |
3052 | -plank_drawing_color_set_min_val |
3053 | -plank_drawing_color_set_sat |
3054 | -plank_drawing_color_set_val |
3055 | -plank_drawing_color_to_prefs_string |
3056 | -plank_drawing_dock_surface_average_color |
3057 | -plank_drawing_dock_surface_clear |
3058 | -plank_drawing_dock_surface_construct |
3059 | -plank_drawing_dock_surface_construct_with_dock_surface |
3060 | -plank_drawing_dock_surface_construct_with_internal |
3061 | -plank_drawing_dock_surface_construct_with_surface |
3062 | -plank_drawing_dock_surface_copy |
3063 | -plank_drawing_dock_surface_create_mask |
3064 | -plank_drawing_dock_surface_exponential_blur |
3065 | -plank_drawing_dock_surface_fast_blur |
3066 | -plank_drawing_dock_surface_gaussian_blur |
3067 | -plank_drawing_dock_surface_get_Context |
3068 | -plank_drawing_dock_surface_get_Height |
3069 | -plank_drawing_dock_surface_get_Internal |
3070 | -plank_drawing_dock_surface_get_type |
3071 | -plank_drawing_dock_surface_get_Width |
3072 | -plank_drawing_dock_surface_new |
3073 | -plank_drawing_dock_surface_new_with_dock_surface |
3074 | -plank_drawing_dock_surface_new_with_internal |
3075 | -plank_drawing_dock_surface_new_with_surface |
3076 | -plank_drawing_dock_surface_scaled_copy |
3077 | -plank_drawing_dock_surface_to_pixbuf |
3078 | -plank_drawing_dock_theme_construct |
3079 | -plank_drawing_dock_theme_create_background |
3080 | -plank_drawing_dock_theme_create_indicator |
3081 | -plank_drawing_dock_theme_create_urgent_glow |
3082 | -plank_drawing_dock_theme_draw_active_glow |
3083 | -plank_drawing_dock_theme_draw_item_count |
3084 | -plank_drawing_dock_theme_draw_item_progress |
3085 | -plank_drawing_dock_theme_get_ActiveTime |
3086 | -plank_drawing_dock_theme_get_BottomPadding |
3087 | -plank_drawing_dock_theme_get_ClickTime |
3088 | -plank_drawing_dock_theme_get_FadeOpacity |
3089 | -plank_drawing_dock_theme_get_FadeTime |
3090 | -plank_drawing_dock_theme_get_GlowPulseTime |
3091 | -plank_drawing_dock_theme_get_GlowSize |
3092 | -plank_drawing_dock_theme_get_GlowTime |
3093 | -plank_drawing_dock_theme_get_HideTime |
3094 | -plank_drawing_dock_theme_get_HorizPadding |
3095 | -plank_drawing_dock_theme_get_IconShadowSize |
3096 | -plank_drawing_dock_theme_get_IndicatorSize |
3097 | -plank_drawing_dock_theme_get_ItemMoveTime |
3098 | -plank_drawing_dock_theme_get_ItemPadding |
3099 | -plank_drawing_dock_theme_get_LaunchBounceHeight |
3100 | -plank_drawing_dock_theme_get_LaunchBounceTime |
3101 | -plank_drawing_dock_theme_get_SlideTime |
3102 | -plank_drawing_dock_theme_get_TopPadding |
3103 | -plank_drawing_dock_theme_get_type |
3104 | -plank_drawing_dock_theme_get_UrgentBounceHeight |
3105 | -plank_drawing_dock_theme_get_UrgentBounceTime |
3106 | -plank_drawing_dock_theme_get_UrgentHueShift |
3107 | -plank_drawing_dock_theme_new |
3108 | -plank_drawing_dock_theme_set_ActiveTime |
3109 | -plank_drawing_dock_theme_set_BottomPadding |
3110 | -plank_drawing_dock_theme_set_ClickTime |
3111 | -plank_drawing_dock_theme_set_FadeOpacity |
3112 | -plank_drawing_dock_theme_set_FadeTime |
3113 | -plank_drawing_dock_theme_set_GlowPulseTime |
3114 | -plank_drawing_dock_theme_set_GlowSize |
3115 | -plank_drawing_dock_theme_set_GlowTime |
3116 | -plank_drawing_dock_theme_set_HideTime |
3117 | -plank_drawing_dock_theme_set_HorizPadding |
3118 | -plank_drawing_dock_theme_set_IconShadowSize |
3119 | -plank_drawing_dock_theme_set_IndicatorSize |
3120 | -plank_drawing_dock_theme_set_ItemMoveTime |
3121 | -plank_drawing_dock_theme_set_ItemPadding |
3122 | -plank_drawing_dock_theme_set_LaunchBounceHeight |
3123 | -plank_drawing_dock_theme_set_LaunchBounceTime |
3124 | -plank_drawing_dock_theme_set_SlideTime |
3125 | -plank_drawing_dock_theme_set_TopPadding |
3126 | -plank_drawing_dock_theme_set_UrgentBounceHeight |
3127 | -plank_drawing_dock_theme_set_UrgentBounceTime |
3128 | -plank_drawing_dock_theme_set_UrgentHueShift |
3129 | -plank_drawing_drawing_service_ar_scale |
3130 | -plank_drawing_drawing_service_average_color |
3131 | -plank_drawing_drawing_service_get_icon_from_file |
3132 | -plank_drawing_drawing_service_get_icon_from_gicon |
3133 | -plank_drawing_drawing_service_get_icon_theme |
3134 | -plank_drawing_drawing_service_get_type |
3135 | -plank_drawing_drawing_service_load_icon |
3136 | -plank_drawing_drawing_service_load_icon_for_scale |
3137 | -plank_drawing_drawing_service_try_get_icon_file |
3138 | -plank_drawing_easing_for_mode |
3139 | -plank_drawing_surface_cache_clear |
3140 | -plank_drawing_surface_cache_construct |
3141 | -plank_drawing_surface_cache_flags_get_type |
3142 | -plank_drawing_surface_cache_get_flags |
3143 | -plank_drawing_surface_cache_get_surface |
3144 | -plank_drawing_surface_cache_get_type |
3145 | -plank_drawing_surface_cache_new |
3146 | -plank_drawing_theme_construct |
3147 | -plank_drawing_theme_construct_with_name |
3148 | -plank_drawing_theme_draw_background |
3149 | -plank_drawing_theme_draw_inner_rect |
3150 | -plank_drawing_theme_draw_rounded_line |
3151 | -plank_drawing_theme_draw_rounded_rect |
3152 | -plank_drawing_theme_get_bottom_offset |
3153 | -plank_drawing_theme_get_BottomRoundness |
3154 | -plank_drawing_theme_get_FillEndColor |
3155 | -plank_drawing_theme_get_FillStartColor |
3156 | -plank_drawing_theme_get_InnerStrokeColor |
3157 | -plank_drawing_theme_get_LineWidth |
3158 | -plank_drawing_theme_get_OuterStrokeColor |
3159 | -plank_drawing_theme_get_theme_folder |
3160 | -plank_drawing_theme_get_theme_list |
3161 | -plank_drawing_theme_get_top_offset |
3162 | -plank_drawing_theme_get_TopRoundness |
3163 | -plank_drawing_theme_get_type |
3164 | -plank_drawing_theme_load |
3165 | -plank_drawing_theme_set_BottomRoundness |
3166 | -plank_drawing_theme_set_FillEndColor |
3167 | -plank_drawing_theme_set_FillStartColor |
3168 | -plank_drawing_theme_set_InnerStrokeColor |
3169 | -plank_drawing_theme_set_LineWidth |
3170 | -plank_drawing_theme_set_OuterStrokeColor |
3171 | -plank_drawing_theme_set_TopRoundness |
3172 | -plank_factories_abstract_main_construct |
3173 | -plank_factories_abstract_main_create_actions |
3174 | -plank_factories_abstract_main_create_controller |
3175 | -plank_factories_abstract_main_get_about_artists |
3176 | -plank_factories_abstract_main_get_about_authors |
3177 | -plank_factories_abstract_main_get_about_documenters |
3178 | -plank_factories_abstract_main_get_about_license_type |
3179 | -plank_factories_abstract_main_get_about_translators |
3180 | -plank_factories_abstract_main_get_app_copyright |
3181 | -plank_factories_abstract_main_get_app_dbus |
3182 | -plank_factories_abstract_main_get_app_icon |
3183 | -plank_factories_abstract_main_get_app_launcher |
3184 | -plank_factories_abstract_main_get_build_data_dir |
3185 | -plank_factories_abstract_main_get_build_pkg_data_dir |
3186 | -plank_factories_abstract_main_get_build_release_name |
3187 | -plank_factories_abstract_main_get_build_version |
3188 | -plank_factories_abstract_main_get_build_version_info |
3189 | -plank_factories_abstract_main_get_dock_name |
3190 | -plank_factories_abstract_main_get_exec_name |
3191 | -plank_factories_abstract_main_get_help_url |
3192 | -plank_factories_abstract_main_get_main_url |
3193 | -plank_factories_abstract_main_get_program_name |
3194 | -plank_factories_abstract_main_get_translate_url |
3195 | -plank_factories_abstract_main_get_type |
3196 | -plank_factories_abstract_main_initialize |
3197 | -plank_factories_abstract_main_is_launcher_for_dock |
3198 | -plank_factories_abstract_main_set_about_artists |
3199 | -plank_factories_abstract_main_set_about_authors |
3200 | -plank_factories_abstract_main_set_about_documenters |
3201 | -plank_factories_abstract_main_set_about_license_type |
3202 | -plank_factories_abstract_main_set_about_translators |
3203 | -plank_factories_abstract_main_set_dock_name |
3204 | -plank_factories_abstract_main_set_help_url |
3205 | -plank_factories_abstract_main_set_main_url |
3206 | -plank_factories_abstract_main_set_translate_url |
3207 | -plank_factories_factory_construct |
3208 | -plank_factories_factory_get_type |
3209 | -plank_factories_factory_init |
3210 | -plank_factories_factory_new |
3211 | -plank_factories_item_factory_construct |
3212 | -plank_factories_item_factory_default_make_element |
3213 | -plank_factories_item_factory_get_item_for_dock |
3214 | -plank_factories_item_factory_get_launcher_from_dockitem |
3215 | -plank_factories_item_factory_get_type |
3216 | -plank_factories_item_factory_load_items |
3217 | -plank_factories_item_factory_make_default_items |
3218 | -plank_factories_item_factory_make_dock_item |
3219 | -plank_factories_item_factory_make_element |
3220 | -plank_factories_item_factory_new |
3221 | +plank_drawing_service_ar_scale |
3222 | +plank_drawing_service_average_color |
3223 | +plank_drawing_service_get_icon_from_file |
3224 | +plank_drawing_service_get_icon_from_gicon |
3225 | +plank_drawing_service_get_icon_theme |
3226 | +plank_drawing_service_get_type |
3227 | +plank_drawing_service_load_icon |
3228 | +plank_drawing_service_load_icon_for_scale |
3229 | +plank_drawing_service_try_get_icon_file |
3230 | +plank_easing_for_mode |
3231 | +plank_factory_construct |
3232 | +plank_factory_get_type |
3233 | +plank_factory_init |
3234 | +plank_factory_new |
3235 | +plank_file_dock_item_construct |
3236 | +plank_file_dock_item_construct_with_dockitem_file |
3237 | +plank_file_dock_item_construct_with_dockitem_filename |
3238 | +plank_file_dock_item_construct_with_file |
3239 | +plank_file_dock_item_get_OwnedFile |
3240 | +plank_file_dock_item_get_type |
3241 | +plank_file_dock_item_launch |
3242 | +plank_file_dock_item_new |
3243 | +plank_file_dock_item_new_with_dockitem_file |
3244 | +plank_file_dock_item_new_with_dockitem_filename |
3245 | +plank_file_dock_item_new_with_file |
3246 | +plank_file_dock_item_set_OwnedFile |
3247 | +plank_get_major_version |
3248 | +plank_get_micro_version |
3249 | +plank_get_minor_version |
3250 | +plank_get_nano_version |
3251 | plank_hide_manager_construct |
3252 | plank_hide_manager_get_Disabled |
3253 | plank_hide_manager_get_Hidden |
3254 | @@ -304,190 +420,69 @@ |
3255 | plank_hide_manager_update_hovered |
3256 | plank_hide_manager_update_hovered_with_coords |
3257 | plank_hide_type_get_type |
3258 | -plank_items_animation_get_type |
3259 | -plank_items_application_dock_item_construct |
3260 | -plank_items_application_dock_item_construct_with_dockitem_file |
3261 | -plank_items_application_dock_item_construct_with_dockitem_filename |
3262 | -plank_items_application_dock_item_get_type |
3263 | -plank_items_application_dock_item_get_unity_application_uri |
3264 | -plank_items_application_dock_item_get_unity_dbusname |
3265 | -plank_items_application_dock_item_has_unity_info |
3266 | -plank_items_application_dock_item_is_running |
3267 | -plank_items_application_dock_item_is_window |
3268 | -plank_items_application_dock_item_new |
3269 | -plank_items_application_dock_item_new_with_dockitem_file |
3270 | -plank_items_application_dock_item_new_with_dockitem_filename |
3271 | -plank_items_application_dock_item_parse_launcher |
3272 | -plank_items_application_dock_item_provider_acquire_unity_dbus |
3273 | -plank_items_application_dock_item_provider_app_opened |
3274 | -plank_items_application_dock_item_provider_construct |
3275 | -plank_items_application_dock_item_provider_delay_items_monitor |
3276 | -plank_items_application_dock_item_provider_get_item_list_string |
3277 | -plank_items_application_dock_item_provider_get_LaunchersDir |
3278 | -plank_items_application_dock_item_provider_get_type |
3279 | -plank_items_application_dock_item_provider_item_for_application |
3280 | -plank_items_application_dock_item_provider_new |
3281 | -plank_items_application_dock_item_provider_release_unity_dbus |
3282 | -plank_items_application_dock_item_provider_resume_items_monitor |
3283 | -plank_items_application_dock_item_set_urgent |
3284 | -plank_items_application_dock_item_unity_reset |
3285 | -plank_items_application_dock_item_unity_update |
3286 | -plank_items_default_application_dock_item_provider_construct |
3287 | -plank_items_default_application_dock_item_provider_get_Prefs |
3288 | -plank_items_default_application_dock_item_provider_get_type |
3289 | -plank_items_default_application_dock_item_provider_new |
3290 | -plank_items_default_application_dock_item_provider_pin_item |
3291 | -plank_items_dock_container_add |
3292 | -plank_items_dock_container_add_all |
3293 | -plank_items_dock_container_connect_element |
3294 | -plank_items_dock_container_construct |
3295 | -plank_items_dock_container_disconnect_element |
3296 | -plank_items_dock_container_get_Elements |
3297 | -plank_items_dock_container_get_type |
3298 | -plank_items_dock_container_get_VisibleElements |
3299 | -plank_items_dock_container_move_element |
3300 | -plank_items_dock_container_move_to |
3301 | -plank_items_dock_container_prepare |
3302 | -plank_items_dock_container_prepend |
3303 | -plank_items_dock_container_remove |
3304 | -plank_items_dock_container_remove_all |
3305 | -plank_items_dock_container_replace |
3306 | -plank_items_dock_container_update_visible_elements |
3307 | -plank_items_dock_element_accept_drop |
3308 | -plank_items_dock_element_as_uri |
3309 | -plank_items_dock_element_can_accept_drop |
3310 | -plank_items_dock_element_can_be_removed |
3311 | -plank_items_dock_element_clicked |
3312 | -plank_items_dock_element_construct |
3313 | -plank_items_dock_element_create_menu_item |
3314 | -plank_items_dock_element_create_menu_item_with_pixbuf |
3315 | -plank_items_dock_element_get_AddTime |
3316 | -plank_items_dock_element_get_Button |
3317 | -plank_items_dock_element_get_ClickedAnimation |
3318 | -plank_items_dock_element_get_Container |
3319 | -plank_items_dock_element_get_dock |
3320 | -plank_items_dock_element_get_HoveredAnimation |
3321 | -plank_items_dock_element_get_IsAttached |
3322 | -plank_items_dock_element_get_IsVisible |
3323 | -plank_items_dock_element_get_LastActive |
3324 | -plank_items_dock_element_get_LastClicked |
3325 | -plank_items_dock_element_get_LastHovered |
3326 | -plank_items_dock_element_get_LastMove |
3327 | -plank_items_dock_element_get_LastScrolled |
3328 | -plank_items_dock_element_get_LastUrgent |
3329 | -plank_items_dock_element_get_LastValid |
3330 | -plank_items_dock_element_get_menu_items |
3331 | -plank_items_dock_element_get_RemoveTime |
3332 | -plank_items_dock_element_get_ScrolledAnimation |
3333 | -plank_items_dock_element_get_Text |
3334 | -plank_items_dock_element_get_type |
3335 | -plank_items_dock_element_hovered |
3336 | -plank_items_dock_element_on_clicked |
3337 | -plank_items_dock_element_on_hovered |
3338 | -plank_items_dock_element_on_scrolled |
3339 | -plank_items_dock_element_reset_buffers |
3340 | -plank_items_dock_element_scrolled |
3341 | -plank_items_dock_element_set_AddTime |
3342 | -plank_items_dock_element_set_Button |
3343 | -plank_items_dock_element_set_ClickedAnimation |
3344 | -plank_items_dock_element_set_Container |
3345 | -plank_items_dock_element_set_HoveredAnimation |
3346 | -plank_items_dock_element_set_IsAttached |
3347 | -plank_items_dock_element_set_IsVisible |
3348 | -plank_items_dock_element_set_LastActive |
3349 | -plank_items_dock_element_set_LastClicked |
3350 | -plank_items_dock_element_set_LastHovered |
3351 | -plank_items_dock_element_set_LastMove |
3352 | -plank_items_dock_element_set_LastScrolled |
3353 | -plank_items_dock_element_set_LastUrgent |
3354 | -plank_items_dock_element_set_LastValid |
3355 | -plank_items_dock_element_set_RemoveTime |
3356 | -plank_items_dock_element_set_ScrolledAnimation |
3357 | -plank_items_dock_element_set_Text |
3358 | -plank_items_dock_element_unique_id |
3359 | -plank_items_dock_item_construct |
3360 | -plank_items_dock_item_copy_values_to |
3361 | -plank_items_dock_item_delete |
3362 | -plank_items_dock_item_draw_icon |
3363 | -plank_items_dock_item_draw_icon_fast |
3364 | -plank_items_dock_item_get_AverageIconColor |
3365 | -plank_items_dock_item_get_background_surface |
3366 | -plank_items_dock_item_get_Count |
3367 | -plank_items_dock_item_get_CountVisible |
3368 | -plank_items_dock_item_get_DockItemFilename |
3369 | -plank_items_dock_item_get_ForcePixbuf |
3370 | -plank_items_dock_item_get_foreground_surface |
3371 | -plank_items_dock_item_get_Icon |
3372 | -plank_items_dock_item_get_Indicator |
3373 | -plank_items_dock_item_get_LastPosition |
3374 | -plank_items_dock_item_get_Launcher |
3375 | -plank_items_dock_item_get_Position |
3376 | -plank_items_dock_item_get_Prefs |
3377 | -plank_items_dock_item_get_Progress |
3378 | -plank_items_dock_item_get_ProgressVisible |
3379 | -plank_items_dock_item_get_State |
3380 | -plank_items_dock_item_get_surface |
3381 | -plank_items_dock_item_get_surface_copy |
3382 | -plank_items_dock_item_get_type |
3383 | -plank_items_dock_item_is_valid |
3384 | -plank_items_dock_item_load_from_launcher |
3385 | -plank_items_dock_item_preferences_construct |
3386 | -plank_items_dock_item_preferences_construct_with_file |
3387 | -plank_items_dock_item_preferences_construct_with_filename |
3388 | -plank_items_dock_item_preferences_construct_with_launcher |
3389 | -plank_items_dock_item_preferences_get_Launcher |
3390 | -plank_items_dock_item_preferences_get_type |
3391 | -plank_items_dock_item_preferences_new |
3392 | -plank_items_dock_item_preferences_new_with_file |
3393 | -plank_items_dock_item_preferences_new_with_filename |
3394 | -plank_items_dock_item_preferences_new_with_launcher |
3395 | -plank_items_dock_item_preferences_set_Launcher |
3396 | -plank_items_dock_item_provider_add_item_with_uri |
3397 | -plank_items_dock_item_provider_construct |
3398 | -plank_items_dock_item_provider_get_type |
3399 | -plank_items_dock_item_provider_handle_item_deleted |
3400 | -plank_items_dock_item_provider_item_exists_for_uri |
3401 | -plank_items_dock_item_provider_item_for_uri |
3402 | -plank_items_dock_item_provider_new |
3403 | -plank_items_dock_item_reset_icon_buffer |
3404 | -plank_items_dock_item_set_AverageIconColor |
3405 | -plank_items_dock_item_set_Count |
3406 | -plank_items_dock_item_set_CountVisible |
3407 | -plank_items_dock_item_set_ForcePixbuf |
3408 | -plank_items_dock_item_set_Icon |
3409 | -plank_items_dock_item_set_Indicator |
3410 | -plank_items_dock_item_set_LastPosition |
3411 | -plank_items_dock_item_set_Position |
3412 | -plank_items_dock_item_set_Progress |
3413 | -plank_items_dock_item_set_ProgressVisible |
3414 | -plank_items_dock_item_set_State |
3415 | -plank_items_dock_item_unset_move_state |
3416 | -plank_items_file_dock_item_construct |
3417 | -plank_items_file_dock_item_construct_with_dockitem_file |
3418 | -plank_items_file_dock_item_construct_with_dockitem_filename |
3419 | -plank_items_file_dock_item_construct_with_file |
3420 | -plank_items_file_dock_item_get_OwnedFile |
3421 | -plank_items_file_dock_item_get_type |
3422 | -plank_items_file_dock_item_launch |
3423 | -plank_items_file_dock_item_new |
3424 | -plank_items_file_dock_item_new_with_dockitem_file |
3425 | -plank_items_file_dock_item_new_with_dockitem_filename |
3426 | -plank_items_file_dock_item_new_with_file |
3427 | -plank_items_file_dock_item_set_OwnedFile |
3428 | -plank_items_indicator_state_get_type |
3429 | -plank_items_item_state_get_type |
3430 | -plank_items_placeholder_dock_item_construct |
3431 | -plank_items_placeholder_dock_item_get_type |
3432 | -plank_items_placeholder_dock_item_new |
3433 | -plank_items_plank_dock_item_get_instance |
3434 | -plank_items_plank_dock_item_get_type |
3435 | -plank_items_popup_button_from_event_button |
3436 | -plank_items_popup_button_get_type |
3437 | -plank_items_transient_dock_item_construct |
3438 | -plank_items_transient_dock_item_construct_with_launcher |
3439 | -plank_items_transient_dock_item_get_type |
3440 | -plank_items_transient_dock_item_new |
3441 | -plank_items_transient_dock_item_new_with_launcher |
3442 | +plank_hover_window_construct |
3443 | +plank_hover_window_get_type |
3444 | +plank_hover_window_new |
3445 | +plank_hover_window_set_text |
3446 | +plank_hover_window_show_at |
3447 | +plank_indicator_state_get_type |
3448 | +plank_item_factory_construct |
3449 | +plank_item_factory_default_make_element |
3450 | +plank_item_factory_get_item_for_dock |
3451 | +plank_item_factory_get_launcher_from_dockitem |
3452 | +plank_item_factory_get_type |
3453 | +plank_item_factory_load_items |
3454 | +plank_item_factory_make_default_items |
3455 | +plank_item_factory_make_dock_item |
3456 | +plank_item_factory_make_element |
3457 | +plank_item_factory_new |
3458 | +plank_item_state_get_type |
3459 | +plank_logger_get_DisplayLevel |
3460 | +plank_logger_get_type |
3461 | +plank_logger_initialize |
3462 | +plank_logger_notification |
3463 | +plank_logger_set_DisplayLevel |
3464 | +plank_logger_verbose |
3465 | +plank_log_level_get_type |
3466 | +plank_paths_ensure_directory_exists |
3467 | +plank_paths_get_AppCacheFolder |
3468 | +plank_paths_get_AppConfigFolder |
3469 | +plank_paths_get_AppDataFolder |
3470 | +plank_paths_get_AppName |
3471 | +plank_paths_get_AppThemeFolder |
3472 | +plank_paths_get_CacheHomeFolder |
3473 | +plank_paths_get_ConfigHomeFolder |
3474 | +plank_paths_get_DataDirFolders |
3475 | +plank_paths_get_DataFolder |
3476 | +plank_paths_get_DataHomeFolder |
3477 | +plank_paths_get_HomeFolder |
3478 | +plank_paths_get_ThemeFolder |
3479 | +plank_paths_get_type |
3480 | +plank_paths_initialize |
3481 | +plank_paths_set_AppCacheFolder |
3482 | +plank_paths_set_AppConfigFolder |
3483 | +plank_paths_set_AppDataFolder |
3484 | +plank_paths_set_AppName |
3485 | +plank_paths_set_AppThemeFolder |
3486 | +plank_paths_set_CacheHomeFolder |
3487 | +plank_paths_set_ConfigHomeFolder |
3488 | +plank_paths_set_DataDirFolders |
3489 | +plank_paths_set_DataFolder |
3490 | +plank_paths_set_DataHomeFolder |
3491 | +plank_paths_set_HomeFolder |
3492 | +plank_paths_set_ThemeFolder |
3493 | +plank_placeholder_dock_item_construct |
3494 | +plank_placeholder_dock_item_get_type |
3495 | +plank_placeholder_dock_item_new |
3496 | +plank_plank_dock_item_get_instance |
3497 | +plank_plank_dock_item_get_type |
3498 | +plank_poof_window_construct |
3499 | +plank_poof_window_get_default |
3500 | +plank_poof_window_get_type |
3501 | +plank_poof_window_new |
3502 | +plank_poof_window_show_at |
3503 | +plank_popup_button_from_event_button |
3504 | +plank_popup_button_get_type |
3505 | plank_position_manager_construct |
3506 | plank_position_manager_dock_item_draw_value_construct |
3507 | plank_position_manager_dock_item_draw_value_get_type |
3508 | @@ -544,113 +539,118 @@ |
3509 | plank_position_manager_value_get_dock_item_draw_value |
3510 | plank_position_manager_value_set_dock_item_draw_value |
3511 | plank_position_manager_value_take_dock_item_draw_value |
3512 | -plank_services_logger_get_DisplayLevel |
3513 | -plank_services_logger_get_type |
3514 | -plank_services_logger_initialize |
3515 | -plank_services_logger_notification |
3516 | -plank_services_logger_set_DisplayLevel |
3517 | -plank_services_logger_verbose |
3518 | -plank_services_log_level_get_type |
3519 | -plank_services_paths_ensure_directory_exists |
3520 | -plank_services_paths_get_AppCacheFolder |
3521 | -plank_services_paths_get_AppConfigFolder |
3522 | -plank_services_paths_get_AppDataFolder |
3523 | -plank_services_paths_get_AppName |
3524 | -plank_services_paths_get_AppThemeFolder |
3525 | -plank_services_paths_get_CacheHomeFolder |
3526 | -plank_services_paths_get_ConfigHomeFolder |
3527 | -plank_services_paths_get_DataDirFolders |
3528 | -plank_services_paths_get_DataFolder |
3529 | -plank_services_paths_get_DataHomeFolder |
3530 | -plank_services_paths_get_HomeFolder |
3531 | -plank_services_paths_get_ThemeFolder |
3532 | -plank_services_paths_get_type |
3533 | -plank_services_paths_initialize |
3534 | -plank_services_paths_set_AppCacheFolder |
3535 | -plank_services_paths_set_AppConfigFolder |
3536 | -plank_services_paths_set_AppDataFolder |
3537 | -plank_services_paths_set_AppName |
3538 | -plank_services_paths_set_AppThemeFolder |
3539 | -plank_services_paths_set_CacheHomeFolder |
3540 | -plank_services_paths_set_ConfigHomeFolder |
3541 | -plank_services_paths_set_DataDirFolders |
3542 | -plank_services_paths_set_DataFolder |
3543 | -plank_services_paths_set_DataHomeFolder |
3544 | -plank_services_paths_set_HomeFolder |
3545 | -plank_services_paths_set_ThemeFolder |
3546 | -plank_services_preferences_apply |
3547 | -plank_services_preferences_construct |
3548 | -plank_services_preferences_construct_with_file |
3549 | -plank_services_preferences_construct_with_filename |
3550 | -plank_services_preferences_delay |
3551 | -plank_services_preferences_delete |
3552 | -plank_services_preferences_get_backing_file |
3553 | -plank_services_preferences_get_filename |
3554 | -plank_services_preferences_get_type |
3555 | -plank_services_preferences_init_from_file |
3556 | -plank_services_preferences_init_from_filename |
3557 | -plank_services_preferences_reset_properties |
3558 | -plank_services_preferences_verify |
3559 | -plank_services_prefs_serializable_get_type |
3560 | -plank_services_prefs_serializable_prefs_deserialize |
3561 | -plank_services_prefs_serializable_prefs_serialize |
3562 | -plank_services_settings_apply |
3563 | -plank_services_settings_construct |
3564 | -plank_services_settings_construct_with_path |
3565 | -plank_services_settings_delay |
3566 | -plank_services_settings_get_settings |
3567 | -plank_services_settings_get_type |
3568 | -plank_services_settings_reset_all |
3569 | -plank_services_settings_verify |
3570 | -plank_services_system_get_type |
3571 | -plank_services_system_is_desktop_session |
3572 | -plank_services_system_launch |
3573 | -plank_services_system_launch_with_files |
3574 | -plank_services_system_open |
3575 | -plank_services_system_open_files |
3576 | -plank_services_system_open_uri |
3577 | -plank_services_task_priority_get_type |
3578 | -plank_services_worker_add_task |
3579 | -plank_services_worker_add_task_with_result |
3580 | -plank_services_worker_add_task_with_result_finish |
3581 | -plank_services_worker_get_default |
3582 | -plank_services_worker_get_type |
3583 | -plank_version_check |
3584 | -plank_version_get_major_version |
3585 | -plank_version_get_micro_version |
3586 | -plank_version_get_minor_version |
3587 | -plank_version_get_nano_version |
3588 | -plank_widgets_composited_window_construct |
3589 | -plank_widgets_composited_window_construct_with_type |
3590 | -plank_widgets_composited_window_get_type |
3591 | -plank_widgets_composited_window_new |
3592 | -plank_widgets_composited_window_new_with_type |
3593 | -plank_widgets_dock_window_construct |
3594 | -plank_widgets_dock_window_get_HoveredItem |
3595 | -plank_widgets_dock_window_get_HoveredItemProvider |
3596 | -plank_widgets_dock_window_get_type |
3597 | -plank_widgets_dock_window_menu_is_visible |
3598 | -plank_widgets_dock_window_new |
3599 | -plank_widgets_dock_window_update_hovered |
3600 | -plank_widgets_dock_window_update_icon_region |
3601 | -plank_widgets_dock_window_update_icon_regions |
3602 | -plank_widgets_dock_window_update_size_and_position |
3603 | -plank_widgets_hover_window_construct |
3604 | -plank_widgets_hover_window_get_type |
3605 | -plank_widgets_hover_window_new |
3606 | -plank_widgets_hover_window_set_text |
3607 | -plank_widgets_hover_window_show_at |
3608 | -plank_widgets_poof_window_construct |
3609 | -plank_widgets_poof_window_get_default |
3610 | -plank_widgets_poof_window_get_type |
3611 | -plank_widgets_poof_window_new |
3612 | -plank_widgets_poof_window_show_at |
3613 | -plank_widgets_preferences_window_construct |
3614 | -plank_widgets_preferences_window_get_prefs |
3615 | -plank_widgets_preferences_window_get_type |
3616 | -plank_widgets_preferences_window_new |
3617 | -plank_widgets_titled_separator_menu_item_construct |
3618 | -plank_widgets_titled_separator_menu_item_construct_no_line |
3619 | -plank_widgets_titled_separator_menu_item_get_type |
3620 | -plank_widgets_titled_separator_menu_item_new |
3621 | -plank_widgets_titled_separator_menu_item_new_no_line |
3622 | +plank_preferences_apply |
3623 | +plank_preferences_construct |
3624 | +plank_preferences_construct_with_file |
3625 | +plank_preferences_construct_with_filename |
3626 | +plank_preferences_delay |
3627 | +plank_preferences_delete |
3628 | +plank_preferences_get_backing_file |
3629 | +plank_preferences_get_filename |
3630 | +plank_preferences_get_type |
3631 | +plank_preferences_init_from_file |
3632 | +plank_preferences_init_from_filename |
3633 | +plank_preferences_reset_properties |
3634 | +plank_preferences_verify |
3635 | +plank_preferences_window_construct |
3636 | +plank_preferences_window_get_prefs |
3637 | +plank_preferences_window_get_type |
3638 | +plank_preferences_window_new |
3639 | +plank_renderer_animated_draw |
3640 | +plank_renderer_animation_needed |
3641 | +plank_renderer_construct |
3642 | +plank_renderer_draw |
3643 | +plank_renderer_force_frame_time_update |
3644 | +plank_renderer_get_frame_time |
3645 | +plank_renderer_get_type |
3646 | +plank_renderer_get_widget |
3647 | +plank_renderer_initialize_frame |
3648 | +plank_serializable_deserialize |
3649 | +plank_serializable_get_type |
3650 | +plank_serializable_serialize |
3651 | +plank_settings_apply |
3652 | +plank_settings_construct |
3653 | +plank_settings_construct_with_path |
3654 | +plank_settings_delay |
3655 | +plank_settings_get_settings |
3656 | +plank_settings_get_type |
3657 | +plank_settings_reset_all |
3658 | +plank_settings_verify |
3659 | +plank_surface_average_color |
3660 | +plank_surface_cache_clear |
3661 | +plank_surface_cache_construct |
3662 | +plank_surface_cache_flags_get_type |
3663 | +plank_surface_cache_get_flags |
3664 | +plank_surface_cache_get_surface |
3665 | +plank_surface_cache_get_type |
3666 | +plank_surface_cache_new |
3667 | +plank_surface_clear |
3668 | +plank_surface_construct |
3669 | +plank_surface_construct_with_cairo_surface |
3670 | +plank_surface_construct_with_internal |
3671 | +plank_surface_construct_with_surface |
3672 | +plank_surface_copy |
3673 | +plank_surface_create_mask |
3674 | +plank_surface_exponential_blur |
3675 | +plank_surface_fast_blur |
3676 | +plank_surface_gaussian_blur |
3677 | +plank_surface_get_Context |
3678 | +plank_surface_get_Height |
3679 | +plank_surface_get_Internal |
3680 | +plank_surface_get_type |
3681 | +plank_surface_get_Width |
3682 | +plank_surface_new |
3683 | +plank_surface_new_with_cairo_surface |
3684 | +plank_surface_new_with_internal |
3685 | +plank_surface_new_with_surface |
3686 | +plank_surface_scaled_copy |
3687 | +plank_surface_to_pixbuf |
3688 | +plank_system_get_type |
3689 | +plank_system_is_desktop_session |
3690 | +plank_system_launch |
3691 | +plank_system_launch_with_files |
3692 | +plank_system_open |
3693 | +plank_system_open_files |
3694 | +plank_system_open_uri |
3695 | +plank_task_priority_get_type |
3696 | +plank_theme_construct |
3697 | +plank_theme_construct_with_name |
3698 | +plank_theme_draw_background |
3699 | +plank_theme_draw_inner_rect |
3700 | +plank_theme_draw_rounded_line |
3701 | +plank_theme_draw_rounded_rect |
3702 | +plank_theme_get_bottom_offset |
3703 | +plank_theme_get_BottomRoundness |
3704 | +plank_theme_get_FillEndColor |
3705 | +plank_theme_get_FillStartColor |
3706 | +plank_theme_get_InnerStrokeColor |
3707 | +plank_theme_get_LineWidth |
3708 | +plank_theme_get_OuterStrokeColor |
3709 | +plank_theme_get_theme_folder |
3710 | +plank_theme_get_theme_list |
3711 | +plank_theme_get_top_offset |
3712 | +plank_theme_get_TopRoundness |
3713 | +plank_theme_get_type |
3714 | +plank_theme_load |
3715 | +plank_theme_set_BottomRoundness |
3716 | +plank_theme_set_FillEndColor |
3717 | +plank_theme_set_FillStartColor |
3718 | +plank_theme_set_InnerStrokeColor |
3719 | +plank_theme_set_LineWidth |
3720 | +plank_theme_set_OuterStrokeColor |
3721 | +plank_theme_set_TopRoundness |
3722 | +plank_titled_separator_menu_item_construct |
3723 | +plank_titled_separator_menu_item_construct_no_line |
3724 | +plank_titled_separator_menu_item_get_type |
3725 | +plank_titled_separator_menu_item_new |
3726 | +plank_titled_separator_menu_item_new_no_line |
3727 | +plank_transient_dock_item_construct |
3728 | +plank_transient_dock_item_construct_with_launcher |
3729 | +plank_transient_dock_item_get_type |
3730 | +plank_transient_dock_item_new |
3731 | +plank_transient_dock_item_new_with_launcher |
3732 | +plank_worker_add_task |
3733 | +plank_worker_add_task_with_result |
3734 | +plank_worker_add_task_with_result_finish |
3735 | +plank_worker_get_default |
3736 | +plank_worker_get_type |
3737 | |
3738 | === modified file 'src/Main.vala' |
3739 | --- src/Main.vala 2015-11-02 08:40:11 +0000 |
3740 | +++ src/Main.vala 2015-11-03 12:02:25 +0000 |
3741 | @@ -17,9 +17,6 @@ |
3742 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
3743 | // |
3744 | |
3745 | -using Plank.Factories; |
3746 | -using Plank.Items; |
3747 | - |
3748 | namespace Plank |
3749 | { |
3750 | public static int main (string[] argv) |
3751 | |
3752 | === modified file 'tests/Controller.vala' |
3753 | --- tests/Controller.vala 2015-11-02 13:42:37 +0000 |
3754 | +++ tests/Controller.vala 2015-11-03 12:02:25 +0000 |
3755 | @@ -17,11 +17,9 @@ |
3756 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
3757 | // |
3758 | |
3759 | -using Plank.Drawing; |
3760 | -using Plank.Items; |
3761 | -using Plank.Services; |
3762 | +using Plank; |
3763 | |
3764 | -namespace Plank.Tests |
3765 | +namespace PlankTests |
3766 | { |
3767 | public static void register_controller_tests () |
3768 | { |
3769 | |
3770 | === modified file 'tests/Dock.vala' |
3771 | --- tests/Dock.vala 2015-04-27 13:39:02 +0000 |
3772 | +++ tests/Dock.vala 2015-11-03 12:02:25 +0000 |
3773 | @@ -17,9 +17,9 @@ |
3774 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
3775 | // |
3776 | |
3777 | -using Plank.Factories; |
3778 | +using Plank; |
3779 | |
3780 | -namespace Plank.Tests |
3781 | +namespace PlankTests |
3782 | { |
3783 | public class Dock : AbstractMain |
3784 | { |
3785 | |
3786 | === modified file 'tests/Drawing.vala' |
3787 | --- tests/Drawing.vala 2015-04-27 13:39:02 +0000 |
3788 | +++ tests/Drawing.vala 2015-11-03 12:02:25 +0000 |
3789 | @@ -17,10 +17,9 @@ |
3790 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
3791 | // |
3792 | |
3793 | -using Plank.Drawing; |
3794 | -using Plank.Items; |
3795 | +using Plank; |
3796 | |
3797 | -namespace Plank.Tests |
3798 | +namespace PlankTests |
3799 | { |
3800 | public static void register_drawing_tests () |
3801 | { |
3802 | @@ -29,12 +28,12 @@ |
3803 | Test.add_func ("/Drawing/DrawingService/basics", drawing_drawingservice); |
3804 | Test.add_func ("/Drawing/DrawingService/average_color", drawing_drawingservice_average_color); |
3805 | |
3806 | - Test.add_func ("/Drawing/DockSurface/basics", drawing_docksurface); |
3807 | - Test.add_func ("/Drawing/DockSurface/create_mask", drawing_docksurface_create_mask); |
3808 | - Test.add_func ("/Drawing/DockSurface/exponential_blur", drawing_docksurface_exponential_blur); |
3809 | - Test.add_func ("/Drawing/DockSurface/fast_blur", drawing_docksurface_fast_blur); |
3810 | - Test.add_func ("/Drawing/DockSurface/gaussian_blur", drawing_docksurface_gaussian_blur); |
3811 | - Test.add_func ("/Drawing/DockSurface/to_pixbuf", drawing_docksurface_to_pixbuf); |
3812 | + Test.add_func ("/Drawing/Surface/basics", drawing_docksurface); |
3813 | + Test.add_func ("/Drawing/Surface/create_mask", drawing_docksurface_create_mask); |
3814 | + Test.add_func ("/Drawing/Surface/exponential_blur", drawing_docksurface_exponential_blur); |
3815 | + Test.add_func ("/Drawing/Surface/fast_blur", drawing_docksurface_fast_blur); |
3816 | + Test.add_func ("/Drawing/Surface/gaussian_blur", drawing_docksurface_gaussian_blur); |
3817 | + Test.add_func ("/Drawing/Surface/to_pixbuf", drawing_docksurface_to_pixbuf); |
3818 | |
3819 | Test.add_func ("/Drawing/Easing/basics", drawing_easing); |
3820 | |
3821 | @@ -49,7 +48,7 @@ |
3822 | |
3823 | void drawing_color () |
3824 | { |
3825 | - Drawing.Color color, color2, color3; |
3826 | + Color color, color2, color3; |
3827 | double h, s, v; |
3828 | |
3829 | color = { 0.5, 0.5, 0.5, 0.5 }; |
3830 | @@ -106,7 +105,7 @@ |
3831 | color = color3; |
3832 | color.darken_by_sat (0.66); |
3833 | |
3834 | - color = Drawing.Color.from_prefs_string ("123;;234;;123;;234"); |
3835 | + color = Color.from_prefs_string ("123;;234;;123;;234"); |
3836 | assert (color.to_prefs_string () == "123;;234;;123;;234"); |
3837 | } |
3838 | |
3839 | @@ -166,11 +165,11 @@ |
3840 | drawing_drawingservice_average_color_helper ({ 1.0, 1.0, 1.0, 1.0 }, 0.0); |
3841 | } |
3842 | |
3843 | - void drawing_drawingservice_average_color_helper (Drawing.Color color, double delta) |
3844 | + void drawing_drawingservice_average_color_helper (Color color, double delta) |
3845 | { |
3846 | - Drawing.Color average; |
3847 | - Drawing.DockSurface surface; |
3848 | - surface = new DockSurface (256, 256); |
3849 | + Color average; |
3850 | + Surface surface; |
3851 | + surface = new Surface (256, 256); |
3852 | unowned Cairo.Context cr = surface.Context; |
3853 | |
3854 | cr.set_source_rgba (color.red, color.green, color.blue, color.alpha); |
3855 | @@ -184,13 +183,13 @@ |
3856 | |
3857 | void drawing_docksurface () |
3858 | { |
3859 | - Drawing.DockSurface surface, surface2, surface3, surface4; |
3860 | + Surface surface, surface2, surface3, surface4; |
3861 | Gdk.Pixbuf pixbuf; |
3862 | |
3863 | - surface = new DockSurface (256, 256); |
3864 | - surface2 = new DockSurface.with_dock_surface (256, 256, new DockSurface (1, 1)); |
3865 | - surface3 = new DockSurface.with_surface (256, 256, new DockSurface (1, 1).Internal); |
3866 | - surface4 = new DockSurface.with_internal (new Cairo.ImageSurface (Cairo.Format.ARGB32, 256, 256)); |
3867 | + surface = new Surface (256, 256); |
3868 | + surface2 = new Surface.with_surface (256, 256, new Surface (1, 1)); |
3869 | + surface3 = new Surface.with_cairo_surface (256, 256, new Surface (1, 1).Internal); |
3870 | + surface4 = new Surface.with_internal (new Cairo.ImageSurface (Cairo.Format.ARGB32, 256, 256)); |
3871 | |
3872 | surface.clear (); |
3873 | surface2.clear (); |
3874 | @@ -211,11 +210,11 @@ |
3875 | |
3876 | void drawing_docksurface_create_mask () |
3877 | { |
3878 | - Drawing.DockSurface surface, mask; |
3879 | + Surface surface, mask; |
3880 | Gdk.Pixbuf pixbuf; |
3881 | |
3882 | pixbuf = DrawingService.load_icon (TEST_ICON, 256, 256); |
3883 | - surface = new DockSurface (256, 256); |
3884 | + surface = new Surface (256, 256); |
3885 | |
3886 | unowned Cairo.Context cr = surface.Context; |
3887 | Gdk.cairo_set_source_pixbuf (cr, pixbuf, 0, 0); |
3888 | @@ -229,12 +228,12 @@ |
3889 | |
3890 | void drawing_docksurface_fast_blur () |
3891 | { |
3892 | - Drawing.DockSurface surface, surface2; |
3893 | + Surface surface, surface2; |
3894 | Gdk.Pixbuf pixbuf; |
3895 | |
3896 | pixbuf = DrawingService.load_icon (TEST_ICON, 256, 256); |
3897 | - surface = new DockSurface (256, 256); |
3898 | - surface2 = new DockSurface (256, 256); |
3899 | + surface = new Surface (256, 256); |
3900 | + surface2 = new Surface (256, 256); |
3901 | |
3902 | unowned Cairo.Context cr = surface.Context; |
3903 | Gdk.cairo_set_source_pixbuf (cr, pixbuf, 0, 0); |
3904 | @@ -261,12 +260,12 @@ |
3905 | |
3906 | void drawing_docksurface_exponential_blur () |
3907 | { |
3908 | - Drawing.DockSurface surface, surface2; |
3909 | + Surface surface, surface2; |
3910 | Gdk.Pixbuf pixbuf; |
3911 | |
3912 | pixbuf = DrawingService.load_icon (TEST_ICON, 256, 256); |
3913 | - surface = new DockSurface (256, 256); |
3914 | - surface2 = new DockSurface (256, 256); |
3915 | + surface = new Surface (256, 256); |
3916 | + surface2 = new Surface (256, 256); |
3917 | |
3918 | unowned Cairo.Context cr = surface.Context; |
3919 | Gdk.cairo_set_source_pixbuf (cr, pixbuf, 0, 0); |
3920 | @@ -293,12 +292,12 @@ |
3921 | |
3922 | void drawing_docksurface_gaussian_blur () |
3923 | { |
3924 | - Drawing.DockSurface surface, surface2; |
3925 | + Surface surface, surface2; |
3926 | Gdk.Pixbuf pixbuf; |
3927 | |
3928 | pixbuf = DrawingService.load_icon (TEST_ICON, 256, 256); |
3929 | - surface = new DockSurface (256, 256); |
3930 | - surface2 = new DockSurface (256, 256); |
3931 | + surface = new Surface (256, 256); |
3932 | + surface2 = new Surface (256, 256); |
3933 | |
3934 | unowned Cairo.Context cr = surface.Context; |
3935 | Gdk.cairo_set_source_pixbuf (cr, pixbuf, 0, 0); |
3936 | @@ -325,12 +324,12 @@ |
3937 | |
3938 | void drawing_docksurface_to_pixbuf () |
3939 | { |
3940 | - Drawing.DockSurface surface, surface2; |
3941 | + Surface surface, surface2; |
3942 | Gdk.Pixbuf pixbuf; |
3943 | |
3944 | pixbuf = DrawingService.load_icon (TEST_ICON, 256, 256); |
3945 | - surface = new DockSurface (256, 256); |
3946 | - surface2 = new DockSurface (256, 256); |
3947 | + surface = new Surface (256, 256); |
3948 | + surface2 = new Surface (256, 256); |
3949 | |
3950 | unowned Cairo.Context cr = surface.Context; |
3951 | Gdk.cairo_set_source_pixbuf (cr, pixbuf, 0, 0); |
3952 | @@ -347,7 +346,7 @@ |
3953 | { |
3954 | for (int i = AnimationMode.LINEAR; i < AnimationMode.LAST; i++) |
3955 | for (int j = 0; j <= 100; j++) |
3956 | - Drawing.easing_for_mode ((AnimationMode) i, j, 100); |
3957 | + easing_for_mode ((AnimationMode) i, j, 100); |
3958 | } |
3959 | |
3960 | void drawing_theme () |
3961 | @@ -368,12 +367,12 @@ |
3962 | |
3963 | void drawing_theme_draw_item_count () |
3964 | { |
3965 | - Drawing.DockSurface surface; |
3966 | + Surface surface; |
3967 | DockTheme docktheme; |
3968 | |
3969 | - surface = new DockSurface (512, 512); |
3970 | + surface = new Surface (512, 512); |
3971 | docktheme = new DockTheme ("Test"); |
3972 | - Drawing.Color color = { 0.5, 0.4, 0.3, 1.0 }; |
3973 | + Color color = { 0.5, 0.4, 0.3, 1.0 }; |
3974 | |
3975 | docktheme.draw_item_count (surface, 64, color, -100); |
3976 | docktheme.draw_item_count (surface, 64, color, 0); |
3977 | @@ -383,12 +382,12 @@ |
3978 | |
3979 | void drawing_theme_draw_item_progress () |
3980 | { |
3981 | - Drawing.DockSurface surface; |
3982 | + Surface surface; |
3983 | DockTheme docktheme; |
3984 | |
3985 | - surface = new DockSurface (512, 512); |
3986 | + surface = new Surface (512, 512); |
3987 | docktheme = new DockTheme ("Test"); |
3988 | - Drawing.Color color = { 0.5, 0.4, 0.3, 1.0 }; |
3989 | + Color color = { 0.5, 0.4, 0.3, 1.0 }; |
3990 | |
3991 | docktheme.draw_item_progress (surface, 64, color, -1.0); |
3992 | docktheme.draw_item_progress (surface, 64, color, 0); |
3993 | @@ -399,12 +398,12 @@ |
3994 | |
3995 | void drawing_theme_draw_active_glow () |
3996 | { |
3997 | - Drawing.DockSurface surface; |
3998 | + Surface surface; |
3999 | DockTheme docktheme; |
4000 | |
4001 | - surface = new DockSurface (512, 128); |
4002 | + surface = new Surface (512, 128); |
4003 | docktheme = new DockTheme ("Test"); |
4004 | - Drawing.Color color = { 0.5, 0.4, 0.3, 1.0 }; |
4005 | + Color color = { 0.5, 0.4, 0.3, 1.0 }; |
4006 | |
4007 | docktheme.draw_active_glow (surface, {16, 16, 480, 96}, {16, 16, 80, 80}, color, -0.1, Gtk.PositionType.BOTTOM); |
4008 | docktheme.draw_active_glow (surface, {16, 16, 480, 96}, {16, 16, 80, 80}, color, 0.1, Gtk.PositionType.BOTTOM); |
4009 | @@ -415,12 +414,12 @@ |
4010 | |
4011 | void drawing_theme_create_indicator () |
4012 | { |
4013 | - Drawing.DockSurface surface, surface2; |
4014 | + Surface surface, surface2; |
4015 | DockTheme docktheme; |
4016 | |
4017 | - surface = new DockSurface (512, 512); |
4018 | + surface = new Surface (512, 512); |
4019 | docktheme = new DockTheme ("Test"); |
4020 | - Drawing.Color color = { 0.5, 0.4, 0.3, 1.0 }; |
4021 | + Color color = { 0.5, 0.4, 0.3, 1.0 }; |
4022 | |
4023 | surface2 = docktheme.create_indicator (-1, color, surface); |
4024 | surface2 = docktheme.create_indicator (64, color, surface); |
4025 | @@ -429,12 +428,12 @@ |
4026 | |
4027 | void drawing_theme_create_urgent_glow () |
4028 | { |
4029 | - Drawing.DockSurface surface, surface2; |
4030 | + Surface surface, surface2; |
4031 | DockTheme docktheme; |
4032 | |
4033 | - surface = new DockSurface (512, 512); |
4034 | + surface = new Surface (512, 512); |
4035 | docktheme = new DockTheme ("Test"); |
4036 | - Drawing.Color color = { 0.5, 0.4, 0.3, 1.0 }; |
4037 | + Color color = { 0.5, 0.4, 0.3, 1.0 }; |
4038 | |
4039 | surface2 = docktheme.create_urgent_glow (-1, color, surface); |
4040 | surface2 = docktheme.create_urgent_glow (64, color, surface); |
4041 | @@ -443,11 +442,11 @@ |
4042 | |
4043 | void drawing_theme_draw_background () |
4044 | { |
4045 | - Drawing.DockSurface surface, surface2, surface3, surface4, surface5; |
4046 | + Surface surface, surface2, surface3, surface4, surface5; |
4047 | DockTheme docktheme; |
4048 | Gdk.Pixbuf pixbuf2, pixbuf3, pixbuf4, pixbuf5; |
4049 | |
4050 | - surface = new DockSurface (512, 512); |
4051 | + surface = new Surface (512, 512); |
4052 | docktheme = new DockTheme ("Test"); |
4053 | docktheme.draw_background (surface); |
4054 | |
4055 | |
4056 | === modified file 'tests/Items.vala' |
4057 | --- tests/Items.vala 2015-05-17 11:04:46 +0000 |
4058 | +++ tests/Items.vala 2015-11-03 12:02:25 +0000 |
4059 | @@ -17,10 +17,9 @@ |
4060 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
4061 | // |
4062 | |
4063 | -using Plank.Drawing; |
4064 | -using Plank.Items; |
4065 | +using Plank; |
4066 | |
4067 | -namespace Plank.Tests |
4068 | +namespace PlankTests |
4069 | { |
4070 | public static void register_items_tests () |
4071 | { |
4072 | @@ -71,12 +70,12 @@ |
4073 | assert (item.unique_id () != ""); |
4074 | assert (item.unique_id () != item2.unique_id ()); |
4075 | |
4076 | - var icon = item.get_surface_copy (111, 111, new DockSurface (1, 1)); |
4077 | + var icon = item.get_surface_copy (111, 111, new Surface (1, 1)); |
4078 | assert (icon != null); |
4079 | assert (icon.Width == 111); |
4080 | assert (icon.Height == 111); |
4081 | |
4082 | - var icon2 = item.get_surface_copy (111, 111, new DockSurface (1, 1)); |
4083 | + var icon2 = item.get_surface_copy (111, 111, new Surface (1, 1)); |
4084 | assert (icon != null); |
4085 | assert (icon2 != null); |
4086 | assert (icon != icon2); |
4087 | @@ -90,7 +89,7 @@ |
4088 | |
4089 | item = new FileDockItem.with_file (File.new_for_path (Config.DATA_DIR + "/test.desktop")); |
4090 | |
4091 | - var icon = item.get_surface_copy (64, 64, new DockSurface (1, 1)); |
4092 | + var icon = item.get_surface_copy (64, 64, new Surface (1, 1)); |
4093 | assert (icon != null); |
4094 | assert (icon.Width == 64); |
4095 | assert (icon.Height == 64); |
4096 | |
4097 | === modified file 'tests/Main.vala' |
4098 | --- tests/Main.vala 2015-04-27 13:39:02 +0000 |
4099 | +++ tests/Main.vala 2015-11-03 12:02:25 +0000 |
4100 | @@ -17,13 +17,9 @@ |
4101 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
4102 | // |
4103 | |
4104 | -using Plank.Drawing; |
4105 | -using Plank.Factories; |
4106 | -using Plank.Services; |
4107 | - |
4108 | -using Plank.Services.Windows; |
4109 | - |
4110 | -namespace Plank.Tests |
4111 | +using Plank; |
4112 | + |
4113 | +namespace PlankTests |
4114 | { |
4115 | public const string TEST_ICON = Config.DATA_DIR + "/test-icon.svg"; |
4116 | public const string TEST_DOCK_NAME = "dock1"; |
4117 | |
4118 | === modified file 'tests/Preferences.vala' |
4119 | --- tests/Preferences.vala 2015-04-27 13:39:02 +0000 |
4120 | +++ tests/Preferences.vala 2015-11-03 12:02:25 +0000 |
4121 | @@ -17,9 +17,9 @@ |
4122 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
4123 | // |
4124 | |
4125 | -using Plank.Services; |
4126 | +using Plank; |
4127 | |
4128 | -namespace Plank.Tests |
4129 | +namespace PlankTests |
4130 | { |
4131 | public static void register_preferences_tests () |
4132 | { |
4133 | @@ -39,7 +39,7 @@ |
4134 | public double DoubleSetting { get; set; } |
4135 | public int IntSetting { get; set; } |
4136 | public string StringSetting { get; set; } |
4137 | - public Plank.Drawing.Color ColorSetting { get; set; } |
4138 | + public Plank.Color ColorSetting { get; set; } |
4139 | |
4140 | public TestPreferences (string filename) |
4141 | { |
4142 | @@ -81,8 +81,8 @@ |
4143 | |
4144 | void preferences_basics () |
4145 | { |
4146 | - Plank.Drawing.Color color = { 0.3, 0.6, 0.1, 1.0 }; |
4147 | - Plank.Drawing.Color color2 = { 0.5, 0.3, 0.7, 0.9 }; |
4148 | + Plank.Color color = { 0.3, 0.6, 0.1, 1.0 }; |
4149 | + Plank.Color color2 = { 0.5, 0.3, 0.7, 0.9 }; |
4150 | |
4151 | var prefs = new TestPreferences ("test_preferences_basics"); |
4152 | assert (prefs.BoolSetting == true); |
4153 | |
4154 | === modified file 'tests/TestHelper.vala' |
4155 | --- tests/TestHelper.vala 2015-05-17 11:04:46 +0000 |
4156 | +++ tests/TestHelper.vala 2015-11-03 12:02:25 +0000 |
4157 | @@ -17,9 +17,9 @@ |
4158 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
4159 | // |
4160 | |
4161 | -using Plank.Items; |
4162 | +using Plank; |
4163 | |
4164 | -namespace Plank.Tests |
4165 | +namespace PlankTests |
4166 | { |
4167 | public class TestDockItem : DockItem |
4168 | { |
4169 | |
4170 | === modified file 'tests/Widgets.vala' |
4171 | --- tests/Widgets.vala 2015-11-02 13:42:37 +0000 |
4172 | +++ tests/Widgets.vala 2015-11-03 12:02:25 +0000 |
4173 | @@ -17,9 +17,9 @@ |
4174 | // along with this program. If not, see <http://www.gnu.org/licenses/>. |
4175 | // |
4176 | |
4177 | -using Plank.Widgets; |
4178 | +using Plank; |
4179 | |
4180 | -namespace Plank.Tests |
4181 | +namespace PlankTests |
4182 | { |
4183 | public static void register_widgets_tests () |
4184 | { |
4185 | @@ -117,7 +117,7 @@ |
4186 | prefs.HideDelay = 100; |
4187 | prefs.Position = Gtk.PositionType.TOP; |
4188 | prefs.Offset = -33; |
4189 | - prefs.Theme = Plank.Drawing.Theme.GTK_THEME_NAME; |
4190 | + prefs.Theme = Plank.Theme.GTK_THEME_NAME; |
4191 | prefs.Alignment = Gtk.Align.FILL; |
4192 | prefs.ItemsAlignment = Gtk.Align.FILL; |
4193 | prefs.LockItems = true; |
4194 | |
4195 | === modified file 'tests/data/test-app.dockitem' |
4196 | --- tests/data/test-app.dockitem 2013-03-30 08:59:31 +0000 |
4197 | +++ tests/data/test-app.dockitem 2015-11-03 12:02:25 +0000 |
4198 | @@ -1,6 +1,6 @@ |
4199 | #This file auto-generated by Plank. |
4200 | #2013-01-28T20:33:01+0000 |
4201 | |
4202 | -[PlankItemsDockItemPreferences] |
4203 | +[PlankDockItemPreferences] |
4204 | #The uri for this item. |
4205 | Launcher=%TEST_DATA_DIR%/test.desktop |
4206 | |
4207 | === modified file 'tests/data/themes/Test/dock.theme' |
4208 | --- tests/data/themes/Test/dock.theme 2013-10-01 14:44:00 +0000 |
4209 | +++ tests/data/themes/Test/dock.theme 2015-11-03 12:02:25 +0000 |
4210 | @@ -1,7 +1,7 @@ |
4211 | #This file auto-generated by Plank. |
4212 | #2013-02-02T11:25:31+0000 |
4213 | |
4214 | -[PlankDrawingTheme] |
4215 | +[PlankTheme] |
4216 | #The roundness of the top corners. |
4217 | TopRoundness=4 |
4218 | #The roundness of the bottom corners. |
4219 | @@ -17,7 +17,7 @@ |
4220 | #The color (RGBA) of the inner stroke. |
4221 | InnerStrokeColor=255;;255;;255;;255 |
4222 | |
4223 | -[PlankDrawingDockTheme] |
4224 | +[PlankDockTheme] |
4225 | #The padding on the left/right dock edges, in tenths of a percent of IconSize. |
4226 | HorizPadding=0 |
4227 | #The padding on the top dock edge, in tenths of a percent of IconSize. |
4228 | |
4229 | === modified file 'tests/gmock/color.cpp' |
4230 | --- tests/gmock/color.cpp 2015-07-25 14:52:26 +0000 |
4231 | +++ tests/gmock/color.cpp 2015-11-03 12:02:25 +0000 |
4232 | @@ -23,571 +23,571 @@ |
4233 | |
4234 | TEST (color, set_hsv_zero_1) |
4235 | { |
4236 | - PlankDrawingColor* c = new PlankDrawingColor (); |
4237 | + PlankColor* c = new PlankColor (); |
4238 | |
4239 | double h = 0; |
4240 | double s = 0; |
4241 | double v = 0; |
4242 | - plank_drawing_color_set_hsv (c, h, s, v); |
4243 | + plank_color_set_hsv (c, h, s, v); |
4244 | |
4245 | - EXPECT_DOUBLE_EQ (h, plank_drawing_color_get_hue (c)); |
4246 | - EXPECT_DOUBLE_EQ (s, plank_drawing_color_get_sat (c)); |
4247 | - EXPECT_DOUBLE_EQ (v, plank_drawing_color_get_val (c)); |
4248 | + EXPECT_DOUBLE_EQ (h, plank_color_get_hue (c)); |
4249 | + EXPECT_DOUBLE_EQ (s, plank_color_get_sat (c)); |
4250 | + EXPECT_DOUBLE_EQ (v, plank_color_get_val (c)); |
4251 | |
4252 | delete (c); |
4253 | } |
4254 | |
4255 | TEST (color, set_hsv_inrange) |
4256 | { |
4257 | - PlankDrawingColor* c = new PlankDrawingColor (); |
4258 | + PlankColor* c = new PlankColor (); |
4259 | |
4260 | double h = 100; |
4261 | double s = 0.5; |
4262 | double v = 0.5; |
4263 | - plank_drawing_color_set_hsv (c, h, s, v); |
4264 | + plank_color_set_hsv (c, h, s, v); |
4265 | |
4266 | - EXPECT_NEAR (h, plank_drawing_color_get_hue (c), 0.0001); |
4267 | - EXPECT_NEAR (s, plank_drawing_color_get_sat (c), 0.0001); |
4268 | - EXPECT_NEAR (v, plank_drawing_color_get_val (c), 0.0001); |
4269 | + EXPECT_NEAR (h, plank_color_get_hue (c), 0.0001); |
4270 | + EXPECT_NEAR (s, plank_color_get_sat (c), 0.0001); |
4271 | + EXPECT_NEAR (v, plank_color_get_val (c), 0.0001); |
4272 | |
4273 | delete (c); |
4274 | } |
4275 | |
4276 | TEST (color, set_hsv_minus_value) |
4277 | { |
4278 | - PlankDrawingColor* c = new PlankDrawingColor (); |
4279 | + PlankColor* c = new PlankColor (); |
4280 | |
4281 | double h = -1; |
4282 | double s = -1; |
4283 | double v = -1; |
4284 | - plank_drawing_color_set_hsv (c, h, s, v); |
4285 | + plank_color_set_hsv (c, h, s, v); |
4286 | |
4287 | - EXPECT_DOUBLE_EQ (0, plank_drawing_color_get_hue (c)); |
4288 | - EXPECT_DOUBLE_EQ (0, plank_drawing_color_get_sat (c)); |
4289 | - EXPECT_DOUBLE_EQ (0, plank_drawing_color_get_val (c)); |
4290 | + EXPECT_DOUBLE_EQ (0, plank_color_get_hue (c)); |
4291 | + EXPECT_DOUBLE_EQ (0, plank_color_get_sat (c)); |
4292 | + EXPECT_DOUBLE_EQ (0, plank_color_get_val (c)); |
4293 | |
4294 | delete (c); |
4295 | } |
4296 | |
4297 | TEST (color, set_hsv_max) |
4298 | { |
4299 | - PlankDrawingColor* c = new PlankDrawingColor (); |
4300 | + PlankColor* c = new PlankColor (); |
4301 | |
4302 | double h = 40000; |
4303 | double s = 50000; |
4304 | double v = 60000; |
4305 | - plank_drawing_color_set_hsv (c, h, s, v); |
4306 | + plank_color_set_hsv (c, h, s, v); |
4307 | |
4308 | - EXPECT_DOUBLE_EQ (0, plank_drawing_color_get_hue (c)); |
4309 | - EXPECT_DOUBLE_EQ (0, plank_drawing_color_get_sat (c)); |
4310 | - EXPECT_DOUBLE_EQ (0, plank_drawing_color_get_val (c)); |
4311 | + EXPECT_DOUBLE_EQ (0, plank_color_get_hue (c)); |
4312 | + EXPECT_DOUBLE_EQ (0, plank_color_get_sat (c)); |
4313 | + EXPECT_DOUBLE_EQ (0, plank_color_get_val (c)); |
4314 | |
4315 | delete (c); |
4316 | } |
4317 | |
4318 | TEST (color, set_hue_in_range) |
4319 | { |
4320 | - PlankDrawingColor* c = new PlankDrawingColor (); |
4321 | + PlankColor* c = new PlankColor (); |
4322 | |
4323 | //init color with value's |
4324 | - plank_drawing_color_set_hsv (c, 100, 0.5, 0.5); |
4325 | + plank_color_set_hsv (c, 100, 0.5, 0.5); |
4326 | |
4327 | - plank_drawing_color_set_hue (c, 10); |
4328 | - EXPECT_NEAR (10, plank_drawing_color_get_hue (c), 0.0001); |
4329 | + plank_color_set_hue (c, 10); |
4330 | + EXPECT_NEAR (10, plank_color_get_hue (c), 0.0001); |
4331 | double hue_value = 150; |
4332 | - double hue_current = plank_drawing_color_get_hue (c); |
4333 | - plank_drawing_color_set_hue (c, hue_value); |
4334 | + double hue_current = plank_color_get_hue (c); |
4335 | + plank_color_set_hue (c, hue_value); |
4336 | |
4337 | - EXPECT_EQ (hue_value, plank_drawing_color_get_hue (c)); |
4338 | - EXPECT_NE (hue_current, plank_drawing_color_get_hue (c)); |
4339 | + EXPECT_EQ (hue_value, plank_color_get_hue (c)); |
4340 | + EXPECT_NE (hue_current, plank_color_get_hue (c)); |
4341 | |
4342 | delete (c); |
4343 | } |
4344 | |
4345 | TEST (color, set_hue_zero) |
4346 | { |
4347 | - PlankDrawingColor* c = new PlankDrawingColor (); |
4348 | + PlankColor* c = new PlankColor (); |
4349 | |
4350 | //init color with value's |
4351 | - plank_drawing_color_set_hsv (c, 100, 0.5, 0.5); |
4352 | + plank_color_set_hsv (c, 100, 0.5, 0.5); |
4353 | |
4354 | - plank_drawing_color_set_hue (c, 5); |
4355 | + plank_color_set_hue (c, 5); |
4356 | double hue_zero = 0; |
4357 | - double hue_current = plank_drawing_color_get_hue (c); |
4358 | - plank_drawing_color_set_hue (c, hue_zero); |
4359 | + double hue_current = plank_color_get_hue (c); |
4360 | + plank_color_set_hue (c, hue_zero); |
4361 | |
4362 | - EXPECT_DOUBLE_EQ (hue_zero, plank_drawing_color_get_hue (c)); |
4363 | - EXPECT_NE (hue_current, plank_drawing_color_get_hue (c)); |
4364 | + EXPECT_DOUBLE_EQ (hue_zero, plank_color_get_hue (c)); |
4365 | + EXPECT_NE (hue_current, plank_color_get_hue (c)); |
4366 | |
4367 | delete (c); |
4368 | } |
4369 | |
4370 | TEST (color, set_hue_out_of_range) |
4371 | { |
4372 | - PlankDrawingColor* c = new PlankDrawingColor (); |
4373 | + PlankColor* c = new PlankColor (); |
4374 | |
4375 | double hue_value = 500; |
4376 | - double hue_current = plank_drawing_color_get_hue (c); |
4377 | - plank_drawing_color_set_hue (c, hue_value); |
4378 | + double hue_current = plank_color_get_hue (c); |
4379 | + plank_color_set_hue (c, hue_value); |
4380 | |
4381 | - EXPECT_NE (hue_value, plank_drawing_color_get_hue (c)); |
4382 | - EXPECT_DOUBLE_EQ (hue_current, plank_drawing_color_get_hue (c)); |
4383 | + EXPECT_NE (hue_value, plank_color_get_hue (c)); |
4384 | + EXPECT_DOUBLE_EQ (hue_current, plank_color_get_hue (c)); |
4385 | |
4386 | delete (c); |
4387 | } |
4388 | |
4389 | TEST (color, add_hue) |
4390 | { |
4391 | - PlankDrawingColor* c = new PlankDrawingColor (); |
4392 | + PlankColor* c = new PlankColor (); |
4393 | |
4394 | //init color with value's |
4395 | - plank_drawing_color_set_hsv (c, 100, 0.5, 0.5); |
4396 | + plank_color_set_hsv (c, 100, 0.5, 0.5); |
4397 | |
4398 | double hue_value = 50; |
4399 | - plank_drawing_color_set_hue (c, hue_value); |
4400 | - |
4401 | - EXPECT_DOUBLE_EQ (hue_value, plank_drawing_color_get_hue (c)); |
4402 | - plank_drawing_color_add_hue (c, hue_value); |
4403 | - |
4404 | - EXPECT_NE (hue_value, plank_drawing_color_get_hue (c)); |
4405 | - EXPECT_DOUBLE_EQ (2 * hue_value, plank_drawing_color_get_hue (c)); |
4406 | + plank_color_set_hue (c, hue_value); |
4407 | + |
4408 | + EXPECT_DOUBLE_EQ (hue_value, plank_color_get_hue (c)); |
4409 | + plank_color_add_hue (c, hue_value); |
4410 | + |
4411 | + EXPECT_NE (hue_value, plank_color_get_hue (c)); |
4412 | + EXPECT_DOUBLE_EQ (2 * hue_value, plank_color_get_hue (c)); |
4413 | |
4414 | delete (c); |
4415 | } |
4416 | |
4417 | TEST (color, add_hue_shift_more_than_one_rad) |
4418 | { |
4419 | - PlankDrawingColor* c = new PlankDrawingColor (); |
4420 | + PlankColor* c = new PlankColor (); |
4421 | |
4422 | //init color with value's |
4423 | - plank_drawing_color_set_hsv (c, 100, 0.5, 0.5); |
4424 | + plank_color_set_hsv (c, 100, 0.5, 0.5); |
4425 | |
4426 | double hue_value = 200; |
4427 | - plank_drawing_color_set_hue (c, hue_value); |
4428 | - |
4429 | - EXPECT_DOUBLE_EQ (hue_value, plank_drawing_color_get_hue (c)); |
4430 | - plank_drawing_color_add_hue (c, hue_value); |
4431 | - |
4432 | - EXPECT_NE (hue_value, plank_drawing_color_get_hue (c)); |
4433 | - EXPECT_DOUBLE_EQ ((2 * hue_value - 360), plank_drawing_color_get_hue (c)); |
4434 | + plank_color_set_hue (c, hue_value); |
4435 | + |
4436 | + EXPECT_DOUBLE_EQ (hue_value, plank_color_get_hue (c)); |
4437 | + plank_color_add_hue (c, hue_value); |
4438 | + |
4439 | + EXPECT_NE (hue_value, plank_color_get_hue (c)); |
4440 | + EXPECT_DOUBLE_EQ ((2 * hue_value - 360), plank_color_get_hue (c)); |
4441 | |
4442 | delete (c); |
4443 | } |
4444 | |
4445 | TEST (color, set_sat_zero) |
4446 | { |
4447 | - PlankDrawingColor* c = new PlankDrawingColor (); |
4448 | + PlankColor* c = new PlankColor (); |
4449 | |
4450 | //init color with value's |
4451 | - plank_drawing_color_set_hsv (c, 100, 0.5, 0.5); |
4452 | + plank_color_set_hsv (c, 100, 0.5, 0.5); |
4453 | |
4454 | double sat_zero = 0; |
4455 | - double sat_old = plank_drawing_color_get_sat (c); |
4456 | - plank_drawing_color_set_sat (c, sat_zero); |
4457 | + double sat_old = plank_color_get_sat (c); |
4458 | + plank_color_set_sat (c, sat_zero); |
4459 | |
4460 | - EXPECT_DOUBLE_EQ (sat_zero, plank_drawing_color_get_sat (c)); |
4461 | - EXPECT_NE (sat_old, plank_drawing_color_get_sat (c)); |
4462 | + EXPECT_DOUBLE_EQ (sat_zero, plank_color_get_sat (c)); |
4463 | + EXPECT_NE (sat_old, plank_color_get_sat (c)); |
4464 | |
4465 | delete (c); |
4466 | } |
4467 | |
4468 | TEST (color, set_sat_in_range) |
4469 | { |
4470 | - PlankDrawingColor* c = new PlankDrawingColor (); |
4471 | + PlankColor* c = new PlankColor (); |
4472 | |
4473 | //init color with value's |
4474 | - plank_drawing_color_set_hsv (c, 100, 0.1, 0.5); |
4475 | + plank_color_set_hsv (c, 100, 0.1, 0.5); |
4476 | |
4477 | double sat_in_range = 0.5; //50% |
4478 | - double sat_old = plank_drawing_color_get_sat (c); |
4479 | - plank_drawing_color_set_sat (c, sat_in_range); |
4480 | + double sat_old = plank_color_get_sat (c); |
4481 | + plank_color_set_sat (c, sat_in_range); |
4482 | |
4483 | - EXPECT_DOUBLE_EQ (sat_in_range, plank_drawing_color_get_sat (c)); |
4484 | - EXPECT_NE (sat_old, plank_drawing_color_get_sat (c)); |
4485 | + EXPECT_DOUBLE_EQ (sat_in_range, plank_color_get_sat (c)); |
4486 | + EXPECT_NE (sat_old, plank_color_get_sat (c)); |
4487 | |
4488 | delete (c); |
4489 | } |
4490 | |
4491 | TEST (color, set_sat_out_of_range) |
4492 | { |
4493 | - PlankDrawingColor* c = new PlankDrawingColor (); |
4494 | + PlankColor* c = new PlankColor (); |
4495 | |
4496 | //init color with value's |
4497 | - plank_drawing_color_set_hsv (c, 100, 0.1, 0.5); |
4498 | + plank_color_set_hsv (c, 100, 0.1, 0.5); |
4499 | |
4500 | double sat_out_range = 5; // 500% |
4501 | - double sat_old = plank_drawing_color_get_sat (c); |
4502 | - plank_drawing_color_set_sat (c, sat_out_range); |
4503 | + double sat_old = plank_color_get_sat (c); |
4504 | + plank_color_set_sat (c, sat_out_range); |
4505 | |
4506 | - EXPECT_NE (sat_out_range, plank_drawing_color_get_sat (c)); |
4507 | - EXPECT_DOUBLE_EQ (sat_old, plank_drawing_color_get_sat (c)); |
4508 | + EXPECT_NE (sat_out_range, plank_color_get_sat (c)); |
4509 | + EXPECT_DOUBLE_EQ (sat_old, plank_color_get_sat (c)); |
4510 | |
4511 | delete (c); |
4512 | } |
4513 | |
4514 | TEST (color, set_min_sat) |
4515 | { |
4516 | - PlankDrawingColor* c = new PlankDrawingColor (); |
4517 | + PlankColor* c = new PlankColor (); |
4518 | |
4519 | //init color with value's |
4520 | - plank_drawing_color_set_hsv (c, 100, 0.1, 0.5); |
4521 | + plank_color_set_hsv (c, 100, 0.1, 0.5); |
4522 | |
4523 | double sat_value = 0.5; //50% |
4524 | - plank_drawing_color_set_min_sat (c, sat_value); |
4525 | - EXPECT_DOUBLE_EQ (sat_value, plank_drawing_color_get_sat (c)); |
4526 | + plank_color_set_min_sat (c, sat_value); |
4527 | + EXPECT_DOUBLE_EQ (sat_value, plank_color_get_sat (c)); |
4528 | |
4529 | delete (c); |
4530 | } |
4531 | |
4532 | TEST (color, set_min_sat_changed) |
4533 | { |
4534 | - PlankDrawingColor* c = new PlankDrawingColor (); |
4535 | + PlankColor* c = new PlankColor (); |
4536 | |
4537 | //init color with value's |
4538 | - plank_drawing_color_set_hsv (c, 100, 0.1, 0.5); |
4539 | + plank_color_set_hsv (c, 100, 0.1, 0.5); |
4540 | |
4541 | double sat_value = 0.1; //10% |
4542 | double sat_min = 0.5; //50% |
4543 | - plank_drawing_color_set_min_sat (c, sat_min); |
4544 | - EXPECT_DOUBLE_EQ (sat_min, plank_drawing_color_get_sat (c)); |
4545 | - |
4546 | - plank_drawing_color_set_sat (c, sat_value); |
4547 | - EXPECT_DOUBLE_EQ (sat_value, plank_drawing_color_get_sat (c)); |
4548 | - |
4549 | - plank_drawing_color_set_min_sat (c, sat_min); |
4550 | - EXPECT_NE (sat_value, plank_drawing_color_get_sat (c)); |
4551 | - EXPECT_DOUBLE_EQ (sat_min, plank_drawing_color_get_sat (c)); |
4552 | + plank_color_set_min_sat (c, sat_min); |
4553 | + EXPECT_DOUBLE_EQ (sat_min, plank_color_get_sat (c)); |
4554 | + |
4555 | + plank_color_set_sat (c, sat_value); |
4556 | + EXPECT_DOUBLE_EQ (sat_value, plank_color_get_sat (c)); |
4557 | + |
4558 | + plank_color_set_min_sat (c, sat_min); |
4559 | + EXPECT_NE (sat_value, plank_color_get_sat (c)); |
4560 | + EXPECT_DOUBLE_EQ (sat_min, plank_color_get_sat (c)); |
4561 | |
4562 | delete (c); |
4563 | } |
4564 | |
4565 | TEST (color, set_max_sat) |
4566 | { |
4567 | - PlankDrawingColor* c = new PlankDrawingColor (); |
4568 | + PlankColor* c = new PlankColor (); |
4569 | |
4570 | //init color with value's |
4571 | - plank_drawing_color_set_hsv (c, 100, 0.5, 0.5); |
4572 | + plank_color_set_hsv (c, 100, 0.5, 0.5); |
4573 | |
4574 | double sat_value = 0.1; //10% |
4575 | - plank_drawing_color_set_max_sat (c, sat_value); |
4576 | - EXPECT_DOUBLE_EQ (sat_value, plank_drawing_color_get_sat (c)); |
4577 | + plank_color_set_max_sat (c, sat_value); |
4578 | + EXPECT_DOUBLE_EQ (sat_value, plank_color_get_sat (c)); |
4579 | |
4580 | delete (c); |
4581 | } |
4582 | |
4583 | TEST (color, set_max_sat_changed) |
4584 | { |
4585 | - PlankDrawingColor* c = new PlankDrawingColor (); |
4586 | + PlankColor* c = new PlankColor (); |
4587 | |
4588 | //init color with value's |
4589 | - plank_drawing_color_set_hsv (c, 100, 0.5, 0.5); |
4590 | + plank_color_set_hsv (c, 100, 0.5, 0.5); |
4591 | |
4592 | double sat_value = 0.5; //50% |
4593 | double sat_max = 0.2; //20% |
4594 | - plank_drawing_color_set_max_sat (c, sat_max); |
4595 | - EXPECT_DOUBLE_EQ (sat_max, plank_drawing_color_get_sat (c)); |
4596 | - |
4597 | - plank_drawing_color_set_sat (c, sat_value); |
4598 | - EXPECT_DOUBLE_EQ (sat_value, plank_drawing_color_get_sat (c)); |
4599 | - |
4600 | - plank_drawing_color_set_max_sat (c, sat_max); |
4601 | - EXPECT_NE (sat_value, plank_drawing_color_get_sat (c)); |
4602 | - EXPECT_DOUBLE_EQ (sat_max, plank_drawing_color_get_sat (c)); |
4603 | + plank_color_set_max_sat (c, sat_max); |
4604 | + EXPECT_DOUBLE_EQ (sat_max, plank_color_get_sat (c)); |
4605 | + |
4606 | + plank_color_set_sat (c, sat_value); |
4607 | + EXPECT_DOUBLE_EQ (sat_value, plank_color_get_sat (c)); |
4608 | + |
4609 | + plank_color_set_max_sat (c, sat_max); |
4610 | + EXPECT_NE (sat_value, plank_color_get_sat (c)); |
4611 | + EXPECT_DOUBLE_EQ (sat_max, plank_color_get_sat (c)); |
4612 | |
4613 | delete (c); |
4614 | } |
4615 | |
4616 | TEST (color, set_max_and_min_sat) |
4617 | { |
4618 | - PlankDrawingColor* c = new PlankDrawingColor (); |
4619 | + PlankColor* c = new PlankColor (); |
4620 | |
4621 | //init color with value's |
4622 | - plank_drawing_color_set_hsv (c, 100, 0.5, 0.5); |
4623 | + plank_color_set_hsv (c, 100, 0.5, 0.5); |
4624 | |
4625 | double sat_value = 0.25; //25% |
4626 | double sat_min = 0.5; //50% |
4627 | double sat_max = 0.1; //10% |
4628 | - plank_drawing_color_set_max_sat (c, sat_max); |
4629 | - EXPECT_DOUBLE_EQ (sat_max, plank_drawing_color_get_sat (c)); |
4630 | - |
4631 | - plank_drawing_color_set_min_sat (c, sat_min); |
4632 | - EXPECT_DOUBLE_EQ (sat_min, plank_drawing_color_get_sat (c)); |
4633 | - |
4634 | - plank_drawing_color_set_sat (c, sat_value); |
4635 | - EXPECT_DOUBLE_EQ (sat_value, plank_drawing_color_get_sat (c)); |
4636 | + plank_color_set_max_sat (c, sat_max); |
4637 | + EXPECT_DOUBLE_EQ (sat_max, plank_color_get_sat (c)); |
4638 | + |
4639 | + plank_color_set_min_sat (c, sat_min); |
4640 | + EXPECT_DOUBLE_EQ (sat_min, plank_color_get_sat (c)); |
4641 | + |
4642 | + plank_color_set_sat (c, sat_value); |
4643 | + EXPECT_DOUBLE_EQ (sat_value, plank_color_get_sat (c)); |
4644 | |
4645 | delete (c); |
4646 | } |
4647 | |
4648 | TEST (color, multiply_sat) |
4649 | { |
4650 | - PlankDrawingColor* c = new PlankDrawingColor (); |
4651 | + PlankColor* c = new PlankColor (); |
4652 | |
4653 | //init color with value's |
4654 | - plank_drawing_color_set_hsv (c, 100, 0.5, 0.5); |
4655 | + plank_color_set_hsv (c, 100, 0.5, 0.5); |
4656 | |
4657 | double sat_value = 0.2; //20% |
4658 | double sat_multiply = 2; |
4659 | - plank_drawing_color_set_sat (c, sat_value); |
4660 | - EXPECT_DOUBLE_EQ (sat_value, plank_drawing_color_get_sat (c)); |
4661 | + plank_color_set_sat (c, sat_value); |
4662 | + EXPECT_DOUBLE_EQ (sat_value, plank_color_get_sat (c)); |
4663 | |
4664 | - plank_drawing_color_multiply_sat (c, sat_multiply); |
4665 | + plank_color_multiply_sat (c, sat_multiply); |
4666 | // expect equal with sat_value * sat_multiply. |
4667 | - EXPECT_DOUBLE_EQ (sat_value * sat_multiply, plank_drawing_color_get_sat (c)); |
4668 | + EXPECT_DOUBLE_EQ (sat_value * sat_multiply, plank_color_get_sat (c)); |
4669 | |
4670 | delete (c); |
4671 | } |
4672 | |
4673 | TEST (color, multiply_sat_false) |
4674 | { |
4675 | - PlankDrawingColor* c = new PlankDrawingColor (); |
4676 | + PlankColor* c = new PlankColor (); |
4677 | |
4678 | //init color with value's |
4679 | - plank_drawing_color_set_hsv (c, 100, 0.5, 0.5); |
4680 | + plank_color_set_hsv (c, 100, 0.5, 0.5); |
4681 | |
4682 | double sat_value = 0.8; //20% |
4683 | double sat_multiply = 2; |
4684 | - plank_drawing_color_set_sat (c, sat_value); |
4685 | - EXPECT_DOUBLE_EQ (sat_value, plank_drawing_color_get_sat (c)); |
4686 | + plank_color_set_sat (c, sat_value); |
4687 | + EXPECT_DOUBLE_EQ (sat_value, plank_color_get_sat (c)); |
4688 | |
4689 | - plank_drawing_color_multiply_sat (c, sat_multiply); |
4690 | + plank_color_multiply_sat (c, sat_multiply); |
4691 | // expect 1 because 1 is the max |
4692 | - EXPECT_DOUBLE_EQ (1, plank_drawing_color_get_sat (c)); |
4693 | + EXPECT_DOUBLE_EQ (1, plank_color_get_sat (c)); |
4694 | |
4695 | delete (c); |
4696 | } |
4697 | |
4698 | TEST (color, darken_by_sat) |
4699 | { |
4700 | - PlankDrawingColor* c = new PlankDrawingColor (); |
4701 | + PlankColor* c = new PlankColor (); |
4702 | |
4703 | //init color with value's |
4704 | - plank_drawing_color_set_hsv (c, 100, 0.5, 0.5); |
4705 | + plank_color_set_hsv (c, 100, 0.5, 0.5); |
4706 | |
4707 | double sat = 0.2; //20% |
4708 | double value = 0.8; //80% |
4709 | double sat_darken_amount = 0.2; |
4710 | - plank_drawing_color_set_sat (c, sat); |
4711 | - EXPECT_DOUBLE_EQ (sat, plank_drawing_color_get_sat (c)); |
4712 | - |
4713 | - plank_drawing_color_set_val (c, value); |
4714 | - EXPECT_DOUBLE_EQ (value, plank_drawing_color_get_val (c)); |
4715 | - |
4716 | - plank_drawing_color_darken_by_sat (c, sat_darken_amount); |
4717 | - EXPECT_NEAR (0.2 , plank_drawing_color_get_sat (c), 0.0001); |
4718 | - EXPECT_NEAR (value - 0.04, plank_drawing_color_get_val (c), 0.0001); |
4719 | + plank_color_set_sat (c, sat); |
4720 | + EXPECT_DOUBLE_EQ (sat, plank_color_get_sat (c)); |
4721 | + |
4722 | + plank_color_set_val (c, value); |
4723 | + EXPECT_DOUBLE_EQ (value, plank_color_get_val (c)); |
4724 | + |
4725 | + plank_color_darken_by_sat (c, sat_darken_amount); |
4726 | + EXPECT_NEAR (0.2 , plank_color_get_sat (c), 0.0001); |
4727 | + EXPECT_NEAR (value - 0.04, plank_color_get_val (c), 0.0001); |
4728 | |
4729 | delete (c); |
4730 | } |
4731 | |
4732 | TEST (color, darken_by_sat_false) |
4733 | { |
4734 | - PlankDrawingColor* c = new PlankDrawingColor (); |
4735 | + PlankColor* c = new PlankColor (); |
4736 | |
4737 | //init color with value's |
4738 | - plank_drawing_color_set_hsv (c, 100, 0.5, 0.5); |
4739 | + plank_color_set_hsv (c, 100, 0.5, 0.5); |
4740 | |
4741 | double sat = 0.8; //20% |
4742 | double value = 0.2; //80% |
4743 | double sat_darken_amount = 0.8; |
4744 | - plank_drawing_color_set_sat (c, sat); |
4745 | - EXPECT_DOUBLE_EQ (sat, plank_drawing_color_get_sat (c)); |
4746 | - |
4747 | - plank_drawing_color_set_val (c, value); |
4748 | - EXPECT_DOUBLE_EQ (value, plank_drawing_color_get_val (c)); |
4749 | - |
4750 | - plank_drawing_color_darken_by_sat (c, sat_darken_amount); |
4751 | - EXPECT_DOUBLE_EQ (0, plank_drawing_color_get_val (c)); |
4752 | + plank_color_set_sat (c, sat); |
4753 | + EXPECT_DOUBLE_EQ (sat, plank_color_get_sat (c)); |
4754 | + |
4755 | + plank_color_set_val (c, value); |
4756 | + EXPECT_DOUBLE_EQ (value, plank_color_get_val (c)); |
4757 | + |
4758 | + plank_color_darken_by_sat (c, sat_darken_amount); |
4759 | + EXPECT_DOUBLE_EQ (0, plank_color_get_val (c)); |
4760 | |
4761 | delete (c); |
4762 | } |
4763 | |
4764 | TEST (color, set_value_zero) |
4765 | { |
4766 | - PlankDrawingColor* c = new PlankDrawingColor (); |
4767 | + PlankColor* c = new PlankColor (); |
4768 | |
4769 | //init color with value's |
4770 | - plank_drawing_color_set_hsv (c, 100, 0.5, 0.5); |
4771 | + plank_color_set_hsv (c, 100, 0.5, 0.5); |
4772 | |
4773 | - plank_drawing_color_set_val (c, 0.5); |
4774 | + plank_color_set_val (c, 0.5); |
4775 | double value_zero = 0; |
4776 | - double value_old = plank_drawing_color_get_val (c); |
4777 | - plank_drawing_color_set_val (c, value_zero); |
4778 | + double value_old = plank_color_get_val (c); |
4779 | + plank_color_set_val (c, value_zero); |
4780 | |
4781 | // expect 0 and not equal with the old value. |
4782 | - EXPECT_DOUBLE_EQ (value_zero, plank_drawing_color_get_val (c)); |
4783 | - EXPECT_NE (value_old, plank_drawing_color_get_val (c)); |
4784 | + EXPECT_DOUBLE_EQ (value_zero, plank_color_get_val (c)); |
4785 | + EXPECT_NE (value_old, plank_color_get_val (c)); |
4786 | |
4787 | delete (c); |
4788 | } |
4789 | |
4790 | TEST (color, set_value_in_range) |
4791 | { |
4792 | - PlankDrawingColor* c = new PlankDrawingColor (); |
4793 | + PlankColor* c = new PlankColor (); |
4794 | |
4795 | //init color with value's |
4796 | - plank_drawing_color_set_hsv (c, 100, 0.1, 0.1); |
4797 | + plank_color_set_hsv (c, 100, 0.1, 0.1); |
4798 | |
4799 | double value_in_range = 0.5; //50% |
4800 | - double value_old = plank_drawing_color_get_val (c); |
4801 | - plank_drawing_color_set_val (c, value_in_range); |
4802 | + double value_old = plank_color_get_val (c); |
4803 | + plank_color_set_val (c, value_in_range); |
4804 | |
4805 | // expect 50 and not equal with the old value. |
4806 | - EXPECT_DOUBLE_EQ (value_in_range, plank_drawing_color_get_val (c)); |
4807 | - EXPECT_NE (value_old, plank_drawing_color_get_val (c)); |
4808 | + EXPECT_DOUBLE_EQ (value_in_range, plank_color_get_val (c)); |
4809 | + EXPECT_NE (value_old, plank_color_get_val (c)); |
4810 | |
4811 | delete (c); |
4812 | } |
4813 | |
4814 | TEST (color, set_value_out_of_range) |
4815 | { |
4816 | - PlankDrawingColor* c = new PlankDrawingColor (); |
4817 | + PlankColor* c = new PlankColor (); |
4818 | |
4819 | //init color with value's |
4820 | - plank_drawing_color_set_hsv (c, 100, 0.5, 0.5); |
4821 | + plank_color_set_hsv (c, 100, 0.5, 0.5); |
4822 | |
4823 | - plank_drawing_color_set_val (c, 5); |
4824 | + plank_color_set_val (c, 5); |
4825 | double vaule_out_range = 500; // 500% |
4826 | - double value_old = plank_drawing_color_get_val (c); |
4827 | - plank_drawing_color_set_val (c, vaule_out_range); |
4828 | + double value_old = plank_color_get_val (c); |
4829 | + plank_color_set_val (c, vaule_out_range); |
4830 | |
4831 | // expect equal with the old value not 500. |
4832 | - EXPECT_NE (vaule_out_range, plank_drawing_color_get_val (c)); |
4833 | - EXPECT_DOUBLE_EQ (value_old, plank_drawing_color_get_val (c)); |
4834 | + EXPECT_NE (vaule_out_range, plank_color_get_val (c)); |
4835 | + EXPECT_DOUBLE_EQ (value_old, plank_color_get_val (c)); |
4836 | |
4837 | delete (c); |
4838 | } |
4839 | |
4840 | TEST (color, set_min_val) |
4841 | { |
4842 | - PlankDrawingColor* c = new PlankDrawingColor (); |
4843 | + PlankColor* c = new PlankColor (); |
4844 | |
4845 | //init color with value's |
4846 | - plank_drawing_color_set_hsv (c, 100, 0.1, 0.1); |
4847 | + plank_color_set_hsv (c, 100, 0.1, 0.1); |
4848 | |
4849 | double value = 0.5; //50% |
4850 | - plank_drawing_color_set_min_val (c, value); |
4851 | - EXPECT_DOUBLE_EQ (value, plank_drawing_color_get_val (c)); |
4852 | + plank_color_set_min_val (c, value); |
4853 | + EXPECT_DOUBLE_EQ (value, plank_color_get_val (c)); |
4854 | |
4855 | delete (c); |
4856 | } |
4857 | |
4858 | TEST (color, set_min_val_changed) |
4859 | { |
4860 | - PlankDrawingColor* c = new PlankDrawingColor (); |
4861 | + PlankColor* c = new PlankColor (); |
4862 | |
4863 | //init color with value's |
4864 | - plank_drawing_color_set_hsv (c, 100, 0.1, 0.1); |
4865 | + plank_color_set_hsv (c, 100, 0.1, 0.1); |
4866 | |
4867 | double value = 0.1; //10% |
4868 | double val_min = 0.5; //50% |
4869 | - plank_drawing_color_set_min_val (c, val_min); |
4870 | - EXPECT_DOUBLE_EQ (val_min, plank_drawing_color_get_val (c)); |
4871 | - |
4872 | - plank_drawing_color_set_val (c, value); |
4873 | - EXPECT_DOUBLE_EQ (value, plank_drawing_color_get_val (c)); |
4874 | - |
4875 | - plank_drawing_color_set_min_val (c, val_min); |
4876 | - EXPECT_NE (value, plank_drawing_color_get_val (c)); |
4877 | - EXPECT_DOUBLE_EQ (val_min, plank_drawing_color_get_val (c)); |
4878 | + plank_color_set_min_val (c, val_min); |
4879 | + EXPECT_DOUBLE_EQ (val_min, plank_color_get_val (c)); |
4880 | + |
4881 | + plank_color_set_val (c, value); |
4882 | + EXPECT_DOUBLE_EQ (value, plank_color_get_val (c)); |
4883 | + |
4884 | + plank_color_set_min_val (c, val_min); |
4885 | + EXPECT_NE (value, plank_color_get_val (c)); |
4886 | + EXPECT_DOUBLE_EQ (val_min, plank_color_get_val (c)); |
4887 | |
4888 | delete (c); |
4889 | } |
4890 | |
4891 | TEST (color, set_max_val) |
4892 | { |
4893 | - PlankDrawingColor* c = new PlankDrawingColor (); |
4894 | + PlankColor* c = new PlankColor (); |
4895 | |
4896 | //init color with value's |
4897 | - plank_drawing_color_set_hsv (c, 100, 0.5, 0.5); |
4898 | + plank_color_set_hsv (c, 100, 0.5, 0.5); |
4899 | |
4900 | double sat_value = 0.1; //10% |
4901 | - plank_drawing_color_set_max_val (c, sat_value); |
4902 | - EXPECT_DOUBLE_EQ (sat_value, plank_drawing_color_get_val (c)); |
4903 | + plank_color_set_max_val (c, sat_value); |
4904 | + EXPECT_DOUBLE_EQ (sat_value, plank_color_get_val (c)); |
4905 | |
4906 | delete (c); |
4907 | } |
4908 | |
4909 | TEST (color, set_max_val_changed) |
4910 | { |
4911 | - PlankDrawingColor* c = new PlankDrawingColor (); |
4912 | + PlankColor* c = new PlankColor (); |
4913 | |
4914 | //init color with value's |
4915 | - plank_drawing_color_set_hsv (c, 100, 0.5, 0.5); |
4916 | + plank_color_set_hsv (c, 100, 0.5, 0.5); |
4917 | |
4918 | double value = 0.5; //50% |
4919 | double val_max = 0.2; //20% |
4920 | - plank_drawing_color_set_max_val (c, val_max); |
4921 | - EXPECT_DOUBLE_EQ (val_max, plank_drawing_color_get_val (c)); |
4922 | - |
4923 | - plank_drawing_color_set_val (c, value); |
4924 | - EXPECT_DOUBLE_EQ (value, plank_drawing_color_get_val (c)); |
4925 | - |
4926 | - plank_drawing_color_set_max_val (c, val_max); |
4927 | - EXPECT_NE (value, plank_drawing_color_get_val (c)); |
4928 | - EXPECT_DOUBLE_EQ (val_max, plank_drawing_color_get_val (c)); |
4929 | + plank_color_set_max_val (c, val_max); |
4930 | + EXPECT_DOUBLE_EQ (val_max, plank_color_get_val (c)); |
4931 | + |
4932 | + plank_color_set_val (c, value); |
4933 | + EXPECT_DOUBLE_EQ (value, plank_color_get_val (c)); |
4934 | + |
4935 | + plank_color_set_max_val (c, val_max); |
4936 | + EXPECT_NE (value, plank_color_get_val (c)); |
4937 | + EXPECT_DOUBLE_EQ (val_max, plank_color_get_val (c)); |
4938 | |
4939 | delete (c); |
4940 | } |
4941 | |
4942 | TEST (color, set_max_and_min_val) |
4943 | { |
4944 | - PlankDrawingColor* c = new PlankDrawingColor (); |
4945 | + PlankColor* c = new PlankColor (); |
4946 | |
4947 | //init color with value's |
4948 | - plank_drawing_color_set_hsv (c, 100, 0.5, 0.5); |
4949 | + plank_color_set_hsv (c, 100, 0.5, 0.5); |
4950 | |
4951 | double value = 0.25; //25% |
4952 | double val_min = 0.5; //50% |
4953 | double val_max = 0.1; //10% |
4954 | - plank_drawing_color_set_max_val (c, val_max); |
4955 | - EXPECT_DOUBLE_EQ (val_max, plank_drawing_color_get_val (c)); |
4956 | - |
4957 | - plank_drawing_color_set_min_val (c, val_min); |
4958 | - EXPECT_DOUBLE_EQ (val_min, plank_drawing_color_get_val (c)); |
4959 | - |
4960 | - plank_drawing_color_set_val (c, value); |
4961 | - EXPECT_DOUBLE_EQ (value, plank_drawing_color_get_val (c)); |
4962 | + plank_color_set_max_val (c, val_max); |
4963 | + EXPECT_DOUBLE_EQ (val_max, plank_color_get_val (c)); |
4964 | + |
4965 | + plank_color_set_min_val (c, val_min); |
4966 | + EXPECT_DOUBLE_EQ (val_min, plank_color_get_val (c)); |
4967 | + |
4968 | + plank_color_set_val (c, value); |
4969 | + EXPECT_DOUBLE_EQ (value, plank_color_get_val (c)); |
4970 | |
4971 | delete (c); |
4972 | } |
4973 | |
4974 | TEST (color, brighten_val) |
4975 | { |
4976 | - PlankDrawingColor* c = new PlankDrawingColor (); |
4977 | + PlankColor* c = new PlankColor (); |
4978 | |
4979 | //init color with value's |
4980 | - plank_drawing_color_set_hsv (c, 100, 0.5, 0.5); |
4981 | + plank_color_set_hsv (c, 100, 0.5, 0.5); |
4982 | |
4983 | double value = 0.25; //25% |
4984 | - plank_drawing_color_brighten_val (c,value); |
4985 | - EXPECT_DOUBLE_EQ (0.625, plank_drawing_color_get_val (c)); |
4986 | + plank_color_brighten_val (c,value); |
4987 | + EXPECT_DOUBLE_EQ (0.625, plank_color_get_val (c)); |
4988 | |
4989 | delete (c); |
4990 | } |
4991 | |
4992 | TEST (color, darken_val) |
4993 | { |
4994 | - PlankDrawingColor* c = new PlankDrawingColor (); |
4995 | + PlankColor* c = new PlankColor (); |
4996 | |
4997 | //init color with value's |
4998 | - plank_drawing_color_set_hsv (c, 100, 0.5, 0.5); |
4999 | + plank_color_set_hsv (c, 100, 0.5, 0.5); |
5000 |