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

« back to all changes in this revision

Viewing changes to unity-private/launcher/scrollerchild-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:
135
135
        gboolean do_not_render;
136
136
        UnityLauncherScrollerChildController* controller;
137
137
        float grabbed_push;
 
138
        UnityUnityIcon* processed_icon;
138
139
};
139
140
 
140
141
struct _UnityLauncherScrollerChildClass {
196
197
void unity_launcher_scroller_child_controller_set_menu (UnityLauncherScrollerChildController* self, UnityLauncherQuicklistController* value);
197
198
gboolean unity_launcher_quicklist_controller_is_menu_open (void);
198
199
gboolean unity_launcher_quicklist_controller_do_menus_match (UnityLauncherQuicklistController* menu);
199
 
static gboolean _lambda18_ (UnityLauncherScrollerChildController* self);
200
 
static gboolean __lambda18__gsource_func (gpointer self);
 
200
static gboolean _lambda20_ (UnityLauncherScrollerChildController* self);
 
201
static gboolean __lambda20__gsource_func (gpointer self);
201
202
static ClutterActor* unity_launcher_scroller_child_controller_real_get_icon (UnityDragModel* base);
202
203
ClutterActor* unity_launcher_scroller_child_get_content (UnityLauncherScrollerChild* self);
203
204
static char* unity_launcher_scroller_child_controller_real_get_drag_data (UnityDragModel* base);
205
206
static gboolean unity_launcher_scroller_child_controller_on_motion_event (UnityLauncherScrollerChildController* self, ClutterEvent* event);
206
207
void unity_launcher_scroller_child_controller_load_icon_from_icon_name (UnityLauncherScrollerChildController* self, const char* icon_name);
207
208
static gboolean unity_launcher_scroller_child_controller_try_load_from_file (UnityLauncherScrollerChildController* self, const char* filepath);
208
 
static void _lambda19_ (UnityThemeFilePath* theme, const char* filepath, UnityLauncherScrollerChildController* self);
 
209
static void _lambda21_ (UnityThemeFilePath* theme, const char* filepath, UnityLauncherScrollerChildController* self);
209
210
void unity_launcher_scroller_child_set_icon (UnityLauncherScrollerChild* self, GdkPixbuf* value);
210
 
static void __lambda19__unity_theme_file_path_found_icon_path (UnityThemeFilePath* _sender, const char* filepath, gpointer self);
211
 
static void _lambda20_ (Block11Data* _data11_);
212
 
static void __lambda20__unity_theme_file_path_failed (UnityThemeFilePath* _sender, gpointer self);
 
211
static void __lambda21__unity_theme_file_path_found_icon_path (UnityThemeFilePath* _sender, const char* filepath, gpointer self);
 
212
static void _lambda22_ (Block11Data* _data11_);
 
213
static void __lambda22__unity_theme_file_path_failed (UnityThemeFilePath* _sender, gpointer self);
213
214
static Block11Data* block11_data_ref (Block11Data* _data11_);
214
215
static void block11_data_unref (Block11Data* _data11_);
215
216
static void unity_launcher_scroller_child_controller_set_child (UnityLauncherScrollerChildController* self, UnityLauncherScrollerChild* value);
409
410
}
410
411
 
411
412
 
412
 
static gboolean _lambda18_ (UnityLauncherScrollerChildController* self) {
 
413
static gboolean _lambda20_ (UnityLauncherScrollerChildController* self) {
413
414
        gboolean result = FALSE;
414
415
        if (unity_launcher_quicklist_controller_get_state (self->priv->_menu) != UNITY_LAUNCHER_QUICKLIST_CONTROLLER_STATE_MENU) {
415
416
                unity_launcher_quicklist_controller_set_state (self->priv->_menu, UNITY_LAUNCHER_QUICKLIST_CONTROLLER_STATE_MENU);
419
420
}
420
421
 
421
422
 
422
 
static gboolean __lambda18__gsource_func (gpointer self) {
 
423
static gboolean __lambda20__gsource_func (gpointer self) {
423
424
        gboolean result;
424
 
        result = _lambda18_ (self);
 
425
        result = _lambda20_ (self);
425
426
        return result;
426
427
}
427
428
 
465
466
                unity_launcher_quicklist_controller_set_state (self->priv->_menu, UNITY_LAUNCHER_QUICKLIST_CONTROLLER_STATE_LABEL);
466
467
        }
467
468
        if (self->menu_state == UNITY_LAUNCHER_SCROLLER_CHILD_CONTROLLER_MENU_STATE_MENU) {
468
 
                g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, __lambda18__gsource_func, g_object_ref (self), g_object_unref);
 
469
                g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, __lambda20__gsource_func, g_object_ref (self), g_object_unref);
469
470
        }
