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

« back to all changes in this revision

Viewing changes to unity-private/places/places-view.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:
115
115
 
116
116
typedef struct _UnityPlacesPlaceSearchSectionsBar UnityPlacesPlaceSearchSectionsBar;
117
117
typedef struct _UnityPlacesPlaceSearchSectionsBarClass UnityPlacesPlaceSearchSectionsBarClass;
 
118
 
 
119
#define UNITY_PLACES_TYPE_PLACE_SEARCH_EXTRA_ACTION (unity_places_place_search_extra_action_get_type ())
 
120
#define UNITY_PLACES_PLACE_SEARCH_EXTRA_ACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_PLACES_TYPE_PLACE_SEARCH_EXTRA_ACTION, UnityPlacesPlaceSearchExtraAction))
 
121
#define UNITY_PLACES_PLACE_SEARCH_EXTRA_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_PLACES_TYPE_PLACE_SEARCH_EXTRA_ACTION, UnityPlacesPlaceSearchExtraActionClass))
 
122
#define UNITY_PLACES_IS_PLACE_SEARCH_EXTRA_ACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_PLACES_TYPE_PLACE_SEARCH_EXTRA_ACTION))
 
123
#define UNITY_PLACES_IS_PLACE_SEARCH_EXTRA_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_PLACES_TYPE_PLACE_SEARCH_EXTRA_ACTION))
 
124
#define UNITY_PLACES_PLACE_SEARCH_EXTRA_ACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_PLACES_TYPE_PLACE_SEARCH_EXTRA_ACTION, UnityPlacesPlaceSearchExtraActionClass))
 
125
 
 
126
typedef struct _UnityPlacesPlaceSearchExtraAction UnityPlacesPlaceSearchExtraAction;
 
127
typedef struct _UnityPlacesPlaceSearchExtraActionClass UnityPlacesPlaceSearchExtraActionClass;
118
128
typedef struct _UnityPlacesPlaceSearchEntryPrivate UnityPlacesPlaceSearchEntryPrivate;
119
129
#define _g_free0(var) (var = (g_free (var), NULL))
120
130
 
225
235
        UnityPlacesPlaceSearchBarPrivate * priv;
226
236
        UnityPlacesPlaceSearchEntry* entry;
227
237
        UnityPlacesPlaceSearchSectionsBar* sections;
 
238
        UnityPlacesPlaceSearchExtraAction* extra_action;
228
239
};
229
240
 
230
241
struct _UnityPlacesPlaceSearchBarClass {
294
305
UnityPlacesPlaceSearchBar* unity_places_place_search_bar_construct (GType object_type);
295
306
GType unity_places_place_search_entry_get_type (void) G_GNUC_CONST;
296
307
GType unity_places_place_search_sections_bar_get_type (void) G_GNUC_CONST;
 
308
GType unity_places_place_search_extra_action_get_type (void) G_GNUC_CONST;
297
309
static gboolean unity_places_view_on_stage_event_captured (UnityPlacesView* self, ClutterEvent* event);
298
310
static gboolean _unity_places_view_on_stage_event_captured_clutter_actor_captured_event (ClutterActor* _sender, ClutterEvent* event, gpointer self);
299
 
static void _lambda42_ (UnityPlacesView* self);
300
 
static void __lambda42__clutter_text_activate (ClutterText* _sender, gpointer self);
 
311
static void _lambda44_ (UnityPlacesView* self);
 
312
static void __lambda44__clutter_text_activate (ClutterText* _sender, gpointer self);
301
313
void unity_places_view_shown (UnityPlacesView* self);
302
314
void unity_places_place_search_bar_reset (UnityPlacesPlaceSearchBar* self);
303
315
void unity_places_view_on_entry_view_activated (UnityPlacesView* self, UnityPlacesPlaceEntry* entry, guint section_id);
306
318
static void unity_places_view_on_entry_renderer_info_changed (UnityPlacesView* self, UnityPlacesPlaceEntry* entry);
307
319
static void _unity_places_view_on_entry_renderer_info_changed_unity_places_place_entry_renderer_info_changed (UnityPlacesPlaceEntry* _sender, gpointer self);
308
320
static void unity_places_view_update_views (UnityPlacesView* self, UnityPlacesPlaceEntry* entry, guint section_id);
309
 
static void _lambda43_ (ClutterAnimation* a, UnityPlacesView* self);
310
 
static void __lambda43__clutter_animation_completed (ClutterAnimation* _sender, gpointer self);
 
321
static void _lambda45_ (ClutterAnimation* a, UnityPlacesView* self);
 
322
static void __lambda45__clutter_animation_completed (ClutterAnimation* _sender, gpointer self);
311
323
static UnityPlaceRenderer* unity_places_view_lookup_renderer (UnityPlacesView* self, UnityPlacesPlaceEntry* entry);
312
324
DeeModel* unity_places_place_entry_get_entry_groups_model (UnityPlacesPlaceEntry* self);
313
325
DeeModel* unity_places_place_entry_get_entry_results_model (UnityPlacesPlaceEntry* self);
364
376
}
365
377
 
