221
221
UnityLauncherQuicklistMenu* unity_launcher_quicklist_menu_new (void);
222
222
UnityLauncherQuicklistMenu* unity_launcher_quicklist_menu_construct (GType object_type);
223
223
GType unity_launcher_quicklist_menu_get_type (void) G_GNUC_CONST;
224
static void _lambda21_ (UnityLauncherApplicationQuicklistController* self);
225
static void __lambda21__clutter_actor_destroy (ClutterActor* _sender, gpointer self);
226
static void _lambda22_ (UnityLauncherApplicationQuicklistController* self);
227
static void __lambda22__clutter_actor_destroy (ClutterActor* _sender, gpointer self);
224
static void _lambda23_ (UnityLauncherApplicationQuicklistController* self);
225
static void __lambda23__clutter_actor_destroy (ClutterActor* _sender, gpointer self);
226
static void _lambda24_ (UnityLauncherApplicationQuicklistController* self);
227
static void __lambda24__clutter_actor_destroy (ClutterActor* _sender, gpointer self);
228
228
GType unity_launcher_scroller_child_get_type (void) G_GNUC_CONST;
229
229
UnityLauncherScrollerChild* unity_launcher_scroller_child_controller_get_child (UnityLauncherScrollerChildController* self);
230
230
static void unity_launcher_application_quicklist_controller_attach_to_stage (UnityLauncherApplicationQuicklistController* self, ClutterActor* child, ClutterActor* parent);
234
234
UnityLauncherQuicklistMenuItem* unity_launcher_quicklist_menu_item_new_with_label (const char* label);
235
235
UnityLauncherQuicklistMenuItem* unity_launcher_quicklist_menu_item_construct_with_label (GType object_type, const char* label);
236
236
GType unity_launcher_quicklist_menu_item_get_type (void) G_GNUC_CONST;
237
static void _lambda23_ (UnityLauncherApplicationQuicklistController* self);
238
static void __lambda23__ctk_menu_item_activated (CtkMenuItem* _sender, gpointer self);
237
static void _lambda25_ (UnityLauncherApplicationQuicklistController* self);
238
static void __lambda25__ctk_menu_item_activated (CtkMenuItem* _sender, gpointer self);
239
239
void unity_launcher_scroller_child_controller_get_menu_actions (UnityLauncherScrollerChildController* self, UnityLauncherScrollerChildControllermenu_cb callback, void* callback_target);
240
static void _lambda24_ (DbusmenuMenuitem* top_menu, UnityLauncherApplicationQuicklistController* self);
240
static void _lambda26_ (DbusmenuMenuitem* top_menu, UnityLauncherApplicationQuicklistController* self);
241
241
UnityLauncherQuicklistMenuSeperator* unity_launcher_quicklist_menu_seperator_new (void);
242
242
UnityLauncherQuicklistMenuSeperator* unity_launcher_quicklist_menu_seperator_construct (GType object_type);
243
243
GType unity_launcher_quicklist_menu_seperator_get_type (void) G_GNUC_CONST;
244
244
static CtkMenuItem* unity_launcher_application_quicklist_controller_menu_item_from_dbusmenuitem (UnityLauncherApplicationQuicklistController* self, DbusmenuMenuitem* dbusmenuitem);
245
static void __lambda24__unitylauncherscrollerchildcontrollermenu_cb (DbusmenuMenuitem* menu, gpointer self);
245
static void __lambda26__unitylauncherscrollerchildcontrollermenu_cb (DbusmenuMenuitem* menu, gpointer self);
246
246
void unity_launcher_scroller_child_controller_get_menu_navigation (UnityLauncherScrollerChildController* self, UnityLauncherScrollerChildControllermenu_cb callback, void* callback_target);
247
static void _lambda31_ (DbusmenuMenuitem* bottom_menu, UnityLauncherApplicationQuicklistController* self);
248
static void __lambda31__unitylauncherscrollerchildcontrollermenu_cb (DbusmenuMenuitem* menu, gpointer self);
247
static void _lambda33_ (DbusmenuMenuitem* bottom_menu, UnityLauncherApplicationQuicklistController* self);
248
static void __lambda33__unitylauncherscrollerchildcontrollermenu_cb (DbusmenuMenuitem* menu, gpointer self);
249
249
UnityLauncherQuicklistCheckMenuItem* unity_launcher_quicklist_check_menu_item_new_with_label (const char* label);
250
250
UnityLauncherQuicklistCheckMenuItem* unity_launcher_quicklist_check_menu_item_construct_with_label (GType object_type, const char* label);
251
251
GType unity_launcher_quicklist_check_menu_item_get_type (void) G_GNUC_CONST;
252
252
UnityLauncherQuicklistRadioMenuItem* unity_launcher_quicklist_radio_menu_item_new_with_label (GSList* group, const char* label);
253
253
UnityLauncherQuicklistRadioMenuItem* unity_launcher_quicklist_radio_menu_item_construct_with_label (GType object_type, GSList* group, const char* label);
254
254
GType unity_launcher_quicklist_radio_menu_item_get_type (void) G_GNUC_CONST;
255
static void _lambda25_ (Block10Data* _data10_);
256
static void __lambda25__ctk_check_menu_item_toggled (CtkCheckMenuItem* _sender, gpointer self);
257
static void _lambda26_ (const char* property_name, void* value, Block10Data* _data10_);
258
static void __lambda26__dbusmenu_menuitem_property_changed (DbusmenuMenuitem* _sender, const char* property_name, void* value, gpointer self);
259
static void _lambda27_ (const char* property_name, void* value, Block10Data* _data10_);
260
static void __lambda27__dbusmenu_menuitem_property_changed (DbusmenuMenuitem* _sender, const char* property_name, void* value, gpointer self);
261
static void _lambda28_ (Block10Data* _data10_);
262
static void __lambda28__ctk_menu_item_activated (CtkMenuItem* _sender, gpointer self);
263
static void _lambda29_ (UnityLauncherApplicationQuicklistController* self);
264
static gboolean _lambda30_ (UnityLauncherApplicationQuicklistController* self);
265
static gboolean __lambda30__gsource_func (gpointer self);
266
static void __lambda29__ctk_menu_item_activated (CtkMenuItem* _sender, gpointer self);
255
static void _lambda27_ (Block10Data* _data10_);
256
static void __lambda27__ctk_check_menu_item_toggled (CtkCheckMenuItem* _sender, gpointer self);
257
static void _lambda28_ (const char* property_name, void* value, Block10Data* _data10_);
258
static void __lambda28__dbusmenu_menuitem_property_changed (DbusmenuMenuitem* _sender, const char* property_name, void* value, gpointer self);
259
static void _lambda29_ (const char* property_name, void* value, Block10Data* _data10_);
260
static void __lambda29__dbusmenu_menuitem_property_changed (DbusmenuMenuitem* _sender, const char* property_name, void* value, gpointer self);
261
static void _lambda30_ (Block10Data* _data10_);
262
static void __lambda30__ctk_menu_item_activated (CtkMenuItem* _sender, gpointer self);
263
static void _lambda31_ (UnityLauncherApplicationQuicklistController* self);
264
static gboolean _lambda32_ (UnityLauncherApplicationQuicklistController* self);
265
static gboolean __lambda32__gsource_func (gpointer self);
266
static void __lambda31__ctk_menu_item_activated (CtkMenuItem* _sender, gpointer self);
267
267
static Block10Data* block10_data_ref (Block10Data* _data10_);
268
268
static void block10_data_unref (Block10Data* _data10_);
269
269
gpointer unity_testing_object_registry_ref (gpointer instance);
276
276
UnityTestingObjectRegistry* unity_testing_object_registry_get_default (void);
277
277
void unity_testing_object_registry_register (UnityTestingObjectRegistry* self, const char* name, GObject* object);
278
278
static void _unity_launcher_application_quicklist_controller_on_state_change_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
279
static void _lambda32_ (UnityLauncherApplicationQuicklistController* self);
280
static void __lambda32__unity_drag_controller_drag_start (UnityDragController* _sender, UnityDragModel* model, gpointer self);
279
static void _lambda34_ (UnityLauncherApplicationQuicklistController* self);
280
static void __lambda34__unity_drag_controller_drag_start (UnityDragController* _sender, UnityDragModel* model, gpointer self);
281
281
static GObject * unity_launcher_application_quicklist_controller_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
282
282
static int _vala_strcmp0 (const char * str1, const char * str2);
500
static void _lambda21_ (UnityLauncherApplicationQuicklistController* self) {
500
static void _lambda23_ (UnityLauncherApplicationQuicklistController* self) {
501
501
unity_launcher_quicklist_controller_set_state ((UnityLauncherQuicklistController*) self, UNITY_LAUNCHER_QUICKLIST_CONTROLLER_STATE_CLOSED);
505
static void __lambda21__clutter_actor_destroy (ClutterActor* _sender, gpointer self) {
505
static void __lambda23__clutter_actor_destroy (ClutterActor* _sender, gpointer self) {
510
static void _lambda22_ (UnityLauncherApplicationQuicklistController* self) {
510
static void _lambda24_ (UnityLauncherApplicationQuicklistController* self) {
511
511
unity_shell_remove_fullscreen_request (unity_global_shell, (GObject*) self);
515
static void __lambda22__clutter_actor_destroy (ClutterActor* _sender, gpointer self) {
515
static void __lambda24__clutter_actor_destroy (ClutterActor* _sender, gpointer self) {
523
523
UnityLauncherScrollerChild* _tmp2_;
524
524
g_return_if_fail (self != NULL);
525
525
((UnityLauncherQuicklistController*) self)->menu = (_tmp1_ = (_tmp0_ = g_object_ref_sink (unity_launcher_quicklist_menu_new ()), CTK_IS_MENU_EXPANDABLE (_tmp0_) ? ((CtkMenuExpandable*) _tmp0_) : NULL), _g_object_unref0 (((UnityLauncherQuicklistController*) self)->menu), _tmp1_);
526
g_signal_connect_object ((ClutterActor*) ((UnityLauncherQuicklistController*) self)->menu, "destroy", (GCallback) __lambda21__clutter_actor_destroy, self, 0);
526
g_signal_connect_object ((ClutterActor*) ((UnityLauncherQuicklistController*) self)->menu, "destroy", (GCallback) __lambda23__clutter_actor_destroy, self, 0);
527
527
if (UNITY_IS_SHELL (unity_global_shell)) {
528
g_signal_connect_object ((ClutterActor*) ((UnityLauncherQuicklistController*) self)->menu, "destroy", (GCallback) __lambda22__clutter_actor_destroy, self, 0);
528
g_signal_connect_object ((ClutterActor*) ((UnityLauncherQuicklistController*) self)->menu, "destroy", (GCallback) __lambda24__clutter_actor_destroy, self, 0);
529
529
ctk_menu_set_swallow_clicks ((CtkMenu*) ((UnityLauncherQuicklistController*) self)->menu, unity_shell_get_menus_swallow_events (unity_global_shell));
531
531
ctk_menu_set_detect_clicks ((CtkMenu*) ((UnityLauncherQuicklistController*) self)->menu, FALSE);
690
688
ctk_menu_remove_all ((CtkMenu*) ((UnityLauncherQuicklistController*) self)->menu);
691
689
label = g_strdup (unity_launcher_scroller_child_controller_get_name (unity_launcher_quicklist_controller_get_attached_controller ((UnityLauncherQuicklistController*) self)));
692
690
menuitem = g_object_ref_sink (unity_launcher_quicklist_menu_item_new_with_label (label));
693
g_signal_connect_object ((CtkMenuItem*) menuitem, "activated", (GCallback) __lambda23__ctk_menu_item_activated, self, 0);
691
g_signal_connect_object ((CtkMenuItem*) menuitem, "activated", (GCallback) __lambda25__ctk_menu_item_activated, self, 0);
694
692
clutter_actor_set_reactive ((ClutterActor*) menuitem, FALSE);
695
693
ctk_menu_append ((CtkMenu*) ((UnityLauncherQuicklistController*) self)->menu, (ClutterActor*) menuitem, TRUE);
696
694
clutter_actor_get_transformed_position ((ClutterActor*) (_tmp0_ = unity_launcher_scroller_child_controller_get_child (unity_launcher_quicklist_controller_get_attached_controller ((UnityLauncherQuicklistController*) self)), CTK_IS_ACTOR (_tmp0_) ? ((CtkActor*) _tmp0_) : NULL), &x, &y);
706
704
if (UNITY_IS_SHELL (unity_global_shell)) {
707
705
unity_shell_add_fullscreen_request (unity_global_shell, (GObject*) self);
707
if (ctk_menu_get_num_items ((CtkMenu*) ((UnityLauncherQuicklistController*) self)->menu) == 0) {
709
UnityLauncherQuicklistMenuItem* menuitem;
710
label = g_strdup (unity_launcher_scroller_child_controller_get_name (unity_launcher_quicklist_controller_get_attached_controller ((UnityLauncherQuicklistController*) self)));
711
menuitem = g_object_ref_sink (unity_launcher_quicklist_menu_item_new_with_label (label));
712
clutter_actor_set_reactive ((ClutterActor*) menuitem, FALSE);
713
ctk_menu_append ((CtkMenu*) ((UnityLauncherQuicklistController*) self)->menu, (ClutterActor*) menuitem, FALSE);
714
_g_object_unref0 (menuitem);
709
717
ctk_menu_set_close_on_leave ((CtkMenu*) ((UnityLauncherQuicklistController*) self)->menu, FALSE);
710
718
ctk_menu_set_detect_clicks ((CtkMenu*) ((UnityLauncherQuicklistController*) self)->menu, TRUE);
711
unity_launcher_scroller_child_controller_get_menu_actions (unity_launcher_quicklist_controller_get_attached_controller ((UnityLauncherQuicklistController*) self), __lambda24__unitylauncherscrollerchildcontrollermenu_cb, self);
712
unity_launcher_scroller_child_controller_get_menu_navigation (unity_launcher_quicklist_controller_get_attached_controller ((UnityLauncherQuicklistController*) self), __lambda31__unitylauncherscrollerchildcontrollermenu_cb, self);
719
unity_launcher_scroller_child_controller_get_menu_actions (unity_launcher_quicklist_controller_get_attached_controller ((UnityLauncherQuicklistController*) self), __lambda26__unitylauncherscrollerchildcontrollermenu_cb, self);
720
unity_launcher_scroller_child_controller_get_menu_navigation (unity_launcher_quicklist_controller_get_attached_controller ((UnityLauncherQuicklistController*) self), __lambda33__unitylauncherscrollerchildcontrollermenu_cb, self);
718
static void _lambda25_ (Block10Data* _data10_) {
726
static void _lambda27_ (Block10Data* _data10_) {
719
727
UnityLauncherApplicationQuicklistController * self;
721
729
CtkMenuItem* _tmp1_;
758
static void __lambda26__dbusmenu_menuitem_property_changed (DbusmenuMenuitem* _sender, const char* property_name, void* value, gpointer self) {
759
_lambda26_ (property_name, value, self);
766
static void __lambda28__dbusmenu_menuitem_property_changed (DbusmenuMenuitem* _sender, const char* property_name, void* value, gpointer self) {
767
_lambda28_ (property_name, value, self);
763
static void _lambda27_ (const char* property_name, void* value, Block10Data* _data10_) {
771
static void _lambda29_ (const char* property_name, void* value, Block10Data* _data10_) {
764
772
UnityLauncherApplicationQuicklistController * self;
765
773
self = _data10_->self;
766
774
g_return_if_fail (property_name != NULL);
781
static void __lambda27__dbusmenu_menuitem_property_changed (DbusmenuMenuitem* _sender, const char* property_name, void* value, gpointer self) {
782
_lambda27_ (property_name, value, self);
789
static void __lambda29__dbusmenu_menuitem_property_changed (DbusmenuMenuitem* _sender, const char* property_name, void* value, gpointer self) {
790
_lambda29_ (property_name, value, self);
786
static void _lambda28_ (Block10Data* _data10_) {
794
static void _lambda30_ (Block10Data* _data10_) {
787
795
UnityLauncherApplicationQuicklistController * self;
788
796
self = _data10_->self;
789
797
dbusmenu_menuitem_handle_event (_data10_->dbusmenuitem, "clicked", NULL, (guint) clutter_get_current_event_time ());
793
static void __lambda28__ctk_menu_item_activated (CtkMenuItem* _sender, gpointer self) {
801
static void __lambda30__ctk_menu_item_activated (CtkMenuItem* _sender, gpointer self) {
798
static gboolean _lambda30_ (UnityLauncherApplicationQuicklistController* self) {
806
static gboolean _lambda32_ (UnityLauncherApplicationQuicklistController* self) {
799
807
gboolean result = FALSE;
800
808
unity_launcher_quicklist_controller_set_state ((UnityLauncherQuicklistController*) self, UNITY_LAUNCHER_QUICKLIST_CONTROLLER_STATE_CLOSED);
806
static gboolean __lambda30__gsource_func (gpointer self) {
814
static gboolean __lambda32__gsource_func (gpointer self) {
808
result = _lambda30_ (self);
816
result = _lambda32_ (self);
813
static void _lambda29_ (UnityLauncherApplicationQuicklistController* self) {
814
g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, __lambda30__gsource_func, g_object_ref (self), g_object_unref);
821
static void _lambda31_ (UnityLauncherApplicationQuicklistController* self) {
822
g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, __lambda32__gsource_func, g_object_ref (self), g_object_unref);
818
static void __lambda29__ctk_menu_item_activated (CtkMenuItem* _sender, gpointer self) {
826
static void __lambda31__ctk_menu_item_activated (CtkMenuItem* _sender, gpointer self) {
895
903
CtkMenuItem* _tmp9_;
896
904
ctk_check_menu_item_set_active ((_tmp9_ = _data10_->menuitem, CTK_IS_CHECK_MENU_ITEM (_tmp9_) ? ((CtkCheckMenuItem*) _tmp9_) : NULL), TRUE);
898
g_signal_connect_data ((_tmp10_ = _data10_->menuitem, CTK_IS_CHECK_MENU_ITEM (_tmp10_) ? ((CtkCheckMenuItem*) _tmp10_) : NULL), "toggled", (GCallback) __lambda25__ctk_check_menu_item_toggled, block10_data_ref (_data10_), (GClosureNotify) block10_data_unref, 0);
899
g_signal_connect_data (_data10_->dbusmenuitem, "property-changed", (GCallback) __lambda26__dbusmenu_menuitem_property_changed, block10_data_ref (_data10_), (GClosureNotify) block10_data_unref, 0);
906
g_signal_connect_data ((_tmp10_ = _data10_->menuitem, CTK_IS_CHECK_MENU_ITEM (_tmp10_) ? ((CtkCheckMenuItem*) _tmp10_) : NULL), "toggled", (GCallback) __lambda27__ctk_check_menu_item_toggled, block10_data_ref (_data10_), (GClosureNotify) block10_data_unref, 0);
907
g_signal_connect_data (_data10_->dbusmenuitem, "property-changed", (GCallback) __lambda28__dbusmenu_menuitem_property_changed, block10_data_ref (_data10_), (GClosureNotify) block10_data_unref, 0);
901
909
if (_vala_strcmp0 (type, "seperator") == 0) {
902
910
CtkMenuItem* _tmp11_;
903
911
_data10_->menuitem = (_tmp11_ = (CtkMenuItem*) g_object_ref_sink (unity_launcher_quicklist_menu_seperator_new ()), _g_object_unref0 (_data10_->menuitem), _tmp11_);
905
g_warning ("quicklist-controller.vala:341: not a menu item we understand, %s", dbusmenu_menuitem_property_get (_data10_->dbusmenuitem, "type"));
913
g_warning ("quicklist-controller.vala:354: not a menu item we understand, %s", dbusmenu_menuitem_property_get (_data10_->dbusmenuitem, "type"));
907
915
_g_free0 (check_type);
915
g_signal_connect_data (_data10_->dbusmenuitem, "property-changed", (GCallback) __lambda27__dbusmenu_menuitem_property_changed, block10_data_ref (_data10_), (GClosureNotify) block10_data_unref, 0);
923
g_signal_connect_data (_data10_->dbusmenuitem, "property-changed", (GCallback) __lambda29__dbusmenu_menuitem_property_changed, block10_data_ref (_data10_), (GClosureNotify) block10_data_unref, 0);
916
924
clutter_actor_set_reactive ((ClutterActor*) _data10_->menuitem, dbusmenu_menuitem_property_get_bool (_data10_->dbusmenuitem, DBUSMENU_MENUITEM_PROP_ENABLED));
917
g_signal_connect_data (_data10_->menuitem, "activated", (GCallback) __lambda28__ctk_menu_item_activated, block10_data_ref (_data10_), (GClosureNotify) block10_data_unref, 0);
918
g_signal_connect_object (_data10_->menuitem, "activated", (GCallback) __lambda29__ctk_menu_item_activated, self, 0);
925
g_signal_connect_data (_data10_->menuitem, "activated", (GCallback) __lambda30__ctk_menu_item_activated, block10_data_ref (_data10_), (GClosureNotify) block10_data_unref, 0);
926
g_signal_connect_object (_data10_->menuitem, "activated", (GCallback) __lambda31__ctk_menu_item_activated, self, 0);
919
927
result = _g_object_ref0 ((_tmp12_ = _data10_->menuitem, CTK_IS_MENU_ITEM (_tmp12_) ? ((CtkMenuItem*) _tmp12_) : NULL));
920
928
_g_free0 (check_type);