Esempio n. 1
0
static void
photos_searchbar_action_state_changed (PhotosSearchbar *self, const gchar *action_name, GVariant *value)
{
  if (g_variant_get_boolean (value))
    photos_searchbar_show (self);
  else
    photos_searchbar_hide (self);
}
Esempio n. 2
0
static void
photos_searchbar_change_state (PhotosSearchbar *self, GVariant *value)
{
  g_simple_action_set_state (G_SIMPLE_ACTION (self->priv->search), value);

  if (g_variant_get_boolean (value))
    photos_searchbar_show (self);
  else
    photos_searchbar_hide (self);
}