470
471
}
471
472
 
558
559
}
559
560
 
560
561
 
561
 
static void _lambda19_ (UnityThemeFilePath* theme, const char* filepath, UnityLauncherScrollerChildController* self) {
 
562
static void _lambda21_ (UnityThemeFilePath* theme, const char* filepath, UnityLauncherScrollerChildController* self) {
562
563
        GError * _inner_error_ = NULL;
563
564
        g_return_if_fail (theme != NULL);
564
565
        g_return_if_fail (filepath != NULL);
594
595
}
595
596
 
596
597
 
597
 
static void __lambda19__unity_theme_file_path_found_icon_path (UnityThemeFilePath* _sender, const char* filepath, gpointer self) {
598
 
        _lambda19_ (_sender, filepath, self);
 
598
static void __lambda21__unity_theme_file_path_found_icon_path (UnityThemeFilePath* _sender, const char* filepath, gpointer self) {
 
599
        _lambda21_ (_sender, filepath, self);
599
600
}
600
601
 
601
602
 
602
 
static void _lambda20_ (Block11Data* _data11_) {
 
603
static void _lambda22_ (Block11Data* _data11_) {
603
604
        UnityLauncherScrollerChildController * self;
604
605
        GError * _inner_error_ = NULL;
605
606
        self = _data11_->self;
635
636
}
636
637
 
637
638
 
638
 
static void __lambda20__unity_theme_file_path_failed (UnityThemeFilePath* _sender, gpointer self) {
639
 
        _lambda20_ (self);
 
639
static void __lambda22__unity_theme_file_path_failed (UnityThemeFilePath* _sender, gpointer self) {
 
640
        _lambda22_ (self);
640
641
}
641
642
 
642
643
 
684
685
        unity_theme_file_path_add_icon_theme (self->priv->theme_file_path, theme);
685
686
        gtk_icon_theme_set_custom_theme (theme, "Web");
686
687
        unity_theme_file_path_add_icon_theme (self->priv->theme_file_path, theme);
687
 
        g_signal_connect_object (self->priv->theme_file_path, "found-icon-path", (GCallback) __lambda19__unity_theme_file_path_found_icon_path, self, 0);
688
 
        g_signal_connect_data (self->priv->theme_file_path, "failed", (GCallback) __lambda20__unity_theme_file_path_failed, block11_data_ref (_data11_), (GClosureNotify) block11_data_unref, 0);
 
688
        g_signal_connect_object (self->priv->theme_file_path, "found-icon-path", (GCallback) __lambda21__unity_theme_file_path_found_icon_path, self, 0);
 
689
        g_signal_connect_data (self->priv->theme_file_path, "failed", (GCallback) __lambda22__unity_theme_file_path_failed, block11_data_ref (_data11_), (GClosureNotify) block11_data_unref, 0);
689
690
        unity_theme_file_path_get_icon_filepath (self->priv->theme_file_path, _data11_->icon_name, NULL, NULL);
690
691
        _g_object_unref0 (theme);
691
692
        block11_data_unref (_data11_);
851
852
                UnityLauncherScrollerChildController* _tmp1_;
852
853
                ClutterAnimation* anim;
853
854
                self->priv->theme_file_path = (_tmp0_ = unity_theme_file_path_new (), _g_object_unref0 (self->priv->theme_file_path), _tmp0_);
854
 
                unity_launcher_scroller_child_controller_set_name (self, "Bug Found, You Defeated Unity, +20 exp");
 
855
                unity_launcher_scroller_child_controller_set_name (self, "Bug Found, You Defeated Unity, +20,000 exp");
855
856
                self->priv->_child->controller = (_tmp1_ = _g_object_ref0 (self), _g_object_unref0 (self->priv->_child->controller), _tmp1_);
856
857
                g_signal_connect_object ((ClutterActor*) self->priv->_child, "button-press-event", (GCallback) _unity_launcher_scroller_child_controller_on_press_event_clutter_actor_button_press_event, self, 0);
857
858
                g_signal_connect_object ((ClutterActor*) self->priv->_child, "button-release-event", (GCallback) _unity_launcher_scroller_child_controller_on_release_event_clutter_actor_button_release_event, self, 0);