~ubuntu-branches/ubuntu/maverick/unity/maverick

« back to all changes in this revision

Viewing changes to unity-private/launcher/quicklist-controller.c

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-09-17 14:02:54 UTC
  • mfrom: (1.1.17 upstream)
  • Revision ID: james.westby@ubuntu.com-20100917140254-6cbue12klia2f07l
Tags: 0.2.40-0ubuntu1
* New upstream release:
  - Fix inactive menus accessible (LP: #604505)
  - Fix some more memory leaks (LP: #604777, #621690, #628144)
  - Fix weird behaviors of quicklist (LP: #617339)
  - Provide an "open this folder" button (LP: #633201)
  - Hidden menu causing gap (LP: #600191)
  - Cannot go fullscreen for flash videos (LP: #631381)
  - Can't access menu items from the keyboard (LP: #636728)
  - Don't register for MDRAGs since they aren't used (LP: #632613)
  - Don't run indicator on special launchers (LP: #627488)
  - Center arrows position in folded launcher tiles (LP: #633084)
  - Launcher icons first appear as white upon login (LP: #601093)
  - Removes jittering when rubber band is in use on the launcher (LP: #632991)
  - Mutter restarts on closing almost any application (LP: #634701)
  - Can't launch apps like synaptic with root privileges from launch bar
    (LP: #599298)
  - Launcher tile dragging shouldn't be masked (LP: #631443)
  - Fix Carousel-ed icons have distorted perspective (LP: #607515)
  - Use no longer sync call (LP: #620011)
* update debian/libunity0.symbols

Show diffs side-by-side

added added

removed removed

Lines of Context:
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);
283
283
 
497
497
}
498
498
 
499
499
 
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);
502
502
}
503
503
 
504
504
 
505
 
static void __lambda21__clutter_actor_destroy (ClutterActor* _sender, gpointer self) {
506
 
        _lambda21_ (self);
 
505
static void __lambda23__clutter_actor_destroy (ClutterActor* _sender, gpointer self) {
 
506
        _lambda23_ (self);
507
507
}
508
508
 
509
509
 
510
 
static void _lambda22_ (UnityLauncherApplicationQuicklistController* self) {
 
510
static void _lambda24_ (UnityLauncherApplicationQuicklistController* self) {
511
511
        unity_shell_remove_fullscreen_request (unity_global_shell, (GObject*) self);
512
512
}
513
513
 
514
514
 
515
 
static void __lambda22__clutter_actor_destroy (ClutterActor* _sender, gpointer self) {
516
 
        _lambda22_ (self);
 
515
static void __lambda24__clutter_actor_destroy (ClutterActor* _sender, gpointer self) {
 
516
        _lambda24_ (self);
517
517
}
518
518
 
519
519
 
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));
530
530
        }
531
531
        ctk_menu_set_detect_clicks ((CtkMenu*) ((UnityLauncherQuicklistController*) self)->menu, FALSE);
558
558
}
559
559
 
560
560
 
561
 
static void _lambda23_ (UnityLauncherApplicationQuicklistController* self) {
 
561
static void _lambda25_ (UnityLauncherApplicationQuicklistController* self) {
562
562
        unity_launcher_quicklist_controller_set_state ((UnityLauncherQuicklistController*) self, UNITY_LAUNCHER_QUICKLIST_CONTROLLER_STATE_CLOSED);
563
563
}
564
564
 
565
565
 
566
 
static void __lambda23__ctk_menu_item_activated (CtkMenuItem* _sender, gpointer self) {
567
 
        _lambda23_ (self);
 
566
static void __lambda25__ctk_menu_item_activated (CtkMenuItem* _sender, gpointer self) {
 
567
        _lambda25_ (self);
568
568
}
569
569
 
570
570
 
571
 
static void _lambda24_ (DbusmenuMenuitem* top_menu, UnityLauncherApplicationQuicklistController* self) {
 
571
static void _lambda26_ (DbusmenuMenuitem* top_menu, UnityLauncherApplicationQuicklistController* self) {
572
572
        if (DBUSMENU_IS_MENUITEM (top_menu)) {
573
573
                if (dbusmenu_menuitem_get_root (top_menu)) {
574
574
                        GList* menu_items;
600
600
                        }
601
601
                        menu_items = g_list_reverse (menu_items);
602
602
                } else {
603
 
                        g_warning ("quicklist-controller.vala:224: menu given not a root item");
 
603
                        g_warning ("quicklist-controller.vala:237: menu given not a root item");
604
604
                }
605
605
        }
606
606
}
607
607
 
608
608
 
609
 
static void __lambda24__unitylauncherscrollerchildcontrollermenu_cb (DbusmenuMenuitem* menu, gpointer self) {
610
 
        _lambda24_ (menu, self);
 
609
static void __lambda26__unitylauncherscrollerchildcontrollermenu_cb (DbusmenuMenuitem* menu, gpointer self) {
 
610
        _lambda26_ (menu, self);
611
611
}
612
612
 
613
613
 
614
 
static void _lambda31_ (DbusmenuMenuitem* bottom_menu, UnityLauncherApplicationQuicklistController* self) {
 
614
static void _lambda33_ (DbusmenuMenuitem* bottom_menu, UnityLauncherApplicationQuicklistController* self) {
615
615
        float x = 0.0F;
616
616
        float y = 0.0F;
617
617
        float w = 0.0F;
646
646
                        }
647
647
                        _g_object_unref0 (separator);
648
648
                } else {
649
 
                        g_warning ("quicklist-controller.vala:249: menu given not a root item");
 
649
                        g_warning ("quicklist-controller.vala:262: menu given not a root item");
650
650
                }
651
651
        }
652
652
        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);
659
659
}
660
660
 
661
661
 
662
 
static void __lambda31__unitylauncherscrollerchildcontrollermenu_cb (DbusmenuMenuitem* menu, gpointer self) {
663
 
        _lambda31_ (menu, self);
 
662
static void __lambda33__unitylauncherscrollerchildcontrollermenu_cb (DbusmenuMenuitem* menu, gpointer self) {
 
663
        _lambda33_ (menu, self);
664
664
}
665
665
 
666
666
 
674
674
        }
675
675
        if (((UnityLauncherQuicklistController*) self)->menu == NULL) {
676
676
                unity_launcher_application_quicklist_controller_new_menu (self);
677
 
                g_warning ("quicklist-controller.vala:168: state change called on menu when menu d" \
678
 
"oes not exist");
679
677
        }
680
678
        if (unity_launcher_quicklist_controller_get_state ((UnityLauncherQuicklistController*) self) == UNITY_LAUNCHER_QUICKLIST_CONTROLLER_STATE_LABEL) {
681
679
                char* label;
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);
708
706
                        }
 
707
                        if (ctk_menu_get_num_items ((CtkMenu*) ((UnityLauncherQuicklistController*) self)->menu) == 0) {
 
708
                                char* label;
 
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);
 
715
                                _g_free0 (label);
 
716
                        }
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);
713
721
                }
714
722
        }
715
723
}
716
724
 
717
725
 
718
 
static void _lambda25_ (Block10Data* _data10_) {
 
726
static void _lambda27_ (Block10Data* _data10_) {
719
727
        UnityLauncherApplicationQuicklistController * self;
720
728
        gint _tmp0_ = 0;
721
729
        CtkMenuItem* _tmp1_;
731
739
}
732
740
 
733
741
 
734
 
static void __lambda25__ctk_check_menu_item_toggled (CtkCheckMenuItem* _sender, gpointer self) {
735
 
        _lambda25_ (self);
 
742
static void __lambda27__ctk_check_menu_item_toggled (CtkCheckMenuItem* _sender, gpointer self) {
 
743
        _lambda27_ (self);
736
744
}
737
745
 
738
746
 
739
 
static void _lambda26_ (const char* property_name, void* value, Block10Data* _data10_) {
 
747
static void _lambda28_ (const char* property_name, void* value, Block10Data* _data10_) {
740
748
        UnityLauncherApplicationQuicklistController * self;
741
749
        self = _data10_->self;
742
750
        g_return_if_fail (property_name != NULL);
755
763
}
756
764
 
757
765
 
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);
760
768
}
761
769
 
762
770
 
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);
778
786
}
779
787
 
780
788
 
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);
783
791
}
784
792
 
