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

« back to all changes in this revision

Viewing changes to unity-private/launcher/application-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:
183
183
        gboolean do_not_render;
184
184
        UnityLauncherScrollerChildController* controller;
185
185
        float grabbed_push;
 
186
        UnityUnityIcon* processed_icon;
186
187
};
187
188
 
188
189
struct _UnityLauncherScrollerChildClass {
250
251
GType unity_launcher_pin_type_get_type (void) G_GNUC_CONST;
251
252
static void unity_launcher_application_controller_on_favorite_removed (UnityLauncherApplicationController* self, const char* uid);
252
253
static void unity_launcher_application_controller_real_get_menu_actions (UnityLauncherScrollerChildController* base, UnityLauncherScrollerChildControllermenu_cb callback, void* callback_target);
253
 
static void _lambda75_ (Block6Data* _data6_);
254
 
static void _lambda76_ (Block8Data* _data8_);
255
 
static void __lambda76__dbusmenu_menuitem_realized (DbusmenuMenuitem* _sender, gpointer self);
 
254
static void _lambda77_ (Block6Data* _data6_);
 
255
static void _lambda78_ (Block8Data* _data8_);
 
256
static void __lambda78__dbusmenu_menuitem_realized (DbusmenuMenuitem* _sender, gpointer self);
256
257
static Block8Data* block8_data_ref (Block8Data* _data8_);
257
258
static void block8_data_unref (Block8Data* _data8_);
258
 
static void __lambda75__dbusmenu_client_layout_updated (DbusmenuClient* _sender, gpointer self);
 
259
static void __lambda77__dbusmenu_client_layout_updated (DbusmenuClient* _sender, gpointer self);
259
260
static Block6Data* block6_data_ref (Block6Data* _data6_);
260
261
static void block6_data_unref (Block6Data* _data6_);
261
262
static void _g_list_free_g_object_unref (GList* self);
262
 
static void _lambda77_ (guint timestamp, Block9Data* _data9_);
263
 
static void __lambda77__dbusmenu_menuitem_item_activated (DbusmenuMenuitem* _sender, guint object, gpointer self);
 
263
static void _lambda79_ (guint timestamp, Block9Data* _data9_);
 
264
static void __lambda79__dbusmenu_menuitem_item_activated (DbusmenuMenuitem* _sender, guint object, gpointer self);
264
265
static Block9Data* block9_data_ref (Block9Data* _data9_);
265
266
static void block9_data_unref (Block9Data* _data9_);
266
267
static Block7Data* block7_data_ref (Block7Data* _data7_);
267
268
static void block7_data_unref (Block7Data* _data7_);
268
269
static void unity_launcher_application_controller_real_get_menu_navigation (UnityLauncherScrollerChildController* base, UnityLauncherScrollerChildControllermenu_cb callback, void* callback_target);
269
 
static void _lambda78_ (guint timestamp, UnityLauncherApplicationController* self);
270
 
static void __lambda78__dbusmenu_menuitem_item_activated (DbusmenuMenuitem* _sender, guint object, gpointer self);
271
 
static void _lambda79_ (guint timestamp, UnityLauncherApplicationController* self);
272
 
static void __lambda79__dbusmenu_menuitem_item_activated (DbusmenuMenuitem* _sender, guint object, gpointer self);
 
270
static void _lambda80_ (guint timestamp, UnityLauncherApplicationController* self);
 
271
static void __lambda80__dbusmenu_menuitem_item_activated (DbusmenuMenuitem* _sender, guint object, gpointer self);
 
272
static void _lambda81_ (guint timestamp, UnityLauncherApplicationController* self);
 
273
static void __lambda81__dbusmenu_menuitem_item_activated (DbusmenuMenuitem* _sender, guint object, gpointer self);
273
274
static gint unity_launcher_application_controller_order_app_windows (void* a, void* b);
274
275
static void unity_launcher_application_controller_real_activate (UnityLauncherScrollerChildController* base);
275
276
void unity_launcher_scroller_child_set_activating (UnityLauncherScrollerChild* self, gboolean value);
286
287
static void _unity_launcher_application_controller_detach_application_bamf_view_closed (BamfView* _sender, gpointer self);
287
288
static void unity_launcher_application_controller_on_app_urgant_changed (UnityLauncherApplicationController* self, gboolean urgancy);
288
289
static void _unity_launcher_application_controller_on_app_urgant_changed_bamf_view_urgent_changed (BamfView* _sender, gboolean object, gpointer self);
289
 
static void _lambda80_ (gboolean value, UnityLauncherApplicationController* self);
 
290
static void _lambda82_ (gboolean value, UnityLauncherApplicationController* self);
290
291
void unity_launcher_scroller_child_controller_set_hide (UnityLauncherScrollerChildController* self, gboolean value);
291
 
static void __lambda80__bamf_view_user_visible_changed (BamfView* _sender, gboolean object, gpointer self);
 
292
static void __lambda82__bamf_view_user_visible_changed (BamfView* _sender, gboolean object, gpointer self);
292
293
void unity_launcher_scroller_child_controller_set_name (UnityLauncherScrollerChildController* self, const char* value);
293
294
const char* unity_launcher_scroller_child_controller_get_name (UnityLauncherScrollerChildController* self);
294
295
void unity_launcher_scroller_child_controller_load_icon_from_icon_name (UnityLauncherScrollerChildController* self, const char* icon_name);
569
570
}
570
571
 
571
572
 
572
 
static void _lambda76_ (Block8Data* _data8_) {
 
573
static void _lambda78_ (Block8Data* _data8_) {
573
574
        Block6Data* _data6_;
574
575
        Block7Data* _data7_;
575
576
        UnityLauncherApplicationController * self;
583
584
}
584
585
 
585
586
 
586
 
static void __lambda76__dbusmenu_menuitem_realized (DbusmenuMenuitem* _sender, gpointer self) {
587
 
        _lambda76_ (self);
 
587
static void __lambda78__dbusmenu_menuitem_realized (DbusmenuMenuitem* _sender, gpointer self) {
 
588
        _lambda78_ (self);
588
589
}
589
590
 
590
591
 
603
604
}
604
605
 
605
606
 
606
 
static void _lambda75_ (Block6Data* _data6_) {
 
607
static void _lambda77_ (Block6Data* _data6_) {
607
608
        Block7Data* _data7_;
608
609
        UnityLauncherApplicationController * self;
609
610
        Block8Data* _data8_;
631
632
                        DbusmenuMenuitem* menuitem;
632
633
                        menuitem = _g_object_ref0 ((DbusmenuMenuitem*) menuitem_it->data);
633
634
                        {
634
 
                                g_signal_connect_data (menuitem, "realized", (GCallback) __lambda76__dbusmenu_menuitem_realized, block8_data_ref (_data8_), (GClosureNotify) block8_data_unref, 0);
 
635
                                g_signal_connect_data (menuitem, "realized", (GCallback) __lambda78__dbusmenu_menuitem_realized, block8_data_ref (_data8_), (GClosureNotify) block8_data_unref, 0);
635
636
                                _g_object_unref0 (menuitem);
636
637
                        }
637
638
                }
640
641
}
641
642
 
642
643
 
643
 
static void __lambda75__dbusmenu_client_layout_updated (DbusmenuClient* _sender, gpointer self) {
644
 
        _lambda75_ (self);
 
644
static void __lambda77__dbusmenu_client_layout_updated (DbusmenuClient* _sender, gpointer self) {
 
645
        _lambda77_ (self);
645
646
}
646
647
 
647
648
 
667
668
}
668
669
 
669
670
 
670
 
static void _lambda77_ (guint timestamp, Block9Data* _data9_) {
 
671
static void _lambda79_ (guint timestamp, Block9Data* _data9_) {
671
672
        Block7Data* _data7_;
672
673
        UnityLauncherApplicationController * self;
673
674
        _data7_ = _data9_->_data7_;
676
677
}
677
678
 
678
679
 
679
 
static void __lambda77__dbusmenu_menuitem_item_activated (DbusmenuMenuitem* _sender, guint object, gpointer self) {
680
 
        _lambda77_ (object, self);
 
680
static void __lambda79__dbusmenu_menuitem_item_activated (DbusmenuMenuitem* _sender, guint object, gpointer self) {
 
681
        _lambda79_ (object, self);
681
682
}
682
683
 
683
684
 
749
750
                                                _data6_->path = g_strdup (bamf_indicator_get_dbus_menu_path ((_tmp0_ = view, BAMF_IS_INDICATOR (_tmp0_) ? ((BamfIndicator*) _tmp0_) : NULL)));
750
751
                                                _data6_->remote_address = g_strdup (bamf_indicator_get_remote_address ((_tmp1_ = view, BAMF_IS_INDICATOR (_tmp1_) ? ((BamfIndicator*) _tmp1_) : NULL)));
751
752
                                                self->priv->menu_client = (_tmp2_ = dbusmenu_client_new (_data6_->remote_address, _data6_->path), _g_object_unref0 (self->priv->menu_client), _tmp2_);
752
 
                                                g_signal_connect_data (self->priv->menu_client, "layout-updated", (GCallback) __lambda75__dbusmenu_client_layout_updated, block6_data_ref (_data6_), (GClosureNotify) block6_data_unref, 0);
 
753
                                                g_signal_connect_data (self->priv->menu_client, "layout-updated", (GCallback) __lambda77__dbusmenu_client_layout_updated, block6_data_ref (_data6_), (GClosureNotify) block6_data_unref, 0);
753
754
                                                block6_data_unref (_data6_);
754
755
                                        }
755
756
                                        _g_object_unref0 (view);
797
798
                                dbusmenu_menuitem_property_set (shortcut_item, DBUSMENU_MENUITEM_PROP_LABEL, local_name);
798
799
                                dbusmenu_menuitem_property_set_bool (shortcut_item, DBUSMENU_MENUITEM_PROP_ENABLED, TRUE);
799
800
                                dbusmenu_menuitem_property_set_bool (shortcut_item, DBUSMENU_MENUITEM_PROP_VISIBLE, TRUE);
800
 
                                g_signal_connect_data (shortcut_item, "item-activated", (GCallback) __lambda77__dbusmenu_menuitem_item_activated, block9_data_ref (_data9_), (GClosureNotify) block9_data_unref, 0);
 
801
                                g_signal_connect_data (shortcut_item, "item-activated", (GCallback) __lambda79__dbusmenu_menuitem_item_activated, block9_data_ref (_data9_), (GClosureNotify) block9_data_unref, 0);
801
802
                                dbusmenu_menuitem_child_append (root, shortcut_item);
802
803
                                _g_object_unref0 (shortcut_item);
803
804
                                _g_free0 (local_name);
812
813
}
813
814
 
814
815
 
815
 
static void _lambda78_ (guint timestamp, UnityLauncherApplicationController* self) {
 
816
static void _lambda80_ (guint timestamp, UnityLauncherApplicationController* self) {
816
817
        unity_launcher_application_controller_set_sticky (self, !unity_launcher_application_controller_is_sticky (self));
817
818
}
818
819
 
819
820
 
820
 
static void __lambda78__dbusmenu_menuitem_item_activated (DbusmenuMenuitem* _sender, guint object, gpointer self) {
821
 
        _lambda78_ (object, self);
 
821
static void __lambda80__dbusmenu_menuitem_item_activated (DbusmenuMenuitem* _sender, guint object, gpointer self) {
 
822
        _lambda80_ (object, self);
822
823
}
823
824
 
824
825
 
825
 
static void _lambda79_ (guint timestamp, UnityLauncherApplicationController* self) {
 
826
static void _lambda81_ (guint timestamp, UnityLauncherApplicationController* self) {
826
827
        if (BAMF_IS_APPLICATION (self->priv->app)) {
827
828
                GArray* xids;
828
829
                xids = bamf_application_get_xids (self->priv->app);
832
833
}
833
834
 
834
835
 
835
 
static void __lambda79__dbusmenu_menuitem_item_activated (DbusmenuMenuitem* _sender, guint object, gpointer self) {
836
 
        _lambda79_ (object, self);
 
836
static void __lambda81__dbusmenu_menuitem_item_activated (DbusmenuMenuitem* _sender, guint object, gpointer self) {
 
837
        _lambda81_ (object, self);
837
838
}
838
839
 
839
840
 
865
866
                }
866
867
                dbusmenu_menuitem_property_set_bool (pinning_item, DBUSMENU_MENUITEM_PROP_ENABLED, TRUE);
867
868
                dbusmenu_menuitem_property_set_bool (pinning_item, DBUSMENU_MENUITEM_PROP_VISIBLE, TRUE);
868
 
                g_signal_connect_object (pinning_item, "item-activated", (GCallback) __lambda78__dbusmenu_menuitem_item_activated, self, 0);
 
869
                g_signal_connect_object (pinning_item, "item-activated", (GCallback) __lambda80__dbusmenu_menuitem_item_activated, self, 0);
869
870
                dbusmenu_menuitem_child_append (root, pinning_item);
870
871
                _g_object_unref0 (pinning_item);
871
872
        }
875
876
                dbusmenu_menuitem_property_set (app_item, DBUSMENU_MENUITEM_PROP_LABEL, _ ("Quit"));
876
877
                dbusmenu_menuitem_property_set_bool (app_item, DBUSMENU_MENUITEM_PROP_ENABLED, TRUE);
877
878
                dbusmenu_menuitem_property_set_bool (app_item, DBUSMENU_MENUITEM_PROP_VISIBLE, TRUE);
878
 
                g_signal_connect_object (app_item, "item-activated", (GCallback) __lambda79__dbusmenu_menuitem_item_activated, self, 0);
 
879
                g_signal_connect_object (app_item, "item-activated", (GCallback) __lambda81__dbusmenu_menuitem_item_activated, self, 0);
879
880
                dbusmenu_menuitem_child_append (root, app_item);
880
881
                _g_object_unref0 (app_item);
881
882
        }
1030
1031
}
1031
1032
 
1032
1033
 
1033
 
static void _lambda80_ (gboolean value, UnityLauncherApplicationController* self) {
 
1034
static void _lambda82_ (gboolean value, UnityLauncherApplicationController* self) {
1034
1035
        unity_launcher_scroller_child_controller_set_hide ((UnityLauncherScrollerChildController*) self, !value);
1035
1036
}
1036
1037
 
1037
1038
 
1038
 
static void __lambda80__bamf_view_user_visible_changed (BamfView* _sender, gboolean object, gpointer self) {
1039
 
        _lambda80_ (object, self);
 
1039
static void __lambda82__bamf_view_user_visible_changed (BamfView* _sender, gboolean object, gpointer self) {
 
1040
        _lambda82_ (object, self);
1040
1041
}
1041
1042
 
1042
1043
 
1058
1059
        g_signal_connect_object ((BamfView*) self->priv->app, "active-changed", (GCallback) _unity_launcher_application_controller_on_app_active_changed_bamf_view_active_changed, self, 0);
1059
1060
        g_signal_connect_object ((BamfView*) self->priv->app, "closed", (GCallback) _unity_launcher_application_controller_detach_application_bamf_view_closed, self, 0);
1060
1061
        g_signal_connect_object ((BamfView*) self->priv->app, "urgent-changed", (GCallback) _unity_launcher_application_controller_on_app_urgant_changed_bamf_view_urgent_changed, self, 0);
1061
 
        g_signal_connect_object ((BamfView*) self->priv->app, "user-visible-changed", (GCallback) __lambda80__bamf_view_user_visible_changed, self, 0);
 
1062
        g_signal_connect_object ((BamfView*) self->priv->app, "user-visible-changed", (GCallback) __lambda82__bamf_view_user_visible_changed, self, 0);
1062
1063
        unity_launcher_scroller_child_controller_set_name ((UnityLauncherScrollerChildController*) self, _tmp2_ = bamf_view_get_name ((BamfView*) self->priv->app));
1063
1064
        _g_free0 (_tmp2_);
1064
1065
        if (unity_launcher_scroller_child_controller_get_name ((UnityLauncherScrollerChildController*) self) == NULL) {