1
/* panel-home-button.c generated by valac 0.9.7, the Vala compiler
1
/* panel-home-button.c generated by valac, the Vala compiler
2
2
* generated from panel-home-button.vala, do not modify */
4
4
/* -*- Mode: vala; indent-tabs-mode: nil; c-basic-offset: 2; tab-width: 2 -*- */
94
94
UNITY_PANEL_HOME_BUTTON_DUMMY_PROPERTY,
95
95
UNITY_PANEL_HOME_BUTTON_SHELL
97
UnityPanelHomeButton* unity_panel_home_button_new (UnityShell* shell);
98
UnityPanelHomeButton* unity_panel_home_button_construct (GType object_type, UnityShell* shell);
99
97
gpointer unity_testing_object_registry_ref (gpointer instance);
100
98
void unity_testing_object_registry_unref (gpointer instance);
101
99
GParamSpec* unity_testing_param_spec_object_registry (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
105
103
GType unity_testing_object_registry_get_type (void) G_GNUC_CONST;
106
104
UnityTestingObjectRegistry* unity_testing_object_registry_get_default (void);
107
105
void unity_testing_object_registry_register (UnityTestingObjectRegistry* self, const char* name, GObject* object);
106
UnityPanelHomeButton* unity_panel_home_button_new (UnityShell* shell);
107
UnityPanelHomeButton* unity_panel_home_button_construct (GType object_type, UnityShell* shell);
108
UnityShell* unity_panel_home_button_get_shell (UnityPanelHomeButton* self);
108
109
static void unity_panel_home_button_real_allocate (ClutterActor* base, const ClutterActorBox* box, ClutterAllocationFlags flags);
109
UnityShell* unity_panel_home_button_get_shell (UnityPanelHomeButton* self);
110
110
static void unity_panel_home_button_on_state_changed (UnityPanelHomeButton* self);
111
111
static void unity_panel_home_button_real_get_preferred_width (ClutterActor* base, float for_height, float* min_width, float* nat_width);
112
112
static void unity_panel_home_button_on_mode_changed (UnityPanelHomeButton* self, UnityShellMode mode);
113
static void unity_panel_home_button_on_clicked (UnityPanelHomeButton* self);
114
113
GType menu_manager_get_type (void) G_GNUC_CONST;
115
114
MenuManager* menu_manager_get_default (void);
116
115
void menu_manager_popdown_current_menu (MenuManager* self);
116
static void unity_panel_home_button_on_clicked (UnityPanelHomeButton* self);
117
117
static gboolean unity_panel_home_button_on_motion_event (UnityPanelHomeButton* self, ClutterEvent* event);
118
118
static void unity_panel_home_button_set_shell (UnityPanelHomeButton* self, UnityShell* value);
119
119
static gboolean _unity_panel_home_button_on_motion_event_clutter_actor_motion_event (ClutterActor* _sender, ClutterEvent* event, gpointer self);
154
154
self = (UnityPanelHomeButton*) base;
155
155
pad = (_tmp0_.top = (float) 0, _tmp0_);
156
lwidth = (float) unity_shell_get_launcher_width_foobar (self->priv->_shell);
156
lwidth = 2.0f + ((float) unity_shell_get_launcher_width_foobar (self->priv->_shell));
157
157
pheight = (float) unity_shell_get_panel_height_foobar (self->priv->_shell);
158
158
clutter_actor_get_preferred_size ((ClutterActor*) self->priv->theme_image, &cwidth, &cheight, &cwidth, &cheight);
159
159
if ((lwidth - cwidth) <= 0.0f) {
206
206
static void unity_panel_home_button_real_get_preferred_width (ClutterActor* base, float for_height, float* min_width, float* nat_width) {
207
207
UnityPanelHomeButton * self;
208
208
self = (UnityPanelHomeButton*) base;
209
*min_width = (float) unity_shell_get_launcher_width_foobar (self->priv->_shell);
210
*nat_width = (float) unity_shell_get_launcher_width_foobar (self->priv->_shell);
209
*min_width = 2.0f + unity_shell_get_launcher_width_foobar (self->priv->_shell);
210
*nat_width = 2.0f + unity_shell_get_launcher_width_foobar (self->priv->_shell);
304
304
CtkImage* _tmp0_;
305
305
CtkEffectGlow* _tmp1_;
306
307
ClutterColor _tmp2_ = {0};
308
308
self->priv->theme_image = (_tmp0_ = g_object_ref_sink ((CtkImage*) ctk_image_new_from_filename ((guint) 22, "/usr/share/icons/unity-icon-theme/places/22/distributor-logo.png")), _g_object_unref0 (self->priv->theme_image), _tmp0_);
309
309
clutter_container_add_actor ((ClutterContainer*) self, (ClutterActor*) self->priv->theme_image);
310
310
clutter_actor_show ((ClutterActor*) self->priv->theme_image);