/*******************************************************************************/
void
init_scene_External(AWallpaperPlugin *desktop_plugin){
- //fprintf(stderr,"init_scene_Xsnow\n");
+
char* child_argv[2048];
char *run_string = NULL;
gchar *exec_path = NULL,
return;
if (window_id){
strwin = g_strdup_printf(" %s %i", window_id, GDK_WINDOW_XID(desktop_plugin->priv->window->window));
- }
+ }else
+ strwin = "";
+
if (view){
strview = g_strdup_printf(" %s %i", view, desktop_plugin->priv->view);
- }
+ }else
+ strview = "";
+
run_string = g_strdup_printf("%s%s%s", exec_path, strwin, strview);
fprintf(stderr, "runs string = %s\n", run_string);
parsestring(run_string, child_argv);
gtk_window_set_title(GTK_WINDOW(window), _("View Settings"));
gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER);
gtk_window_set_modal(GTK_WINDOW(window), TRUE);
+
/* Create Enable button */
enable_button = create_enable_button(check_applet_state(view));
gtk_box_pack_start(GTK_BOX(GTK_DIALOG(window)->vbox),
g_signal_connect (G_OBJECT (category_button), "value-changed", G_CALLBACK (changed_value_category_cb), priv);
gtk_box_pack_start(GTK_BOX(GTK_DIALOG(window)->vbox),
category_button, TRUE, TRUE, 5);
- /* Create custom vbox */
+ /* Create Custom vbox */
vbox = gtk_vbox_new (FALSE, 5);
g_object_set_data(G_OBJECT(window), "custom_vbox", vbox);
theme_button, TRUE, TRUE, 5);
fill_theme_button(priv, theme_button, hildon_button_get_value(HILDON_BUTTON (category_button)));
+ /* Pack custom vbox. It must be last widget */
gtk_box_pack_start(GTK_BOX(GTK_DIALOG(window)->vbox),
vbox, TRUE, TRUE, 5);
-#if 0
- if (!strcmp(hildon_button_get_value(HILDON_BUTTON (theme_button)), _("Berlin"))||
- !strcmp(hildon_button_get_value(HILDON_BUTTON (theme_button)), _("Matrix"))||
- !strcmp(hildon_button_get_value(HILDON_BUTTON (theme_button)), _("Accel"))||
- !strcmp(hildon_button_get_value(HILDON_BUTTON (theme_button)), _("Modern"))){
- rich_animation_additional_parametr(vbox, priv);
- }
- if (!strcmp(hildon_button_get_value(HILDON_BUTTON (theme_button)), _("Video"))){
- additional_parametr_for_theme_video(vbox, priv);
- }
-#endif
gtk_widget_show (enable_button);
gtk_widget_show (category_button);
gtk_widget_show (theme_button);
gtk_widget_show (vbox);
gtk_widget_show (window);
+
save_button = gtk_dialog_add_button(GTK_DIALOG(window), _("Save"), GTK_RESPONSE_YES);
result = gtk_dialog_run(GTK_DIALOG(window));