336
336
static gint greeter_list_get_box_y (GreeterList* self);
337
337
gint greeter_list_get_position_y (GreeterList* self, gdouble position);
338
338
static gint greeter_list_real_get_position_y (GreeterList* self, gdouble position);
339
#define PROMPT_BOX_NAME_MARGIN_TOP 12
340
339
static void greeter_list_move_entry (GreeterList* self, PromptBox* entry, gdouble position);
341
340
void fadable_set_alpha (Fadable* self, gdouble alpha);
342
341
void prompt_box_set_position (PromptBox* self, gdouble value);
343
342
void greeter_list_greeter_box_size_allocate_cb (GreeterList* self, GtkAllocation* allocation);
344
343
static PromptBox* greeter_list_get_scrolling_entry (GreeterList* self);
345
static gboolean ___lambda35_ (GreeterList* self);
346
static gboolean ____lambda35__gsource_func (gpointer self);
344
static gboolean ___lambda33_ (GreeterList* self);
345
static gboolean ____lambda33__gsource_func (gpointer self);
347
346
gboolean dash_box_get_has_base (DashBox* self);
348
347
gdouble dash_box_get_base_alpha (DashBox* self);
349
348
static void greeter_list_animate_scrolling (GreeterList* self, gdouble progress);
391
390
void unity_greeter_authenticate (UnityGreeter* self, const gchar* userid);
392
391
void unity_greeter_authenticate_as_guest (UnityGreeter* self);
393
392
void background_set_draw_grid (Background* self, gboolean value);
394
void unity_greeter_start_session (UnityGreeter* self, const gchar* session);
393
void unity_greeter_start_session (UnityGreeter* self, const gchar* session, Background* bg);
395
394
gchar* greeter_list_get_lightdm_session (GreeterList* self);
396
395
static gchar* greeter_list_real_get_lightdm_session (GreeterList* self);
397
396
static void greeter_list_real_test_start_authentication (GreeterList* self);
406
405
static GObject * greeter_list_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
407
406
DashBox* dash_box_new (Background* bg);
408
407
DashBox* dash_box_construct (GType object_type, Background* bg);
409
static void _greeter_list___lambda36_ (GreeterList* self);
410
static void __greeter_list___lambda36__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
408
static void _greeter_list___lambda34_ (GreeterList* self);
409
static void __greeter_list___lambda34__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
411
410
static void _greeter_list_greeter_box_size_allocate_cb_gtk_widget_size_allocate (GtkWidget* _sender, GtkAllocation* allocation, gpointer self);
412
411
gdouble animate_timer_ease_out_quint (gdouble x);
413
412
static gdouble _animate_timer_ease_out_quint_animate_timer_easing_func (gdouble x, gpointer self);
1331
1330
static gint greeter_list_real_get_position_y (GreeterList* self, gdouble position) {
1332
1331
gint result = 0;
1333
gint one_above_height;
1334
1332
gint _tmp0_ = 0;
1335
1333
gint box_height;
1336
1334
gdouble offset = 0.0;
1337
1335
gdouble _tmp1_;
1340
gdouble _tmp14_ = 0.0;
1341
one_above_height = grid_size + PROMPT_BOX_NAME_MARGIN_TOP;
1339
gdouble _tmp11_ = 0.0;
1342
1340
_tmp0_ = greeter_list_get_greeter_box_height_grids (self);
1343
box_height = (_tmp0_ * grid_size) - PROMPT_BOX_NAME_MARGIN_TOP;
1341
box_height = _tmp0_ * grid_size;
1344
1342
_tmp1_ = position;
1345
if (_tmp1_ < ((gdouble) (-1))) {
1343
if (_tmp1_ < ((gdouble) 0)) {
1346
1344
gdouble _tmp2_;
1348
1345
_tmp2_ = position;
1349
_tmp3_ = one_above_height;
1350
offset = ((_tmp2_ + 1) * grid_size) - _tmp3_;
1346
offset = _tmp2_ * grid_size;
1354
if (_tmp4_ < ((gdouble) 0)) {
1358
_tmp6_ = one_above_height;
1359
offset = _tmp5_ * _tmp6_;
1350
if (_tmp3_ < ((gdouble) 1)) {
1354
_tmp5_ = box_height;
1355
offset = _tmp4_ * _tmp5_;
1363
if (_tmp7_ < ((gdouble) 1)) {
1367
_tmp9_ = box_height;
1368
offset = _tmp8_ * _tmp9_;
1373
_tmp11_ = box_height;
1374
offset = ((_tmp10_ - 1) * grid_size) + _tmp11_;
1360
_tmp7_ = box_height;
1361
offset = ((_tmp6_ - 1) * grid_size) + _tmp7_;
1378
_tmp12_ = greeter_list_get_greeter_box_y (self);
1380
_tmp14_ = round (_tmp13_);
1381
result = _tmp12_ + ((gint) _tmp14_);
1364
_tmp8_ = greeter_list_get_box_y (self);
1367
_tmp11_ = round (_tmp10_);
1368
result = _tmp9_ + ((gint) _tmp11_);
2723
2712
GtkFixed* _tmp0_;
2724
2713
GtkFixed* _tmp1_;
2725
2714
GtkFixed* _tmp2_;
2728
2717
DashBox* _tmp5_;
2729
2718
DashBox* _tmp6_;
2730
2719
DashBox* _tmp7_;
2731
2720
DashBox* _tmp8_;
2734
AnimateTimer* _tmp11_;
2735
AnimateTimer* _tmp12_;
2721
AnimateTimer* _tmp9_;
2722
AnimateTimer* _tmp10_;
2736
2723
parent_class = G_OBJECT_CLASS (greeter_list_parent_class);
2737
2724
obj = parent_class->constructor (type, n_construct_properties, construct_properties);
2738
self = GREETER_LIST (obj);
2725
self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_GREETER_LIST, GreeterList);
2739
2726
g_object_set ((GtkWidget*) self, "can-focus", FALSE, NULL);
2740
2727
gtk_event_box_set_visible_window ((GtkEventBox*) self, FALSE);
2741
2728
_tmp0_ = (GtkFixed*) gtk_fixed_new ();
2742
_tmp1_ = g_object_ref_sink (_tmp0_);
2729
g_object_ref_sink (_tmp0_);
2743
2730
_g_object_unref0 (self->priv->fixed);
2744
self->priv->fixed = _tmp1_;
2731
self->priv->fixed = _tmp0_;
2732
_tmp1_ = self->priv->fixed;
2733
gtk_widget_show ((GtkWidget*) _tmp1_);
2745
2734
_tmp2_ = self->priv->fixed;
2746
gtk_widget_show ((GtkWidget*) _tmp2_);
2747
_tmp3_ = self->priv->fixed;
2748
gtk_container_add ((GtkContainer*) self, (GtkWidget*) _tmp3_);
2749
_tmp4_ = self->priv->_background;
2750
_tmp5_ = dash_box_new (_tmp4_);
2751
_tmp6_ = g_object_ref_sink (_tmp5_);
2735
gtk_container_add ((GtkContainer*) self, (GtkWidget*) _tmp2_);
2736
_tmp3_ = self->priv->_background;
2737
_tmp4_ = dash_box_new (_tmp3_);
2738
g_object_ref_sink (_tmp4_);
2752
2739
_g_object_unref0 (self->greeter_box);
2753
self->greeter_box = _tmp6_;
2740
self->greeter_box = _tmp4_;
2741
_tmp5_ = self->greeter_box;
2742
g_signal_connect_object ((GObject*) _tmp5_, "notify::base-alpha", (GCallback) __greeter_list___lambda34__g_object_notify, self, 0);
2743
_tmp6_ = self->greeter_box;
2744
gtk_widget_show ((GtkWidget*) _tmp6_);
2754
2745
_tmp7_ = self->greeter_box;
2755
g_signal_connect_object ((GObject*) _tmp7_, "notify::base-alpha", (GCallback) __greeter_list___lambda36__g_object_notify, self, 0);
2746
g_signal_connect_object ((GtkWidget*) _tmp7_, "size-allocate", (GCallback) _greeter_list_greeter_box_size_allocate_cb_gtk_widget_size_allocate, self, 0);
2756
2747
_tmp8_ = self->greeter_box;
2757
gtk_widget_show ((GtkWidget*) _tmp8_);
2758
_tmp9_ = self->greeter_box;
2759
g_signal_connect_object ((GtkWidget*) _tmp9_, "size-allocate", (GCallback) _greeter_list_greeter_box_size_allocate_cb_gtk_widget_size_allocate, self, 0);
2760
_tmp10_ = self->greeter_box;
2761
greeter_list_add_with_class (self, (GtkWidget*) _tmp10_);
2762
_tmp11_ = animate_timer_new (_animate_timer_ease_out_quint_animate_timer_easing_func, NULL, ANIMATE_TIMER_FAST);
2748
greeter_list_add_with_class (self, (GtkWidget*) _tmp8_);
2749
_tmp9_ = animate_timer_new (_animate_timer_ease_out_quint_animate_timer_easing_func, NULL, ANIMATE_TIMER_FAST);
2763
2750
_g_object_unref0 (self->priv->scroll_timer);
2764
self->priv->scroll_timer = _tmp11_;
2765
_tmp12_ = self->priv->scroll_timer;
2766
g_signal_connect_object (_tmp12_, "animate", (GCallback) _greeter_list_animate_scrolling_animate_timer_animate, self, 0);
2751
self->priv->scroll_timer = _tmp9_;
2752
_tmp10_ = self->priv->scroll_timer;
2753
g_signal_connect_object (_tmp10_, "animate", (GCallback) _greeter_list_animate_scrolling_animate_timer_animate, self, 0);