Merge lp:~ted/indicator-appmenu/dbusmenu-collector-rename into lp:indicator-appmenu/0.4
- dbusmenu-collector-rename
- Merge into trunk.0.4
Proposed by
Ted Gould
Status: | Merged |
---|---|
Approved by: | Mikkel Kamstrup Erlandsen |
Approved revision: | 183 |
Merged at revision: | 140 |
Proposed branch: | lp:~ted/indicator-appmenu/dbusmenu-collector-rename |
Merge into: | lp:indicator-appmenu/0.4 |
Prerequisite: | lp:~ted/indicator-appmenu/hud |
Diff against target: |
644 lines (+119/-118) 6 files modified
.bzrignore (+2/-1) po/POTFILES.in (+1/-1) src/Makefile.am (+2/-2) src/hud-search.c (+30/-30) src/menuitem-collector.c (+50/-50) src/menuitem-collector.h (+34/-34) |
To merge this branch: | bzr merge lp:~ted/indicator-appmenu/dbusmenu-collector-rename |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Mikkel Kamstrup Erlandsen (community) | Approve | ||
Review via email: mp+90284@code.launchpad.net |
Commit message
Description of the change
Rename the dbusmenu-collector to menuitem-collector to avoid a potential namespace collision.
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file '.bzrignore' | |||
2 | --- .bzrignore 2012-01-26 16:51:25 +0000 | |||
3 | +++ .bzrignore 2012-01-26 16:51:25 +0000 | |||
4 | @@ -125,7 +125,7 @@ | |||
5 | 125 | src/hud_cli-hud-cli.gcno | 125 | src/hud_cli-hud-cli.gcno |
6 | 126 | src/hud_dump_application-dump-app-info.gcno | 126 | src/hud_dump_application-dump-app-info.gcno |
7 | 127 | src/hud_dump_application-hud-dump-application.gcno | 127 | src/hud_dump_application-hud-dump-application.gcno |
9 | 128 | src/hud_service-dbusmenu-collector.gcno | 128 | src/hud_service-menuitem-collector.gcno |
10 | 129 | src/hud_service-distance.gcno | 129 | src/hud_service-distance.gcno |
11 | 130 | src/hud_service-dump-app-info.gcno | 130 | src/hud_service-dump-app-info.gcno |
12 | 131 | src/hud_service-hud-dbus.gcno | 131 | src/hud_service-hud-dbus.gcno |
13 | @@ -168,3 +168,4 @@ | |||
14 | 168 | tests/test_usage_db_simple-test-usage-db-simple.gcno | 168 | tests/test_usage_db_simple-test-usage-db-simple.gcno |
15 | 169 | tests/test_usage_db_testapp-test-usage-db-testapp.gcda | 169 | tests/test_usage_db_testapp-test-usage-db-testapp.gcda |
16 | 170 | tests/test_usage_db_testapp-test-usage-db-testapp.gcno | 170 | tests/test_usage_db_testapp-test-usage-db-testapp.gcno |
17 | 171 | po/indicator-appmenu.pot | ||
18 | 171 | 172 | ||
19 | === modified file 'po/POTFILES.in' | |||
20 | --- po/POTFILES.in 2012-01-26 16:51:25 +0000 | |||
21 | +++ po/POTFILES.in 2012-01-26 16:51:25 +0000 | |||
22 | @@ -4,7 +4,7 @@ | |||
23 | 4 | src/hud-service.c | 4 | src/hud-service.c |
24 | 5 | src/indicator-tracker.c | 5 | src/indicator-tracker.c |
25 | 6 | src/hud-dbus.c | 6 | src/hud-dbus.c |
27 | 7 | src/dbusmenu-collector.c | 7 | src/menuitem-collector.c |
28 | 8 | src/usage-tracker.c | 8 | src/usage-tracker.c |
29 | 9 | src/hud.interface.c | 9 | src/hud.interface.c |
30 | 10 | src/hud-search.c | 10 | src/hud-search.c |
31 | 11 | 11 | ||
32 | === modified file 'src/Makefile.am' | |||
33 | --- src/Makefile.am 2012-01-26 16:51:25 +0000 | |||
34 | +++ src/Makefile.am 2012-01-26 16:51:25 +0000 | |||
35 | @@ -81,8 +81,8 @@ | |||
36 | 81 | #################### | 81 | #################### |
37 | 82 | 82 | ||
38 | 83 | hud_service_SOURCES = \ | 83 | hud_service_SOURCES = \ |
41 | 84 | dbusmenu-collector.h \ | 84 | menuitem-collector.h \ |
42 | 85 | dbusmenu-collector.c \ | 85 | menuitem-collector.c \ |
43 | 86 | distance.h \ | 86 | distance.h \ |
44 | 87 | distance.c \ | 87 | distance.c \ |
45 | 88 | dump-app-info.h \ | 88 | dump-app-info.h \ |
46 | 89 | 89 | ||
47 | === modified file 'src/hud-search.c' | |||
48 | --- src/hud-search.c 2012-01-26 16:51:25 +0000 | |||
49 | +++ src/hud-search.c 2012-01-26 16:51:25 +0000 | |||
50 | @@ -29,7 +29,7 @@ | |||
51 | 29 | #include <gio/gdesktopappinfo.h> | 29 | #include <gio/gdesktopappinfo.h> |
52 | 30 | 30 | ||
53 | 31 | #include "hud-search.h" | 31 | #include "hud-search.h" |
55 | 32 | #include "dbusmenu-collector.h" | 32 | #include "menuitem-collector.h" |
56 | 33 | #include "indicator-tracker.h" | 33 | #include "indicator-tracker.h" |
57 | 34 | #include "usage-tracker.h" | 34 | #include "usage-tracker.h" |
58 | 35 | #include "utils.h" | 35 | #include "utils.h" |
59 | @@ -41,7 +41,7 @@ | |||
60 | 41 | guint32 active_xid; | 41 | guint32 active_xid; |
61 | 42 | BamfApplication * active_app; | 42 | BamfApplication * active_app; |
62 | 43 | 43 | ||
64 | 44 | DbusmenuCollector * collector; | 44 | MenuitemCollector * collector; |
65 | 45 | UsageTracker * usage; | 45 | UsageTracker * usage; |
66 | 46 | 46 | ||
67 | 47 | GDBusProxy * appmenu; | 47 | GDBusProxy * appmenu; |
68 | @@ -111,7 +111,7 @@ | |||
69 | 111 | } | 111 | } |
70 | 112 | 112 | ||
71 | 113 | /* DBusMenu */ | 113 | /* DBusMenu */ |
73 | 114 | self->priv->collector = dbusmenu_collector_new(); | 114 | self->priv->collector = menuitem_collector_new(); |
74 | 115 | 115 | ||
75 | 116 | /* Usage Tracker */ | 116 | /* Usage Tracker */ |
76 | 117 | self->priv->usage = usage_tracker_new(); | 117 | self->priv->usage = usage_tracker_new(); |
77 | @@ -199,7 +199,7 @@ | |||
78 | 199 | 199 | ||
79 | 200 | typedef struct _usage_wrapper_t usage_wrapper_t; | 200 | typedef struct _usage_wrapper_t usage_wrapper_t; |
80 | 201 | struct _usage_wrapper_t { | 201 | struct _usage_wrapper_t { |
82 | 202 | DbusmenuCollectorFound * found; | 202 | MenuitemCollectorFound * found; |
83 | 203 | guint count; | 203 | guint count; |
84 | 204 | gfloat percent_usage; | 204 | gfloat percent_usage; |
85 | 205 | gfloat percent_distance; | 205 | gfloat percent_distance; |
86 | @@ -226,7 +226,7 @@ | |||
87 | 226 | usage_wrapper_t * wa = (usage_wrapper_t *)a; | 226 | usage_wrapper_t * wa = (usage_wrapper_t *)a; |
88 | 227 | usage_wrapper_t * wb = (usage_wrapper_t *)b; | 227 | usage_wrapper_t * wb = (usage_wrapper_t *)b; |
89 | 228 | 228 | ||
91 | 229 | return dbusmenu_collector_found_get_distance(wa->found) - dbusmenu_collector_found_get_distance(wb->found); | 229 | return menuitem_collector_found_get_distance(wa->found) - menuitem_collector_found_get_distance(wb->found); |
92 | 230 | } | 230 | } |
93 | 231 | 231 | ||
94 | 232 | /* Take the found list and put it into the usage array so that | 232 | /* Take the found list and put it into the usage array so that |
95 | @@ -241,10 +241,10 @@ | |||
96 | 241 | 241 | ||
97 | 242 | while (found != NULL) { | 242 | while (found != NULL) { |
98 | 243 | usage_wrapper_t usage; | 243 | usage_wrapper_t usage; |
100 | 244 | usage.found = (DbusmenuCollectorFound *)found->data; | 244 | usage.found = (MenuitemCollectorFound *)found->data; |
101 | 245 | usage.count = 0; | 245 | usage.count = 0; |
102 | 246 | 246 | ||
104 | 247 | if (dbusmenu_collector_found_get_distance(usage.found) > max_distance) { | 247 | if (menuitem_collector_found_get_distance(usage.found) > max_distance) { |
105 | 248 | continue; | 248 | continue; |
106 | 249 | } | 249 | } |
107 | 250 | 250 | ||
108 | @@ -308,7 +308,7 @@ | |||
109 | 308 | get_current_window_address(search, &address, &path); | 308 | get_current_window_address(search, &address, &path); |
110 | 309 | 309 | ||
111 | 310 | if (address != NULL && path != NULL) { | 310 | if (address != NULL && path != NULL) { |
113 | 311 | found_list = dbusmenu_collector_search(search->priv->collector, address, path, NULL, searchstr); | 311 | found_list = menuitem_collector_search(search->priv->collector, address, path, NULL, searchstr); |
114 | 312 | } | 312 | } |
115 | 313 | 313 | ||
116 | 314 | g_free(address); | 314 | g_free(address); |
117 | @@ -325,13 +325,13 @@ | |||
118 | 325 | gchar * icon = desktop_to_icon(desktop_file); | 325 | gchar * icon = desktop_to_icon(desktop_file); |
119 | 326 | 326 | ||
120 | 327 | while (founditem != NULL) { | 327 | while (founditem != NULL) { |
122 | 328 | DbusmenuCollectorFound * found = (DbusmenuCollectorFound *)founditem->data; | 328 | MenuitemCollectorFound * found = (MenuitemCollectorFound *)founditem->data; |
123 | 329 | 329 | ||
124 | 330 | /* Indicator */ | 330 | /* Indicator */ |
126 | 331 | dbusmenu_collector_found_set_indicator(found, desktop_file); | 331 | menuitem_collector_found_set_indicator(found, desktop_file); |
127 | 332 | 332 | ||
128 | 333 | /* Icon */ | 333 | /* Icon */ |
130 | 334 | dbusmenu_collector_found_set_app_icon(found, icon); | 334 | menuitem_collector_found_set_app_icon(found, icon); |
131 | 335 | 335 | ||
132 | 336 | founditem = g_list_next(founditem); | 336 | founditem = g_list_next(founditem); |
133 | 337 | } | 337 | } |
134 | @@ -364,23 +364,23 @@ | |||
135 | 364 | IndicatorTrackerIndicator * indicator = (IndicatorTrackerIndicator *)lindicator->data; | 364 | IndicatorTrackerIndicator * indicator = (IndicatorTrackerIndicator *)lindicator->data; |
136 | 365 | 365 | ||
137 | 366 | /* Search the menu items of the indicator */ | 366 | /* Search the menu items of the indicator */ |
139 | 367 | GList * found_list = dbusmenu_collector_search(search->priv->collector, indicator->dbus_name, indicator->dbus_object, indicator->prefix, searchstr); | 367 | GList * found_list = menuitem_collector_search(search->priv->collector, indicator->dbus_name, indicator->dbus_object, indicator->prefix, searchstr); |
140 | 368 | 368 | ||
141 | 369 | /* Increase distance */ | 369 | /* Increase distance */ |
142 | 370 | GList * founditem = found_list; | 370 | GList * founditem = found_list; |
143 | 371 | while (founditem != NULL) { | 371 | while (founditem != NULL) { |
145 | 372 | DbusmenuCollectorFound * found = (DbusmenuCollectorFound *)founditem->data; | 372 | MenuitemCollectorFound * found = (MenuitemCollectorFound *)founditem->data; |
146 | 373 | 373 | ||
147 | 374 | /* Distance */ | 374 | /* Distance */ |
149 | 375 | guint distance = dbusmenu_collector_found_get_distance(found); | 375 | guint distance = menuitem_collector_found_get_distance(found); |
150 | 376 | distance = distance + ((distance * indicator_penalty) / 100); | 376 | distance = distance + ((distance * indicator_penalty) / 100); |
152 | 377 | dbusmenu_collector_found_set_distance(found, distance); | 377 | menuitem_collector_found_set_distance(found, distance); |
153 | 378 | 378 | ||
154 | 379 | /* Names */ | 379 | /* Names */ |
156 | 380 | dbusmenu_collector_found_set_indicator(found, indicator->name); | 380 | menuitem_collector_found_set_indicator(found, indicator->name); |
157 | 381 | 381 | ||
158 | 382 | /* Icon */ | 382 | /* Icon */ |
160 | 383 | dbusmenu_collector_found_set_app_icon(found, indicator->icon); | 383 | menuitem_collector_found_set_app_icon(found, indicator->icon); |
161 | 384 | 384 | ||
162 | 385 | founditem = g_list_next(founditem); | 385 | founditem = g_list_next(founditem); |
163 | 386 | } | 386 | } |
164 | @@ -422,10 +422,10 @@ | |||
165 | 422 | 422 | ||
166 | 423 | const gchar * desktopfile = NULL; | 423 | const gchar * desktopfile = NULL; |
167 | 424 | 424 | ||
169 | 425 | desktopfile = dbusmenu_collector_found_get_indicator(usage->found); | 425 | desktopfile = menuitem_collector_found_get_indicator(usage->found); |
170 | 426 | 426 | ||
171 | 427 | if (desktopfile != NULL) { | 427 | if (desktopfile != NULL) { |
173 | 428 | usage->count = usage_tracker_get_usage(search->priv->usage, desktopfile, dbusmenu_collector_found_get_db(usage->found)); | 428 | usage->count = usage_tracker_get_usage(search->priv->usage, desktopfile, menuitem_collector_found_get_db(usage->found)); |
174 | 429 | } else { | 429 | } else { |
175 | 430 | usage->count = 0; | 430 | usage->count = 0; |
176 | 431 | } | 431 | } |
177 | @@ -437,7 +437,7 @@ | |||
178 | 437 | for (count = 0; count < usagedata->len; count++) { | 437 | for (count = 0; count < usagedata->len; count++) { |
179 | 438 | usage_wrapper_t * usage = &g_array_index(usagedata, usage_wrapper_t, count); | 438 | usage_wrapper_t * usage = &g_array_index(usagedata, usage_wrapper_t, count); |
180 | 439 | overall_usage += usage->count; | 439 | overall_usage += usage->count; |
182 | 440 | overall_distance += dbusmenu_collector_found_get_distance(usage->found); | 440 | overall_distance += menuitem_collector_found_get_distance(usage->found); |
183 | 441 | } | 441 | } |
184 | 442 | 442 | ||
185 | 443 | 443 | ||
186 | @@ -451,7 +451,7 @@ | |||
187 | 451 | usage->percent_usage = 1.0; | 451 | usage->percent_usage = 1.0; |
188 | 452 | } | 452 | } |
189 | 453 | 453 | ||
191 | 454 | usage->percent_distance = (gfloat)dbusmenu_collector_found_get_distance(usage->found)/(gfloat)overall_distance; | 454 | usage->percent_distance = (gfloat)menuitem_collector_found_get_distance(usage->found)/(gfloat)overall_distance; |
192 | 455 | } | 455 | } |
193 | 456 | 456 | ||
194 | 457 | /* Sort based on aggregate */ | 457 | /* Sort based on aggregate */ |
195 | @@ -508,19 +508,19 @@ | |||
196 | 508 | for (count = 0; count < 5 && count < usagedata->len; count++) { | 508 | for (count = 0; count < 5 && count < usagedata->len; count++) { |
197 | 509 | usage_wrapper_t * usage = &g_array_index(usagedata, usage_wrapper_t, count); | 509 | usage_wrapper_t * usage = &g_array_index(usagedata, usage_wrapper_t, count); |
198 | 510 | 510 | ||
200 | 511 | const gchar * desktopfile = dbusmenu_collector_found_get_indicator(usage->found); | 511 | const gchar * desktopfile = menuitem_collector_found_get_indicator(usage->found); |
201 | 512 | if (desktopfile == NULL) { | 512 | if (desktopfile == NULL) { |
202 | 513 | desktopfile = appdesktopfile; | 513 | desktopfile = appdesktopfile; |
203 | 514 | } | 514 | } |
204 | 515 | 515 | ||
205 | 516 | HudSearchSuggest * suggest = hud_search_suggest_new(desktopfile, | 516 | HudSearchSuggest * suggest = hud_search_suggest_new(desktopfile, |
209 | 517 | dbusmenu_collector_found_get_app_icon(usage->found), | 517 | menuitem_collector_found_get_app_icon(usage->found), |
210 | 518 | dbusmenu_collector_found_get_display(usage->found), | 518 | menuitem_collector_found_get_display(usage->found), |
211 | 519 | dbusmenu_collector_found_get_db(usage->found), | 519 | menuitem_collector_found_get_db(usage->found), |
212 | 520 | "none", | 520 | "none", |
216 | 521 | dbusmenu_collector_found_get_dbus_addr(usage->found), | 521 | menuitem_collector_found_get_dbus_addr(usage->found), |
217 | 522 | dbusmenu_collector_found_get_dbus_path(usage->found), | 522 | menuitem_collector_found_get_dbus_path(usage->found), |
218 | 523 | dbusmenu_collector_found_get_dbus_id(usage->found) | 523 | menuitem_collector_found_get_dbus_id(usage->found) |
219 | 524 | ); | 524 | ); |
220 | 525 | 525 | ||
221 | 526 | retval = g_list_prepend(retval, suggest); | 526 | retval = g_list_prepend(retval, suggest); |
222 | @@ -530,7 +530,7 @@ | |||
223 | 530 | 530 | ||
224 | 531 | /* Free the interim arrays of data */ | 531 | /* Free the interim arrays of data */ |
225 | 532 | g_array_free(usagedata, TRUE); | 532 | g_array_free(usagedata, TRUE); |
227 | 533 | dbusmenu_collector_found_list_free(found_list); | 533 | menuitem_collector_found_list_free(found_list); |
228 | 534 | 534 | ||
229 | 535 | return retval; | 535 | return retval; |
230 | 536 | } | 536 | } |
231 | @@ -557,7 +557,7 @@ | |||
232 | 557 | } | 557 | } |
233 | 558 | 558 | ||
234 | 559 | if (app != NULL && dbstring != NULL && address != NULL && path != NULL && id != 0) { | 559 | if (app != NULL && dbstring != NULL && address != NULL && path != NULL && id != 0) { |
236 | 560 | dbusmenu_collector_execute(search->priv->collector, address, path, id, timestamp); | 560 | menuitem_collector_execute(search->priv->collector, address, path, id, timestamp); |
237 | 561 | usage_tracker_mark_usage(search->priv->usage, app, dbstring); | 561 | usage_tracker_mark_usage(search->priv->usage, app, dbstring); |
238 | 562 | } | 562 | } |
239 | 563 | 563 | ||
240 | 564 | 564 | ||
241 | === renamed file 'src/dbusmenu-collector.c' => 'src/menuitem-collector.c' | |||
242 | --- src/dbusmenu-collector.c 2012-01-26 16:51:25 +0000 | |||
243 | +++ src/menuitem-collector.c 2012-01-26 16:51:25 +0000 | |||
244 | @@ -30,23 +30,23 @@ | |||
245 | 30 | 30 | ||
246 | 31 | #include <libdbusmenu-glib/client.h> | 31 | #include <libdbusmenu-glib/client.h> |
247 | 32 | 32 | ||
249 | 33 | #include "dbusmenu-collector.h" | 33 | #include "menuitem-collector.h" |
250 | 34 | #include "distance.h" | 34 | #include "distance.h" |
251 | 35 | #include "shared-values.h" | 35 | #include "shared-values.h" |
252 | 36 | #include "utils.h" | 36 | #include "utils.h" |
253 | 37 | 37 | ||
254 | 38 | #define GENERIC_ICON "dbusmenu-lens-panel" | 38 | #define GENERIC_ICON "dbusmenu-lens-panel" |
255 | 39 | 39 | ||
257 | 40 | typedef struct _DbusmenuCollectorPrivate DbusmenuCollectorPrivate; | 40 | typedef struct _MenuitemCollectorPrivate MenuitemCollectorPrivate; |
258 | 41 | 41 | ||
260 | 42 | struct _DbusmenuCollectorPrivate { | 42 | struct _MenuitemCollectorPrivate { |
261 | 43 | GDBusConnection * bus; | 43 | GDBusConnection * bus; |
262 | 44 | guint signal; | 44 | guint signal; |
263 | 45 | GHashTable * hash; | 45 | GHashTable * hash; |
264 | 46 | GSettings * search_settings; | 46 | GSettings * search_settings; |
265 | 47 | }; | 47 | }; |
266 | 48 | 48 | ||
268 | 49 | struct _DbusmenuCollectorFound { | 49 | struct _MenuitemCollectorFound { |
269 | 50 | gchar * dbus_addr; | 50 | gchar * dbus_addr; |
270 | 51 | gchar * dbus_path; | 51 | gchar * dbus_path; |
271 | 52 | gint dbus_id; | 52 | gint dbus_id; |
272 | @@ -73,35 +73,35 @@ | |||
273 | 73 | guint distance; | 73 | guint distance; |
274 | 74 | }; | 74 | }; |
275 | 75 | 75 | ||
280 | 76 | static void dbusmenu_collector_class_init (DbusmenuCollectorClass *klass); | 76 | static void menuitem_collector_class_init (MenuitemCollectorClass *klass); |
281 | 77 | static void dbusmenu_collector_init (DbusmenuCollector *self); | 77 | static void menuitem_collector_init (MenuitemCollector *self); |
282 | 78 | static void dbusmenu_collector_dispose (GObject *object); | 78 | static void menuitem_collector_dispose (GObject *object); |
283 | 79 | static void dbusmenu_collector_finalize (GObject *object); | 79 | static void menuitem_collector_finalize (GObject *object); |
284 | 80 | static void update_layout_cb (GDBusConnection * connection, const gchar * sender, const gchar * path, const gchar * interface, const gchar * signal, GVariant * params, gpointer user_data); | 80 | static void update_layout_cb (GDBusConnection * connection, const gchar * sender, const gchar * path, const gchar * interface, const gchar * signal, GVariant * params, gpointer user_data); |
285 | 81 | static guint menu_hash_func (gconstpointer key); | 81 | static guint menu_hash_func (gconstpointer key); |
286 | 82 | static gboolean menu_equal_func (gconstpointer a, gconstpointer b); | 82 | static gboolean menu_equal_func (gconstpointer a, gconstpointer b); |
287 | 83 | static void menu_key_destroy (gpointer key); | 83 | static void menu_key_destroy (gpointer key); |
289 | 84 | static DbusmenuCollectorFound * dbusmenu_collector_found_new (DbusmenuClient * client, DbusmenuMenuitem * item, GStrv strings, guint distance, GStrv usedstrings, const gchar * indicator_name); | 84 | static MenuitemCollectorFound * menuitem_collector_found_new (DbusmenuClient * client, DbusmenuMenuitem * item, GStrv strings, guint distance, GStrv usedstrings, const gchar * indicator_name); |
290 | 85 | 85 | ||
292 | 86 | G_DEFINE_TYPE (DbusmenuCollector, dbusmenu_collector, G_TYPE_OBJECT); | 86 | G_DEFINE_TYPE (MenuitemCollector, menuitem_collector, G_TYPE_OBJECT); |
293 | 87 | 87 | ||
294 | 88 | static void | 88 | static void |
296 | 89 | dbusmenu_collector_class_init (DbusmenuCollectorClass *klass) | 89 | menuitem_collector_class_init (MenuitemCollectorClass *klass) |
297 | 90 | { | 90 | { |
298 | 91 | GObjectClass *object_class = G_OBJECT_CLASS (klass); | 91 | GObjectClass *object_class = G_OBJECT_CLASS (klass); |
299 | 92 | 92 | ||
301 | 93 | g_type_class_add_private (klass, sizeof (DbusmenuCollectorPrivate)); | 93 | g_type_class_add_private (klass, sizeof (MenuitemCollectorPrivate)); |
302 | 94 | 94 | ||
305 | 95 | object_class->dispose = dbusmenu_collector_dispose; | 95 | object_class->dispose = menuitem_collector_dispose; |
306 | 96 | object_class->finalize = dbusmenu_collector_finalize; | 96 | object_class->finalize = menuitem_collector_finalize; |
307 | 97 | 97 | ||
308 | 98 | return; | 98 | return; |
309 | 99 | } | 99 | } |
310 | 100 | 100 | ||
311 | 101 | static void | 101 | static void |
313 | 102 | dbusmenu_collector_init (DbusmenuCollector *self) | 102 | menuitem_collector_init (MenuitemCollector *self) |
314 | 103 | { | 103 | { |
316 | 104 | self->priv = G_TYPE_INSTANCE_GET_PRIVATE ((self), DBUSMENU_COLLECTOR_TYPE, DbusmenuCollectorPrivate); | 104 | self->priv = G_TYPE_INSTANCE_GET_PRIVATE ((self), MENUITEM_COLLECTOR_TYPE, MenuitemCollectorPrivate); |
317 | 105 | 105 | ||
318 | 106 | self->priv->bus = NULL; | 106 | self->priv->bus = NULL; |
319 | 107 | self->priv->signal = 0; | 107 | self->priv->signal = 0; |
320 | @@ -144,9 +144,9 @@ | |||
321 | 144 | } | 144 | } |
322 | 145 | 145 | ||
323 | 146 | static void | 146 | static void |
325 | 147 | dbusmenu_collector_dispose (GObject *object) | 147 | menuitem_collector_dispose (GObject *object) |
326 | 148 | { | 148 | { |
328 | 149 | DbusmenuCollector * collector = DBUSMENU_COLLECTOR(object); | 149 | MenuitemCollector * collector = MENUITEM_COLLECTOR(object); |
329 | 150 | 150 | ||
330 | 151 | if (collector->priv->signal != 0) { | 151 | if (collector->priv->signal != 0) { |
331 | 152 | g_dbus_connection_signal_unsubscribe(collector->priv->bus, collector->priv->signal); | 152 | g_dbus_connection_signal_unsubscribe(collector->priv->bus, collector->priv->signal); |
332 | @@ -163,29 +163,29 @@ | |||
333 | 163 | collector->priv->search_settings = NULL; | 163 | collector->priv->search_settings = NULL; |
334 | 164 | } | 164 | } |
335 | 165 | 165 | ||
337 | 166 | G_OBJECT_CLASS (dbusmenu_collector_parent_class)->dispose (object); | 166 | G_OBJECT_CLASS (menuitem_collector_parent_class)->dispose (object); |
338 | 167 | return; | 167 | return; |
339 | 168 | } | 168 | } |
340 | 169 | 169 | ||
341 | 170 | static void | 170 | static void |
343 | 171 | dbusmenu_collector_finalize (GObject *object) | 171 | menuitem_collector_finalize (GObject *object) |
344 | 172 | { | 172 | { |
345 | 173 | 173 | ||
347 | 174 | G_OBJECT_CLASS (dbusmenu_collector_parent_class)->finalize (object); | 174 | G_OBJECT_CLASS (menuitem_collector_parent_class)->finalize (object); |
348 | 175 | return; | 175 | return; |
349 | 176 | } | 176 | } |
350 | 177 | 177 | ||
353 | 178 | DbusmenuCollector * | 178 | MenuitemCollector * |
354 | 179 | dbusmenu_collector_new (void) | 179 | menuitem_collector_new (void) |
355 | 180 | { | 180 | { |
357 | 181 | return DBUSMENU_COLLECTOR(g_object_new(DBUSMENU_COLLECTOR_TYPE, NULL)); | 181 | return MENUITEM_COLLECTOR(g_object_new(MENUITEM_COLLECTOR_TYPE, NULL)); |
358 | 182 | } | 182 | } |
359 | 183 | 183 | ||
360 | 184 | static void | 184 | static void |
361 | 185 | update_layout_cb (GDBusConnection * connection, const gchar * sender, const gchar * path, const gchar * interface, const gchar * signal, GVariant * params, gpointer user_data) | 185 | update_layout_cb (GDBusConnection * connection, const gchar * sender, const gchar * path, const gchar * interface, const gchar * signal, GVariant * params, gpointer user_data) |
362 | 186 | { | 186 | { |
363 | 187 | g_debug("Client updating %s:%s", sender, path); | 187 | g_debug("Client updating %s:%s", sender, path); |
365 | 188 | DbusmenuCollector * collector = DBUSMENU_COLLECTOR(user_data); | 188 | MenuitemCollector * collector = MENUITEM_COLLECTOR(user_data); |
366 | 189 | g_return_if_fail(collector != NULL); | 189 | g_return_if_fail(collector != NULL); |
367 | 190 | 190 | ||
368 | 191 | menu_key_t search_key = { | 191 | menu_key_t search_key = { |
369 | @@ -376,7 +376,7 @@ | |||
370 | 376 | guint distance = calculate_distance(search, newstr, &used_strings); | 376 | guint distance = calculate_distance(search, newstr, &used_strings); |
371 | 377 | if (distance < G_MAXUINT) { | 377 | if (distance < G_MAXUINT) { |
372 | 378 | // g_debug("Distance %d for '%s' in \"'%s'\" using \"'%s'\"", distance, search, g_strjoinv("' '", newstr), g_strjoinv("' '", used_strings)); | 378 | // g_debug("Distance %d for '%s' in \"'%s'\" using \"'%s'\"", distance, search, g_strjoinv("' '", newstr), g_strjoinv("' '", used_strings)); |
374 | 379 | results = g_list_prepend(results, dbusmenu_collector_found_new(client, rootitem, newstr, distance, used_strings, indicator_name)); | 379 | results = g_list_prepend(results, menuitem_collector_found_new(client, rootitem, newstr, distance, used_strings, indicator_name)); |
375 | 380 | } | 380 | } |
376 | 381 | g_strfreev(used_strings); | 381 | g_strfreev(used_strings); |
377 | 382 | } | 382 | } |
378 | @@ -399,7 +399,7 @@ | |||
379 | 399 | } | 399 | } |
380 | 400 | 400 | ||
381 | 401 | static GList * | 401 | static GList * |
383 | 402 | process_client (DbusmenuCollector * collector, DbusmenuClient * client, const gchar * search, GList * results, const gchar * indicator_name, GStrv prefix) | 402 | process_client (MenuitemCollector * collector, DbusmenuClient * client, const gchar * search, GList * results, const gchar * indicator_name, GStrv prefix) |
384 | 403 | { | 403 | { |
385 | 404 | /* Handle the case where there are no search terms */ | 404 | /* Handle the case where there are no search terms */ |
386 | 405 | if (search == NULL || search[0] == '\0') { | 405 | if (search == NULL || search[0] == '\0') { |
387 | @@ -418,7 +418,7 @@ | |||
388 | 418 | array[0] = label; | 418 | array[0] = label; |
389 | 419 | array[1] = NULL; | 419 | array[1] = NULL; |
390 | 420 | 420 | ||
392 | 421 | results = g_list_prepend(results, dbusmenu_collector_found_new(client, item, (GStrv)array, calculate_distance(NULL, (GStrv)array, NULL), NULL, indicator_name)); | 421 | results = g_list_prepend(results, menuitem_collector_found_new(client, item, (GStrv)array, calculate_distance(NULL, (GStrv)array, NULL), NULL, indicator_name)); |
393 | 422 | } | 422 | } |
394 | 423 | 423 | ||
395 | 424 | return results; | 424 | return results; |
396 | @@ -439,9 +439,9 @@ | |||
397 | 439 | } | 439 | } |
398 | 440 | 440 | ||
399 | 441 | static GList * | 441 | static GList * |
401 | 442 | just_do_it (DbusmenuCollector * collector, const gchar * dbus_addr, const gchar * dbus_path, const gchar * search, GList * results, const gchar * indicator_name, GStrv prefix) | 442 | just_do_it (MenuitemCollector * collector, const gchar * dbus_addr, const gchar * dbus_path, const gchar * search, GList * results, const gchar * indicator_name, GStrv prefix) |
402 | 443 | { | 443 | { |
404 | 444 | g_return_val_if_fail(IS_DBUSMENU_COLLECTOR(collector), results); | 444 | g_return_val_if_fail(IS_MENUITEM_COLLECTOR(collector), results); |
405 | 445 | 445 | ||
406 | 446 | menu_key_t search_key = { | 446 | menu_key_t search_key = { |
407 | 447 | sender: (gchar *)dbus_addr, | 447 | sender: (gchar *)dbus_addr, |
408 | @@ -462,7 +462,7 @@ | |||
409 | 462 | } | 462 | } |
410 | 463 | 463 | ||
411 | 464 | GList * | 464 | GList * |
413 | 465 | dbusmenu_collector_search (DbusmenuCollector * collector, const gchar * dbus_addr, const gchar * dbus_path, const gchar * prefix, const gchar * search) | 465 | menuitem_collector_search (MenuitemCollector * collector, const gchar * dbus_addr, const gchar * dbus_path, const gchar * prefix, const gchar * search) |
414 | 466 | { | 466 | { |
415 | 467 | GList * items = NULL; | 467 | GList * items = NULL; |
416 | 468 | GStrv prefixarray = NULL; | 468 | GStrv prefixarray = NULL; |
417 | @@ -483,9 +483,9 @@ | |||
418 | 483 | } | 483 | } |
419 | 484 | 484 | ||
420 | 485 | void | 485 | void |
422 | 486 | dbusmenu_collector_execute (DbusmenuCollector * collector, const gchar * dbus_addr, const gchar * dbus_path, gint id, guint timestamp) | 486 | menuitem_collector_execute (MenuitemCollector * collector, const gchar * dbus_addr, const gchar * dbus_path, gint id, guint timestamp) |
423 | 487 | { | 487 | { |
425 | 488 | g_return_if_fail(IS_DBUSMENU_COLLECTOR(collector)); | 488 | g_return_if_fail(IS_MENUITEM_COLLECTOR(collector)); |
426 | 489 | 489 | ||
427 | 490 | menu_key_t search_key = { | 490 | menu_key_t search_key = { |
428 | 491 | sender: (gchar *)dbus_addr, | 491 | sender: (gchar *)dbus_addr, |
429 | @@ -517,14 +517,14 @@ | |||
430 | 517 | } | 517 | } |
431 | 518 | 518 | ||
432 | 519 | guint | 519 | guint |
434 | 520 | dbusmenu_collector_found_get_distance (DbusmenuCollectorFound * found) | 520 | menuitem_collector_found_get_distance (MenuitemCollectorFound * found) |
435 | 521 | { | 521 | { |
436 | 522 | g_return_val_if_fail(found != NULL, G_MAXUINT); | 522 | g_return_val_if_fail(found != NULL, G_MAXUINT); |
437 | 523 | return found->distance; | 523 | return found->distance; |
438 | 524 | } | 524 | } |
439 | 525 | 525 | ||
440 | 526 | void | 526 | void |
442 | 527 | dbusmenu_collector_found_set_distance (DbusmenuCollectorFound * found, guint distance) | 527 | menuitem_collector_found_set_distance (MenuitemCollectorFound * found, guint distance) |
443 | 528 | { | 528 | { |
444 | 529 | g_return_if_fail(found != NULL); | 529 | g_return_if_fail(found != NULL); |
445 | 530 | found->distance = distance; | 530 | found->distance = distance; |
446 | @@ -532,31 +532,31 @@ | |||
447 | 532 | } | 532 | } |
448 | 533 | 533 | ||
449 | 534 | const gchar * | 534 | const gchar * |
451 | 535 | dbusmenu_collector_found_get_display (DbusmenuCollectorFound * found) | 535 | menuitem_collector_found_get_display (MenuitemCollectorFound * found) |
452 | 536 | { | 536 | { |
453 | 537 | g_return_val_if_fail(found != NULL, NULL); | 537 | g_return_val_if_fail(found != NULL, NULL); |
454 | 538 | return found->display_string; | 538 | return found->display_string; |
455 | 539 | } | 539 | } |
456 | 540 | 540 | ||
457 | 541 | const gchar * | 541 | const gchar * |
459 | 542 | dbusmenu_collector_found_get_db (DbusmenuCollectorFound * found) | 542 | menuitem_collector_found_get_db (MenuitemCollectorFound * found) |
460 | 543 | { | 543 | { |
461 | 544 | g_return_val_if_fail(found != NULL, NULL); | 544 | g_return_val_if_fail(found != NULL, NULL); |
462 | 545 | return found->db_string; | 545 | return found->db_string; |
463 | 546 | } | 546 | } |
464 | 547 | 547 | ||
465 | 548 | void | 548 | void |
467 | 549 | dbusmenu_collector_found_list_free (GList * found_list) | 549 | menuitem_collector_found_list_free (GList * found_list) |
468 | 550 | { | 550 | { |
470 | 551 | g_list_free_full(found_list, (GDestroyNotify)dbusmenu_collector_found_free); | 551 | g_list_free_full(found_list, (GDestroyNotify)menuitem_collector_found_free); |
471 | 552 | return; | 552 | return; |
472 | 553 | } | 553 | } |
473 | 554 | 554 | ||
476 | 555 | static DbusmenuCollectorFound * | 555 | static MenuitemCollectorFound * |
477 | 556 | dbusmenu_collector_found_new (DbusmenuClient * client, DbusmenuMenuitem * item, GStrv strings, guint distance, GStrv usedstrings, const gchar * indicator_name) | 556 | menuitem_collector_found_new (DbusmenuClient * client, DbusmenuMenuitem * item, GStrv strings, guint distance, GStrv usedstrings, const gchar * indicator_name) |
478 | 557 | { | 557 | { |
479 | 558 | // g_debug("New Found: '%s', %d, '%s'", string, distance, indicator_name); | 558 | // g_debug("New Found: '%s', %d, '%s'", string, distance, indicator_name); |
481 | 559 | DbusmenuCollectorFound * found = g_new0(DbusmenuCollectorFound, 1); | 559 | MenuitemCollectorFound * found = g_new0(MenuitemCollectorFound, 1); |
482 | 560 | 560 | ||
483 | 561 | g_object_get(client, | 561 | g_object_get(client, |
484 | 562 | DBUSMENU_CLIENT_PROP_DBUS_NAME, &found->dbus_addr, | 562 | DBUSMENU_CLIENT_PROP_DBUS_NAME, &found->dbus_addr, |
485 | @@ -631,7 +631,7 @@ | |||
486 | 631 | } | 631 | } |
487 | 632 | 632 | ||
488 | 633 | void | 633 | void |
490 | 634 | dbusmenu_collector_found_free (DbusmenuCollectorFound * found) | 634 | menuitem_collector_found_free (MenuitemCollectorFound * found) |
491 | 635 | { | 635 | { |
492 | 636 | g_return_if_fail(found != NULL); | 636 | g_return_if_fail(found != NULL); |
493 | 637 | g_free(found->dbus_addr); | 637 | g_free(found->dbus_addr); |
494 | @@ -646,7 +646,7 @@ | |||
495 | 646 | } | 646 | } |
496 | 647 | 647 | ||
497 | 648 | const gchar * | 648 | const gchar * |
499 | 649 | dbusmenu_collector_found_get_indicator (DbusmenuCollectorFound * found) | 649 | menuitem_collector_found_get_indicator (MenuitemCollectorFound * found) |
500 | 650 | { | 650 | { |
501 | 651 | // g_debug("Getting indicator for found '%s', indicator: '%s'", found->display_string, found->indicator); | 651 | // g_debug("Getting indicator for found '%s', indicator: '%s'", found->display_string, found->indicator); |
502 | 652 | g_return_val_if_fail(found != NULL, NULL); | 652 | g_return_val_if_fail(found != NULL, NULL); |
503 | @@ -654,7 +654,7 @@ | |||
504 | 654 | } | 654 | } |
505 | 655 | 655 | ||
506 | 656 | void | 656 | void |
508 | 657 | dbusmenu_collector_found_set_indicator (DbusmenuCollectorFound * found, const gchar * indicator) | 657 | menuitem_collector_found_set_indicator (MenuitemCollectorFound * found, const gchar * indicator) |
509 | 658 | { | 658 | { |
510 | 659 | g_return_if_fail(found != NULL); | 659 | g_return_if_fail(found != NULL); |
511 | 660 | g_free(found->indicator); | 660 | g_free(found->indicator); |
512 | @@ -663,35 +663,35 @@ | |||
513 | 663 | } | 663 | } |
514 | 664 | 664 | ||
515 | 665 | const gchar * | 665 | const gchar * |
517 | 666 | dbusmenu_collector_found_get_dbus_addr (DbusmenuCollectorFound * found) | 666 | menuitem_collector_found_get_dbus_addr (MenuitemCollectorFound * found) |
518 | 667 | { | 667 | { |
519 | 668 | g_return_val_if_fail(found != NULL, NULL); | 668 | g_return_val_if_fail(found != NULL, NULL); |
520 | 669 | return found->dbus_addr; | 669 | return found->dbus_addr; |
521 | 670 | } | 670 | } |
522 | 671 | 671 | ||
523 | 672 | const gchar * | 672 | const gchar * |
525 | 673 | dbusmenu_collector_found_get_dbus_path (DbusmenuCollectorFound * found) | 673 | menuitem_collector_found_get_dbus_path (MenuitemCollectorFound * found) |
526 | 674 | { | 674 | { |
527 | 675 | g_return_val_if_fail(found != NULL, NULL); | 675 | g_return_val_if_fail(found != NULL, NULL); |
528 | 676 | return found->dbus_path; | 676 | return found->dbus_path; |
529 | 677 | } | 677 | } |
530 | 678 | 678 | ||
531 | 679 | gint | 679 | gint |
533 | 680 | dbusmenu_collector_found_get_dbus_id (DbusmenuCollectorFound * found) | 680 | menuitem_collector_found_get_dbus_id (MenuitemCollectorFound * found) |
534 | 681 | { | 681 | { |
535 | 682 | g_return_val_if_fail(found != NULL, -1); | 682 | g_return_val_if_fail(found != NULL, -1); |
536 | 683 | return found->dbus_id; | 683 | return found->dbus_id; |
537 | 684 | } | 684 | } |
538 | 685 | 685 | ||
539 | 686 | const gchar * | 686 | const gchar * |
541 | 687 | dbusmenu_collector_found_get_app_icon (DbusmenuCollectorFound * found) | 687 | menuitem_collector_found_get_app_icon (MenuitemCollectorFound * found) |
542 | 688 | { | 688 | { |
543 | 689 | g_return_val_if_fail(found != NULL, NULL); | 689 | g_return_val_if_fail(found != NULL, NULL); |
544 | 690 | return found->app_icon; | 690 | return found->app_icon; |
545 | 691 | } | 691 | } |
546 | 692 | 692 | ||
547 | 693 | void | 693 | void |
549 | 694 | dbusmenu_collector_found_set_app_icon (DbusmenuCollectorFound * found, const gchar * app_icon) | 694 | menuitem_collector_found_set_app_icon (MenuitemCollectorFound * found, const gchar * app_icon) |
550 | 695 | { | 695 | { |
551 | 696 | g_return_if_fail(found != NULL); | 696 | g_return_if_fail(found != NULL); |
552 | 697 | g_free(found->app_icon); | 697 | g_free(found->app_icon); |
553 | 698 | 698 | ||
554 | === renamed file 'src/dbusmenu-collector.h' => 'src/menuitem-collector.h' | |||
555 | --- src/dbusmenu-collector.h 2012-01-26 16:51:25 +0000 | |||
556 | +++ src/menuitem-collector.h 2012-01-26 16:51:25 +0000 | |||
557 | @@ -20,54 +20,54 @@ | |||
558 | 20 | with this program. If not, see <http://www.gnu.org/licenses/>. | 20 | with this program. If not, see <http://www.gnu.org/licenses/>. |
559 | 21 | */ | 21 | */ |
560 | 22 | 22 | ||
563 | 23 | #ifndef __DBUSMENU_COLLECTOR_H__ | 23 | #ifndef __MENUITEM_COLLECTOR_H__ |
564 | 24 | #define __DBUSMENU_COLLECTOR_H__ | 24 | #define __MENUITEM_COLLECTOR_H__ |
565 | 25 | 25 | ||
566 | 26 | #include <glib.h> | 26 | #include <glib.h> |
567 | 27 | #include <glib-object.h> | 27 | #include <glib-object.h> |
568 | 28 | 28 | ||
569 | 29 | G_BEGIN_DECLS | 29 | G_BEGIN_DECLS |
570 | 30 | 30 | ||
584 | 31 | #define DBUSMENU_COLLECTOR_TYPE (dbusmenu_collector_get_type ()) | 31 | #define MENUITEM_COLLECTOR_TYPE (menuitem_collector_get_type ()) |
585 | 32 | #define DBUSMENU_COLLECTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DBUSMENU_COLLECTOR_TYPE, DbusmenuCollector)) | 32 | #define MENUITEM_COLLECTOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MENUITEM_COLLECTOR_TYPE, MenuitemCollector)) |
586 | 33 | #define DBUSMENU_COLLECTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DBUSMENU_COLLECTOR_TYPE, DbusmenuCollectorClass)) | 33 | #define MENUITEM_COLLECTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MENUITEM_COLLECTOR_TYPE, MenuitemCollectorClass)) |
587 | 34 | #define IS_DBUSMENU_COLLECTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DBUSMENU_COLLECTOR_TYPE)) | 34 | #define IS_MENUITEM_COLLECTOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MENUITEM_COLLECTOR_TYPE)) |
588 | 35 | #define IS_DBUSMENU_COLLECTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DBUSMENU_COLLECTOR_TYPE)) | 35 | #define IS_MENUITEM_COLLECTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MENUITEM_COLLECTOR_TYPE)) |
589 | 36 | #define DBUSMENU_COLLECTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DBUSMENU_COLLECTOR_TYPE, DbusmenuCollectorClass)) | 36 | #define MENUITEM_COLLECTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MENUITEM_COLLECTOR_TYPE, MenuitemCollectorClass)) |
590 | 37 | 37 | ||
591 | 38 | typedef struct _DbusmenuCollector DbusmenuCollector; | 38 | typedef struct _MenuitemCollector MenuitemCollector; |
592 | 39 | typedef struct _DbusmenuCollectorClass DbusmenuCollectorClass; | 39 | typedef struct _MenuitemCollectorClass MenuitemCollectorClass; |
593 | 40 | typedef struct _DbusmenuCollectorPrivate DbusmenuCollectorPrivate; | 40 | typedef struct _MenuitemCollectorPrivate MenuitemCollectorPrivate; |
594 | 41 | typedef struct _DbusmenuCollectorFound DbusmenuCollectorFound; | 41 | typedef struct _MenuitemCollectorFound MenuitemCollectorFound; |
595 | 42 | 42 | ||
596 | 43 | struct _DbusmenuCollectorClass { | 43 | struct _MenuitemCollectorClass { |
597 | 44 | GObjectClass parent_class; | 44 | GObjectClass parent_class; |
598 | 45 | }; | 45 | }; |
599 | 46 | 46 | ||
601 | 47 | struct _DbusmenuCollector { | 47 | struct _MenuitemCollector { |
602 | 48 | GObject parent; | 48 | GObject parent; |
603 | 49 | 49 | ||
605 | 50 | DbusmenuCollectorPrivate * priv; | 50 | MenuitemCollectorPrivate * priv; |
606 | 51 | }; | 51 | }; |
607 | 52 | 52 | ||
612 | 53 | GType dbusmenu_collector_get_type (void); | 53 | GType menuitem_collector_get_type (void); |
613 | 54 | DbusmenuCollector * dbusmenu_collector_new (void); | 54 | MenuitemCollector * menuitem_collector_new (void); |
614 | 55 | GList * dbusmenu_collector_search (DbusmenuCollector * collector, const gchar * dbus_addr, const gchar * dbus_path, const gchar * prefix, const gchar * search); | 55 | GList * menuitem_collector_search (MenuitemCollector * collector, const gchar * dbus_addr, const gchar * dbus_path, const gchar * prefix, const gchar * search); |
615 | 56 | void dbusmenu_collector_execute (DbusmenuCollector * collector, const gchar * dbus_addr, const gchar * dbus_path, gint id, guint timestamp); | 56 | void menuitem_collector_execute (MenuitemCollector * collector, const gchar * dbus_addr, const gchar * dbus_path, gint id, guint timestamp); |
616 | 57 | 57 | ||
630 | 58 | guint dbusmenu_collector_found_get_distance (DbusmenuCollectorFound * found); | 58 | guint menuitem_collector_found_get_distance (MenuitemCollectorFound * found); |
631 | 59 | void dbusmenu_collector_found_set_distance (DbusmenuCollectorFound * found, guint distance); | 59 | void menuitem_collector_found_set_distance (MenuitemCollectorFound * found, guint distance); |
632 | 60 | const gchar * dbusmenu_collector_found_get_display (DbusmenuCollectorFound * found); | 60 | const gchar * menuitem_collector_found_get_display (MenuitemCollectorFound * found); |
633 | 61 | const gchar * dbusmenu_collector_found_get_db (DbusmenuCollectorFound * found); | 61 | const gchar * menuitem_collector_found_get_db (MenuitemCollectorFound * found); |
634 | 62 | void dbusmenu_collector_found_free (DbusmenuCollectorFound * found); | 62 | void menuitem_collector_found_free (MenuitemCollectorFound * found); |
635 | 63 | void dbusmenu_collector_found_list_free (GList * found_list); | 63 | void menuitem_collector_found_list_free (GList * found_list); |
636 | 64 | const gchar * dbusmenu_collector_found_get_indicator (DbusmenuCollectorFound * found); | 64 | const gchar * menuitem_collector_found_get_indicator (MenuitemCollectorFound * found); |
637 | 65 | void dbusmenu_collector_found_set_indicator (DbusmenuCollectorFound * found, const gchar * indicator); | 65 | void menuitem_collector_found_set_indicator (MenuitemCollectorFound * found, const gchar * indicator); |
638 | 66 | const gchar * dbusmenu_collector_found_get_dbus_addr (DbusmenuCollectorFound * found); | 66 | const gchar * menuitem_collector_found_get_dbus_addr (MenuitemCollectorFound * found); |
639 | 67 | const gchar * dbusmenu_collector_found_get_dbus_path (DbusmenuCollectorFound * found); | 67 | const gchar * menuitem_collector_found_get_dbus_path (MenuitemCollectorFound * found); |
640 | 68 | gint dbusmenu_collector_found_get_dbus_id (DbusmenuCollectorFound * found); | 68 | gint menuitem_collector_found_get_dbus_id (MenuitemCollectorFound * found); |
641 | 69 | const gchar * dbusmenu_collector_found_get_app_icon (DbusmenuCollectorFound * found); | 69 | const gchar * menuitem_collector_found_get_app_icon (MenuitemCollectorFound * found); |
642 | 70 | void dbusmenu_collector_found_set_app_icon (DbusmenuCollectorFound * found, const gchar * app_icon); | 70 | void menuitem_collector_found_set_app_icon (MenuitemCollectorFound * found, const gchar * app_icon); |
643 | 71 | 71 | ||
644 | 72 | G_END_DECLS | 72 | G_END_DECLS |
645 | 73 | 73 |
Looks good. And the diffstat can be used as a checksum to validate it #added==#removed+1. And the extra added line is in .bzrignore. So all checks up :-)