192
192
#define UNITY_PLACES_PLACE_SEARCH_SECTIONS_BAR_SPACING 10
193
193
UnityPlacesPlaceSearchSectionsBar* unity_places_place_search_sections_bar_new (void);
194
194
UnityPlacesPlaceSearchSectionsBar* unity_places_place_search_sections_bar_construct (GType object_type);
195
static void unity_places_place_search_sections_bar_on_section_clicked_real (UnityPlacesPlaceSearchSectionsBar* self, UnityPlacesSection* section);
195
196
void unity_places_place_search_sections_bar_set_active_section (UnityPlacesPlaceSearchSectionsBar* self, guint section_id);
196
static void unity_places_place_search_sections_bar_on_section_clicked_real (UnityPlacesPlaceSearchSectionsBar* self, UnityPlacesSection* section);
197
void unity_places_place_search_sections_bar_set_active_entry (UnityPlacesPlaceSearchSectionsBar* self, UnityPlacesPlaceEntry* entry);
198
197
DeeModel* unity_places_place_entry_get_sections_model (UnityPlacesPlaceEntry* self);
199
198
static void unity_places_place_search_sections_bar_on_section_added (UnityPlacesPlaceSearchSectionsBar* self, DeeModel* model, DeeModelIter* iter);
200
199
static void _unity_places_place_search_sections_bar_on_section_added_dee_model_row_added (DeeModel* _sender, DeeModelIter* iter, gpointer self);
208
207
void unity_places_section_set_iter (UnityPlacesSection* self, DeeModelIter* value);
209
208
void unity_places_section_set_active (UnityPlacesSection* self, gboolean value);
210
209
void unity_places_section_start_destroy (UnityPlacesSection* self);
211
static gint unity_places_place_search_sections_bar_sort_sections (UnityPlacesSection* asec, UnityPlacesSection* bsec);
210
void unity_places_place_search_sections_bar_set_active_entry (UnityPlacesPlaceSearchSectionsBar* self, UnityPlacesPlaceEntry* entry);
212
211
DeeModel* unity_places_section_get_model (UnityPlacesSection* self);
213
212
DeeModelIter* unity_places_section_get_iter (UnityPlacesSection* self);
213
static gint unity_places_place_search_sections_bar_sort_sections (UnityPlacesSection* asec, UnityPlacesSection* bsec);
214
214
UnityPlacesSection* unity_places_section_new (DeeModel* model, DeeModelIter* iter);
215
215
UnityPlacesSection* unity_places_section_construct (GType object_type, DeeModel* model, DeeModelIter* iter);
216
216
static gboolean unity_places_place_search_sections_bar_on_section_clicked (UnityPlacesPlaceSearchSectionsBar* self, ClutterActor* actor, ClutterEvent* e);
217
217
static gboolean _unity_places_place_search_sections_bar_on_section_clicked_clutter_actor_button_release_event (ClutterActor* _sender, ClutterEvent* event, gpointer self);
218
218
void unity_places_place_entry_set_active_section (UnityPlacesPlaceEntry* self, guint section_id);
219
219
static UnityPlacesSection* unity_places_place_search_sections_bar_get_section_for_iter (UnityPlacesPlaceSearchSectionsBar* self, DeeModelIter* iter);
220
gboolean unity_places_section_get_active (UnityPlacesSection* self);
220
221
static void unity_places_place_search_sections_bar_paint_bg (UnityPlacesPlaceSearchSectionsBar* self, cairo_t* cr, gint width, gint height);
221
gboolean unity_places_section_get_active (UnityPlacesSection* self);
222
222
UnityPlacesSectionStyle unity_places_place_search_sections_bar_get_style (UnityPlacesPlaceSearchSectionsBar* self);
223
223
static void _unity_places_place_search_sections_bar_paint_bg_unity_cairo_canvas_cairo_canvas_paint (cairo_t* cr, gint width, gint height, gpointer self);
224
224
static GObject * unity_places_place_search_sections_bar_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
1144
1144
obj = parent_class->constructor (type, n_construct_properties, construct_properties);
1145
1145
self = UNITY_PLACES_SECTION (obj);
1147
CtkPadding _tmp0_ = {0};
1149
UnityCairoCanvas* _tmp2_;
1150
CtkEffectGlow* _tmp3_;
1151
ClutterColor _tmp4_ = {0};
1152
ClutterColor _tmp5_;
1147
CtkPadding _tmp3_ = {0};
1149
UnityCairoCanvas* _tmp5_;
1150
CtkEffectGlow* _tmp6_;
1151
ClutterColor _tmp8_;
1152
ClutterColor _tmp7_ = {0};
1154
1154
self->priv->color.alpha = (guint8) 255;
1155
ctk_actor_set_padding ((CtkActor*) self, (_tmp1_ = (_tmp0_.top = UNITY_PLACES_SECTION_PADDING, _tmp0_.right = UNITY_PLACES_SECTION_PADDING, _tmp0_.bottom = UNITY_PLACES_SECTION_PADDING, _tmp0_.left = UNITY_PLACES_SECTION_PADDING, _tmp0_), &_tmp1_));
1156
self->priv->bg = (_tmp2_ = g_object_ref_sink (unity_cairo_canvas_new (_unity_places_section_paint_bg_unity_cairo_canvas_cairo_canvas_paint, self)), _g_object_unref0 (self->priv->bg), _tmp2_);
1155
ctk_actor_set_padding ((CtkActor*) self, (_tmp4_ = (_tmp3_.top = UNITY_PLACES_SECTION_PADDING, _tmp3_.right = UNITY_PLACES_SECTION_PADDING, _tmp3_.bottom = UNITY_PLACES_SECTION_PADDING, _tmp3_.left = UNITY_PLACES_SECTION_PADDING, _tmp3_), &_tmp4_));
1156
self->priv->bg = (_tmp5_ = g_object_ref_sink (unity_cairo_canvas_new (_unity_places_section_paint_bg_unity_cairo_canvas_cairo_canvas_paint, self)), _g_object_unref0 (self->priv->bg), _tmp5_);
1157
1157
ctk_actor_set_background ((CtkActor*) self, (ClutterActor*) self->priv->bg);
1158
1158
clutter_actor_show ((ClutterActor*) self->priv->bg);
1159
self->priv->glow = (_tmp3_ = g_object_ref_sink ((CtkEffectGlow*) ctk_effect_glow_new ()), _g_object_unref0 (self->priv->glow), _tmp3_);
1160
ctk_effect_glow_set_color (self->priv->glow, (_tmp5_ = (_tmp4_.red = (guint8) 255, _tmp4_.green = (guint8) 255, _tmp4_.blue = (guint8) 255, _tmp4_.alpha = (guint8) 255, _tmp4_), &_tmp5_));
1159
self->priv->glow = (_tmp6_ = g_object_ref_sink ((CtkEffectGlow*) ctk_effect_glow_new ()), _g_object_unref0 (self->priv->glow), _tmp6_);
1160
ctk_effect_glow_set_color (self->priv->glow, (_tmp8_ = (_tmp7_.red = (guint8) 255, _tmp7_.green = (guint8) 255, _tmp7_.blue = (guint8) 255, _tmp7_.alpha = (guint8) 255, _tmp7_), &_tmp8_));
1161
1161
ctk_effect_glow_set_factor (self->priv->glow, 1.0f);
1162
1162
ctk_effect_set_margin ((CtkEffect*) self->priv->glow, 5);
1163
self->text = (_tmp6_ = g_object_ref_sink ((CtkText*) ctk_text_new (dee_model_get_string (self->priv->_model, self->priv->_iter, (guint) 0))), _g_object_unref0 (self->text), _tmp6_);
1163
self->text = (_tmp9_ = g_object_ref_sink ((CtkText*) ctk_text_new (dee_model_get_string (self->priv->_model, self->priv->_iter, (guint) 0))), _g_object_unref0 (self->text), _tmp9_);
1164
1164
clutter_container_add_actor ((ClutterContainer*) self, (ClutterActor*) self->text);
1165
1165
clutter_actor_show ((ClutterActor*) self->text);
1166
1166
g_signal_connect_object ((GObject*) self, "notify::state", (GCallback) __lambda39__g_object_notify, self, 0);