366
378
 
367
 
static void _lambda42_ (UnityPlacesView* self) {
 
379
static void _lambda44_ (UnityPlacesView* self) {
368
380
        unity_place_renderer_activate_default (self->priv->renderer);
369
381
}
370
382
 
371
383
 
372
 
static void __lambda42__clutter_text_activate (ClutterText* _sender, gpointer self) {
373
 
        _lambda42_ (self);
 
384
static void __lambda44__clutter_text_activate (ClutterText* _sender, gpointer self) {
 
385
        _lambda44_ (self);
374
386
}
375
387
 
376
388
 
395
407
        clutter_actor_show ((ClutterActor*) self->search_bar);
396
408
        g_signal_connect_object ((ClutterActor*) self->search_bar->entry->text, "captured-event", (GCallback) _unity_places_view_on_stage_event_captured_clutter_actor_captured_event, self, 0);
397
409
        clutter_text_set_activatable ((ClutterText*) self->search_bar->entry->text, TRUE);
398
 
        g_signal_connect_object ((ClutterText*) self->search_bar->entry->text, "activate", (GCallback) __lambda42__clutter_text_activate, self, 0);
 
410
        g_signal_connect_object ((ClutterText*) self->search_bar->entry->text, "activate", (GCallback) __lambda44__clutter_text_activate, self, 0);
399
411
        self->priv->layered_bin = (_tmp5_ = g_object_ref_sink (unity_layered_bin_new ()), _g_object_unref0 (self->priv->layered_bin), _tmp5_);
400
412
        ctk_box_pack ((CtkBox*) self->priv->content_box, (ClutterActor*) self->priv->layered_bin, TRUE, TRUE);
401
413
        clutter_actor_show ((ClutterActor*) self->priv->layered_bin);
448
460
}
449
461
 
450
462
 
451
 
static void _lambda43_ (ClutterAnimation* a, UnityPlacesView* self) {
 
463
static void _lambda45_ (ClutterAnimation* a, UnityPlacesView* self) {
452
464
        GObject* _tmp0_;
453
465
        g_return_if_fail (a != NULL);
454
466
        clutter_actor_destroy ((_tmp0_ = clutter_animation_get_object (a), CLUTTER_IS_ACTOR (_tmp0_) ? ((ClutterActor*) _tmp0_) : NULL));
455
467
}
456
468
 
457
469
 
458
 
static void __lambda43__clutter_animation_completed (ClutterAnimation* _sender, gpointer self) {
459
 
        _lambda43_ (_sender, self);
 
470
static void __lambda45__clutter_animation_completed (ClutterAnimation* _sender, gpointer self) {
 
471
        _lambda45_ (_sender, self);
460
472
}
461
473
 
462
474
 
472
484
        if (CLUTTER_IS_ACTOR (self->priv->renderer)) {
473
485
                ClutterAnimation* anim;
474
486
                anim = _g_object_ref0 (clutter_actor_animate ((ClutterActor*) self->priv->renderer, (gulong) CLUTTER_EASE_OUT_QUAD, (guint) 300, "opacity", 0, NULL));
475
 
                g_signal_connect_object (anim, "completed", (GCallback) __lambda43__clutter_animation_completed, self, 0);
 
487
                g_signal_connect_object (anim, "completed", (GCallback) __lambda45__clutter_animation_completed, self, 0);
476
488
                clutter_container_remove_actor ((ClutterContainer*) self->priv->layered_bin, (ClutterActor*) self->priv->renderer);
477
489
                _g_object_unref0 (anim);
478
490
        }