void
set_button_image(GtkWidget * button, gchar *theme){
GtkWidget * image = NULL;
- GdkPixbuf * pixbuf = NULL;
+ GdkPixbuf * pixbuf = NULL;
+
gchar * str = g_strdup_printf( "%s/%s/%s", THEME_PATH,
theme, "icon.png");
fprintf(stderr, "set image %s\n", str);
g_object_unref(G_OBJECT(pixbuf));
}
- hildon_button_set_image (HILDON_BUTTON (button), image);
+ hildon_button_set_image (HILDON_BUTTON (button), image);
}
-
+/********************************************************************************/
GtkWidget *
create_image_button (gint view, DBusConnection *conn_sess){
GtkWidget *button;
g_object_set_data(G_OBJECT(button), "view", GINT_TO_POINTER(view));
set_button_image(button, priv->theme);
g_signal_connect(button, "clicked", G_CALLBACK(theme_button_clicked), priv);
- //hildon_button_set_image_position (HILDON_BUTTON (button), GTK_POS_RIGHT);
+ hildon_button_set_image_position (HILDON_BUTTON (button), GTK_POS_RIGHT);
return button;
}