~leprechaun-team/+junk/unity-use-patches

« back to all changes in this revision

Viewing changes to unity-private/launcher/scrollerchild.c

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-09-09 19:13:29 UTC
  • mfrom: (1.1.15 upstream)
  • Revision ID: james.westby@ubuntu.com-20100909191329-j3odkmn02roj91b1
Tags: 0.2.36-0ubuntu1
* New upstream release:
  - Fix width of home-button on panel, so groove aligns with right edge of
    launcher, fixes (LP: #630031)
  - migration script to transition first time new people to unity
    (LP: #622146)
  - Quicklist name disappearing (LP: #627666)
* debian/unity.install:
  - install libexec in unity package (for migration tool)
* debian/libunity0.symbols:
  - update symbol

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* scrollerchild.c generated by valac 0.9.7, the Vala compiler
 
1
/* scrollerchild.c generated by valac, the Vala compiler
2
2
 * generated from scrollerchild.vala, do not modify */
3
3
 
4
4
/*
26
26
 
27
27
#include <glib.h>
28
28
#include <glib-object.h>
 
29
#include <config.h>
29
30
#include <stdlib.h>
30
31
#include <string.h>
31
 
#include <config.h>
32
32
#include <float.h>
33
33
#include <math.h>
34
34
#include <clutk/clutk.h>
161
161
        UNITY_LAUNCHER_SCROLLER_CHILD_GROUP_TYPE,
162
162
        UNITY_LAUNCHER_SCROLLER_CHILD_IS_DRAGGING_STATE
163
163
};
164
 
char* unity_launcher_scroller_child_to_string (UnityLauncherScrollerChild* self);
165
164
gboolean unity_launcher_scroller_child_get_running (UnityLauncherScrollerChild* self);
166
165
gboolean unity_launcher_scroller_child_get_active (UnityLauncherScrollerChild* self);
167
166
float unity_launcher_scroller_child_get_position (UnityLauncherScrollerChild* self);
 
167
char* unity_launcher_scroller_child_to_string (UnityLauncherScrollerChild* self);
168
168
UnityLauncherScrollerChild* unity_launcher_scroller_child_new (void);
169
169
UnityLauncherScrollerChild* unity_launcher_scroller_child_construct (GType object_type);
170
 
static void unity_launcher_scroller_child_load_textures (UnityLauncherScrollerChild* self);
171
170
static void unity_launcher_scroller_child_on_icon_changed (UnityLauncherScrollerChild* self);
172
171
static void _unity_launcher_scroller_child_on_icon_changed_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
173
172
static void unity_launcher_scroller_child_on_running_changed (UnityLauncherScrollerChild* self);
185
184
static void unity_launcher_scroller_child_on_enable_close_state_changed (UnityLauncherScrollerChild* self);
186
185
static void _unity_launcher_scroller_child_on_enable_close_state_changed_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
187
186
static void unity_launcher_scroller_child_on_rotation_changed (UnityLauncherScrollerChild* self);
 
187
static void unity_launcher_scroller_child_load_textures (UnityLauncherScrollerChild* self);
 
188
void unity_launcher_scroller_child_set_is_dragging_state (UnityLauncherScrollerChild* self, gboolean value);
188
189
ClutterActor* unity_launcher_scroller_child_get_content (UnityLauncherScrollerChild* self);
189
 
void unity_launcher_scroller_child_set_is_dragging_state (UnityLauncherScrollerChild* self, gboolean value);
190
190
gboolean unity_launcher_scroller_child_get_is_dragging_state (UnityLauncherScrollerChild* self);
191
191
#define UNITY_LAUNCHER_SHORT_DELAY ((guint) 400)
192
192
gboolean unity_launcher_scroller_child_get_enable_close_state (UnityLauncherScrollerChild* self);
193
193
static float unity_launcher_scroller_child_get_ease_out_sine (float alpha);
194
194
static float unity_launcher_scroller_child_get_circular_alpha (float alpha);
 
195
void unity_launcher_scroller_child_set_rotation (UnityLauncherScrollerChild* self, float value);
195
196
void unity_launcher_scroller_child_force_rotation_jump (UnityLauncherScrollerChild* self, float degrees);
196
 
void unity_launcher_scroller_child_set_rotation (UnityLauncherScrollerChild* self, float value);
197
 
static void unity_launcher_scroller_child_on_glow_timeline_new_frame (UnityLauncherScrollerChild* self);
198
197
static void unity_launcher_scroller_child_glow_anim_rising (UnityLauncherScrollerChild* self, float progress);
199
198
static void unity_launcher_scroller_child_glow_anim_looping (UnityLauncherScrollerChild* self, float progress);
200
199
static void unity_launcher_scroller_child_glow_anim_falling (UnityLauncherScrollerChild* self, float progress);
 
200
static void unity_launcher_scroller_child_on_glow_timeline_new_frame (UnityLauncherScrollerChild* self);
201
201
#define UNITY_LAUNCHER_LONG_DELAY ((guint) 1600)
202
 
static void unity_launcher_scroller_child_on_wiggle_timeline_new_frame (UnityLauncherScrollerChild* self);
203
202
static void unity_launcher_scroller_child_wiggle_anim_rising (UnityLauncherScrollerChild* self, float progress);
204
203
static void unity_launcher_scroller_child_wiggle_anim_looping (UnityLauncherScrollerChild* self, float progress);
205
204
static void unity_launcher_scroller_child_wiggle_anim_falling (UnityLauncherScrollerChild* self, float progress);
 
205
static void unity_launcher_scroller_child_on_wiggle_timeline_new_frame (UnityLauncherScrollerChild* self);
 
206
gboolean unity_launcher_scroller_child_get_needs_attention (UnityLauncherScrollerChild* self);
206
207
static gboolean unity_launcher_scroller_child_check_continue_wiggle (UnityLauncherScrollerChild* self);
207
 
gboolean unity_launcher_scroller_child_get_needs_attention (UnityLauncherScrollerChild* self);
208
208
static gboolean _unity_launcher_scroller_child_check_continue_wiggle_gsource_func (gpointer self);
209
209
GdkPixbuf* unity_launcher_scroller_child_get_icon (UnityLauncherScrollerChild* self);
210
210
float unity_launcher_scroller_child_get_rotation (UnityLauncherScrollerChild* self);
346
346
 
347
347
 
348
348
static void unity_launcher_scroller_child_load_textures (UnityLauncherScrollerChild* self) {
 
349
        GError * _inner_error_;
349
350
        UnityThemeImage* _tmp0_;
350
351
        UnityThemeImage* _tmp1_;
351
352
        UnityThemeImage* _tmp2_;
352
353
        UnityThemeImage* _tmp3_;
353
354
        UnityUnityIcon* _tmp6_;
354
 
        GError * _inner_error_ = NULL;
355
355
        g_return_if_fail (self != NULL);
 
356
        _inner_error_ = NULL;
356
357
        self->priv->active_indicator = (_tmp0_ = g_object_ref_sink (unity_theme_image_new ("application-selected")), _g_object_unref0 (self->priv->active_indicator), _tmp0_);
357
358
        self->priv->running_indicator = (_tmp1_ = g_object_ref_sink (unity_theme_image_new ("application-running")), _g_object_unref0 (self->priv->running_indicator), _tmp1_);
358
359
        self->priv->running_indicator_notify = (_tmp2_ = g_object_ref_sink (unity_theme_image_new ("application-running-notify")), _g_object_unref0 (self->priv->running_indicator_notify), _tmp2_);
691
692
                guint red = 0U;
692
693
                guint green = 0U;
693
694
                guint blue = 0U;
 
695
                guchar* _tmp3_;
 
696
                gint _pixels_size_;
694
697
                gint pixels_length1;
695
 
                gint _pixels_size_;
696
 
                guchar* _tmp3_;
697
698
                guchar* pixels;
698
699
                ClutterActor* tex;
699
700
                ClutterActor* color;
 
701
                UnityUnityIcon* _tmp6_;
700
702
                ClutterActor* _tmp4_;
701
703
                ClutterActor* _tmp5_;
702
 
                UnityUnityIcon* _tmp6_;
703
704
                CtkEffectDropShadow* _tmp7_;
704
705
                scaled_buf = NULL;
705
706
                max_size = 48;