1
/* places-place-bar.c generated by valac 0.9.7, the Vala compiler
1
/* places-place-bar.c generated by valac, the Vala compiler
2
2
* generated from places-place-bar.vala, do not modify */
216
216
UNITY_PLACES_PLACE_BAR_SHELL,
217
217
UNITY_PLACES_PLACE_BAR_MODEL
219
UnityPlacesPlaceBar* unity_places_place_bar_new (UnityShell* shell, UnityPlacesPlaceModel* model);
220
UnityPlacesPlaceBar* unity_places_place_bar_construct (GType object_type, UnityShell* shell, UnityPlacesPlaceModel* model);
221
219
gpointer unity_testing_object_registry_ref (gpointer instance);
222
220
void unity_testing_object_registry_unref (gpointer instance);
223
221
GParamSpec* unity_testing_param_spec_object_registry (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
227
225
GType unity_testing_object_registry_get_type (void) G_GNUC_CONST;
228
226
UnityTestingObjectRegistry* unity_testing_object_registry_get_default (void);
229
227
void unity_testing_object_registry_register (UnityTestingObjectRegistry* self, const char* name, GObject* object);
230
void unity_places_place_bar_reset (UnityPlacesPlaceBar* self);
228
UnityPlacesPlaceBar* unity_places_place_bar_new (UnityShell* shell, UnityPlacesPlaceModel* model);
229
UnityPlacesPlaceBar* unity_places_place_bar_construct (GType object_type, UnityShell* shell, UnityPlacesPlaceModel* model);
231
230
GType unity_places_place_get_type (void) G_GNUC_CONST;
232
231
GType unity_places_place_entry_get_type (void) G_GNUC_CONST;
232
void unity_places_place_entry_set_active (UnityPlacesPlaceEntry* self, gboolean value);
233
233
UnityPlacesPlaceEntry* unity_places_place_entry_view_get_entry (UnityPlacesPlaceEntryView* self);
234
void unity_places_place_entry_set_active (UnityPlacesPlaceEntry* self, gboolean value);
235
234
void unity_places_place_bar_background_set_entry_position (UnityPlacesPlaceBarBackground* self, gint value);
236
void unity_places_place_bar_active_entry_name (UnityPlacesPlaceBar* self, const char* name);
235
void unity_places_place_bar_reset (UnityPlacesPlaceBar* self);
237
236
GType unity_places_place_view_get_type (void) G_GNUC_CONST;
238
237
const char* unity_places_place_entry_get_name (UnityPlacesPlaceEntry* self);
239
238
static void unity_places_place_bar_on_entry_activated (UnityPlacesPlaceBar* self, UnityPlacesPlaceView* view, UnityPlacesPlaceEntryView* entry_view);
239
void unity_places_place_bar_active_entry_name (UnityPlacesPlaceBar* self, const char* name);
240
UnityShell* unity_places_place_bar_get_shell (UnityPlacesPlaceBar* self);
240
241
static void unity_places_place_bar_real_allocate (ClutterActor* base, const ClutterActorBox* box, ClutterAllocationFlags flags);
241
UnityShell* unity_places_place_bar_get_shell (UnityPlacesPlaceBar* self);
242
242
static void unity_places_place_bar_real_get_preferred_height (ClutterActor* base, float for_width, float* min_height, float* nat_height);
243
243
gint unity_places_place_bar_background_get_entry_position (UnityPlacesPlaceBarBackground* self);
244
244
#define UNITY_PLACES_PLACE_ENTRY_VIEW_WIDTH 80
263
263
UNITY_PLACES_PLACE_BAR_BACKGROUND_ENTRY_POSITION
265
265
#define UNITY_PLACES_PLACE_BAR_BACKGROUND_BG "/usr/share/unity/dash_background.png"
266
static void unity_places_place_bar_background_real_allocate (ClutterActor* base, const ClutterActorBox* box, ClutterAllocationFlags flags);
267
266
static gboolean unity_places_place_bar_background_update_background (UnityPlacesPlaceBarBackground* self);
268
267
static gboolean _unity_places_place_bar_background_update_background_gsource_func (gpointer self);
268
static void unity_places_place_bar_background_real_allocate (ClutterActor* base, const ClutterActorBox* box, ClutterAllocationFlags flags);
269
269
UnityShell* unity_places_place_bar_background_get_shell (UnityPlacesPlaceBarBackground* self);
270
270
static void unity_places_place_bar_background_set_shell (UnityPlacesPlaceBarBackground* self, UnityShell* value);
271
271
static GObject * unity_places_place_bar_background_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
470
470
UnityPlacesPlaceBarBackground* _tmp0_;
471
471
CtkEffectGlow* _tmp1_;
472
473
ClutterColor _tmp2_ = {0};
474
474
self->priv->bg = (_tmp0_ = g_object_ref_sink (unity_places_place_bar_background_new (self->priv->_shell)), _g_object_unref0 (self->priv->bg), _tmp0_);
475
475
ctk_actor_set_background ((CtkActor*) self, (ClutterActor*) self->priv->bg);
476
476
clutter_actor_show ((ClutterActor*) self->priv->bg);
756
756
_inner_error_ = NULL;
761
_tmp0_ = gdk_pixbuf_new_from_file (UNITY_PLACES_PLACE_BAR_BACKGROUND_BG, &_inner_error_);
761
_tmp4_ = gdk_pixbuf_new_from_file (UNITY_PLACES_PLACE_BAR_BACKGROUND_BG, &_inner_error_);
762
762
if (_inner_error_ != NULL) {
763
763
goto __catch14_g_error;
765
self->priv->tile = (_tmp1_ = _tmp0_, _g_object_unref0 (self->priv->tile), _tmp1_);
765
self->priv->tile = (_tmp5_ = _tmp4_, _g_object_unref0 (self->priv->tile), _tmp5_);
767
767
goto __finally14;
768
768
__catch14_g_error: