244
244
#define UNITY_PLACES_PLACE_SEARCH_BAR_SPACING 8
245
245
#define UNITY_PLACES_PLACE_SEARCH_BAR_RANDOM_TEXT_WIDTH 400
246
UnityPlacesPlaceSearchBar* unity_places_place_search_bar_new (void);
247
UnityPlacesPlaceSearchBar* unity_places_place_search_bar_construct (GType object_type);
248
246
gpointer unity_testing_object_registry_ref (gpointer instance);
249
247
void unity_testing_object_registry_unref (gpointer instance);
250
248
GParamSpec* unity_testing_param_spec_object_registry (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
254
252
GType unity_testing_object_registry_get_type (void) G_GNUC_CONST;
255
253
UnityTestingObjectRegistry* unity_testing_object_registry_get_default (void);
256
254
void unity_testing_object_registry_register (UnityTestingObjectRegistry* self, const char* name, GObject* object);
255
UnityPlacesPlaceSearchBar* unity_places_place_search_bar_new (void);
256
UnityPlacesPlaceSearchBar* unity_places_place_search_bar_construct (GType object_type);
257
void unity_places_place_search_entry_reset (UnityPlacesPlaceSearchEntry* self);
257
258
void unity_places_place_search_bar_reset (UnityPlacesPlaceSearchBar* self);
258
void unity_places_place_search_entry_reset (UnityPlacesPlaceSearchEntry* self);
259
static void unity_places_place_search_bar_on_search_text_changed (UnityPlacesPlaceSearchBar* self, const char* text);
259
260
void unity_places_place_search_bar_search (UnityPlacesPlaceSearchBar* self, const char* text);
260
static void unity_places_place_search_bar_on_search_text_changed (UnityPlacesPlaceSearchBar* self, const char* text);
261
261
char* unity_places_place_search_bar_get_search_text (UnityPlacesPlaceSearchBar* self);
262
static void unity_places_place_search_bar_real_allocate (ClutterActor* base, const ClutterActorBox* box, ClutterAllocationFlags flags);
263
262
gboolean unity_places_place_search_bar_background_update_background (UnityPlacesPlaceSearchBarBackground* self);
264
263
static gboolean _unity_places_place_search_bar_background_update_background_gsource_func (gpointer self);
264
static void unity_places_place_search_bar_real_allocate (ClutterActor* base, const ClutterActorBox* box, ClutterAllocationFlags flags);
265
265
static void unity_places_place_search_bar_real_get_preferred_height (ClutterActor* base, float for_width, float* min_height, float* nat_height);
266
266
void unity_places_place_entry_set_search (UnityPlacesPlaceEntry* self, const char* search, GHashTable* hints);
267
void unity_places_place_search_bar_set_active_entry_view (UnityPlacesPlaceSearchBar* self, UnityPlacesPlaceEntry* entry, gint x, guint section);
268
267
void unity_places_place_search_bar_background_set_entry_position (UnityPlacesPlaceSearchBarBackground* self, gint value);
269
268
void unity_places_place_search_sections_bar_set_active_entry (UnityPlacesPlaceSearchSectionsBar* self, UnityPlacesPlaceEntry* entry);
269
void unity_places_place_search_sections_bar_set_active_section (UnityPlacesPlaceSearchSectionsBar* self, guint section_id);
270
270
static gboolean _lambda40_ (Block5Data* _data5_);
271
void unity_places_place_search_sections_bar_set_active_section (UnityPlacesPlaceSearchSectionsBar* self, guint section_id);
272
271
static gboolean __lambda40__gsource_func (gpointer self);
273
272
void unity_places_place_search_navigation_set_active_entry (UnityPlacesPlaceSearchNavigation* self, UnityPlacesPlaceEntry* entry);
274
273
void unity_places_place_search_entry_set_active_entry (UnityPlacesPlaceSearchEntry* self, UnityPlacesPlaceEntry* entry);
275
274
static Block5Data* block5_data_ref (Block5Data* _data5_);
276
275
static void block5_data_unref (Block5Data* _data5_);
276
void unity_places_place_search_bar_set_active_entry_view (UnityPlacesPlaceSearchBar* self, UnityPlacesPlaceEntry* entry, gint x, guint section);
277
277
UnityPlacesPlaceSearchNavigation* unity_places_place_search_navigation_new (void);
278
278
UnityPlacesPlaceSearchNavigation* unity_places_place_search_navigation_construct (GType object_type);
279
279
UnityPlacesPlaceSearchEntry* unity_places_place_search_entry_new (void);
724
724
self = UNITY_PLACES_PLACE_SEARCH_BAR_BACKGROUND (obj);
725
725
_inner_error_ = NULL;
727
ClutterCairoTexture* _tmp2_;
728
CtkEffectGlow* _tmp3_;
729
ClutterColor _tmp4_ = {0};
727
ClutterCairoTexture* _tmp8_;
728
CtkEffectGlow* _tmp9_;
729
ClutterColor _tmp11_;
730
ClutterColor _tmp10_ = {0};
734
_tmp0_ = gdk_pixbuf_new_from_file (UNITY_PLACES_PLACE_SEARCH_BAR_BACKGROUND_BG, &_inner_error_);
734
_tmp6_ = gdk_pixbuf_new_from_file (UNITY_PLACES_PLACE_SEARCH_BAR_BACKGROUND_BG, &_inner_error_);
735
735
if (_inner_error_ != NULL) {
736
736
goto __catch31_g_error;
738
self->priv->tile = (_tmp1_ = _tmp0_, _g_object_unref0 (self->priv->tile), _tmp1_);
738
self->priv->tile = (_tmp7_ = _tmp6_, _g_object_unref0 (self->priv->tile), _tmp7_);
740
740
goto __finally31;
741
741
__catch31_g_error:
753
753
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
754
754
g_clear_error (&_inner_error_);
756
self->priv->texture = (_tmp2_ = g_object_ref_sink ((ClutterCairoTexture*) clutter_cairo_texture_new ((guint) 10, (guint) 10)), _g_object_unref0 (self->priv->texture), _tmp2_);
756
self->priv->texture = (_tmp8_ = g_object_ref_sink ((ClutterCairoTexture*) clutter_cairo_texture_new ((guint) 10, (guint) 10)), _g_object_unref0 (self->priv->texture), _tmp8_);
757
757
clutter_container_add_actor ((ClutterContainer*) self, (ClutterActor*) self->priv->texture);
758
758
clutter_actor_show ((ClutterActor*) self->priv->texture);
759
self->priv->glow = (_tmp3_ = g_object_ref_sink ((CtkEffectGlow*) ctk_effect_glow_new ()), _g_object_unref0 (self->priv->glow), _tmp3_);
760
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_));
759
self->priv->glow = (_tmp9_ = g_object_ref_sink ((CtkEffectGlow*) ctk_effect_glow_new ()), _g_object_unref0 (self->priv->glow), _tmp9_);
760
ctk_effect_glow_set_color (self->priv->glow, (_tmp11_ = (_tmp10_.red = (guint8) 255, _tmp10_.green = (guint8) 255, _tmp10_.blue = (guint8) 255, _tmp10_.alpha = (guint8) 255, _tmp10_), &_tmp11_));
761
761
ctk_effect_glow_set_factor (self->priv->glow, 1.0f);
762
762
ctk_effect_set_margin ((CtkEffect*) self->priv->glow, 5);
763
763
ctk_actor_add_effect ((CtkActor*) self, (CtkEffect*) self->priv->glow);