+void
+create_themes_buttons_hbox(Animation_WallpaperPrivate *priv){
+ GtkWidget *hbox = NULL;
+ GtkWidget *area_hbox = NULL;
+ GtkWidget *theme_button;
+ GSList *stlist = NULL;
+ GConfClient *gconf_client = NULL;
+ GConfValue *value = NULL;
+ guint count_of_view = 1;
+ guint i;
+
+
+ area_hbox = g_object_get_data(G_OBJECT(priv->window), "area_hbox");
+ if (!area_hbox)
+ return;
+ hbox = g_object_get_data(G_OBJECT(priv->window), "custom_hbox");
+ if (hbox){
+ gtk_widget_destroy(hbox);
+ }
+
+ hbox = gtk_hbox_new(FALSE, 0);
+ g_object_set_data(G_OBJECT(priv->window), "custom_hbox", hbox);
+ gtk_box_pack_start(GTK_BOX(area_hbox),
+ hbox, FALSE, FALSE, 5);
+ /* Create Theme buttons */
+ theme_button = create_image_button(1, priv->dbus_conn_session);
+ gtk_box_pack_start(GTK_BOX(hbox),
+ theme_button, TRUE, TRUE, 10);
+ gtk_widget_show (theme_button);
+ gtk_widget_show (hbox);
+ if (priv->one_in_all_view)
+ return;
+
+ gconf_client = gconf_client_get_default();
+ if (!gconf_client)
+ return;
+
+ stlist = gconf_client_get_list(gconf_client,
+ "/apps/osso/hildon-desktop/views/active",
+ GCONF_VALUE_INT, NULL);
+ if (stlist){
+ count_of_view = g_slist_length(stlist);
+ g_slist_free(stlist);
+ }else
+ count_of_view = 4;
+ g_object_unref(gconf_client);
+ for (i = 2; i < count_of_view + 1; i++){
+ theme_button = create_image_button(i, priv->dbus_conn_session);
+ gtk_box_pack_start(GTK_BOX(hbox),
+ theme_button, TRUE, TRUE, 10);
+ gtk_widget_show (theme_button);
+ }
+}
+/*******************************************************************************/
+void