785
793
 
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 ());
790
798
}
791
799
 
792
800
 
793
 
static void __lambda28__ctk_menu_item_activated (CtkMenuItem* _sender, gpointer self) {
794
 
        _lambda28_ (self);
 
801
static void __lambda30__ctk_menu_item_activated (CtkMenuItem* _sender, gpointer self) {
 
802
        _lambda30_ (self);
795
803
}
796
804
 
797
805
 
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);
801
809
        result = FALSE;
803
811
}
804
812
 
805
813
 
806
 
static gboolean __lambda30__gsource_func (gpointer self) {
 
814
static gboolean __lambda32__gsource_func (gpointer self) {
807
815
        gboolean result;
808
 
        result = _lambda30_ (self);
 
816
        result = _lambda32_ (self);
809
817
        return result;
810
818
}
811
819
 
812
820
 
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);
815
823
}
816
824
 
817
825
 
818
 
static void __lambda29__ctk_menu_item_activated (CtkMenuItem* _sender, gpointer self) {
819
 
        _lambda29_ (self);
 
826
static void __lambda31__ctk_menu_item_activated (CtkMenuItem* _sender, gpointer self) {
 
827
        _lambda31_ (self);
820
828
}
821
829
 
822
830
 
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);
897
905
                        }
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);
900
908
                } else {
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_);
904
912
                        } else {
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"));
906
914
                                result = NULL;
907
915
                                _g_free0 (check_type);
908
916
                                _g_free0 (type);
912
920
                        }
913
921
                }
914
922
        }
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);
921
929
        _g_free0 (type);
934
942
}
935
943
 
936
944
 
937
 
static void _lambda32_ (UnityLauncherApplicationQuicklistController* self) {
 
945
static void _lambda34_ (UnityLauncherApplicationQuicklistController* self) {
938
946
        unity_launcher_quicklist_controller_set_state ((UnityLauncherQuicklistController*) self, UNITY_LAUNCHER_QUICKLIST_CONTROLLER_STATE_CLOSED);
939
947
}
940
948
 
941
949
 
942
 
static void __lambda32__unity_drag_controller_drag_start (UnityDragController* _sender, UnityDragModel* model, gpointer self) {
943
 
        _lambda32_ (self);
 
950
static void __lambda34__unity_drag_controller_drag_start (UnityDragController* _sender, UnityDragModel* model, gpointer self) {
 
951
        _lambda34_ (self);
944
952
}
945
953
 
946
954
 
960
968
                g_signal_connect_object ((GObject*) self, "notify::state", (GCallback) _unity_launcher_application_quicklist_controller_on_state_change_g_object_notify, self, 0);
961
969
                unity_launcher_quicklist_controller_set_state ((UnityLauncherQuicklistController*) self, UNITY_LAUNCHER_QUICKLIST_CONTROLLER_STATE_LABEL);
962
970
                drag_controller = _g_object_ref0 (unity_drag_controller_get_default ());
963
 
                g_signal_connect_object (drag_controller, "drag-start", (GCallback) __lambda32__unity_drag_controller_drag_start, self, 0);
 
971
                g_signal_connect_object (drag_controller, "drag-start", (GCallback) __lambda34__unity_drag_controller_drag_start, self, 0);
964
972
                _g_object_unref0 (drag_controller);
965
973
        }
966
974
        return obj;