Commit 01dbd2c3 authored by Manish Singh's avatar Manish Singh Committed by Manish Singh

cleanup, removed unecessary G_OBJECT() casts.

2003-01-06  Manish Singh  <yosh@gimp.org>

        * lots of files in plug-ins: cleanup, removed unecessary
        G_OBJECT() casts.
parent 2079245f
2003-01-06 Manish Singh <yosh@gimp.org>
* lots of files in plug-ins: cleanup, removed unecessary
G_OBJECT() casts.
2003-01-07 Sven Neumann <sven@gimp.org>
* common/hrz.c
......
......@@ -156,7 +156,7 @@ gimp_db_browser (GimpDBBrowserApplyCallback apply_callback)
NULL);
}
g_signal_connect (G_OBJECT (dbbrowser->dialog), "destroy",
g_signal_connect (dbbrowser->dialog, "destroy",
G_CALLBACK (dialog_close_callback), dbbrowser);
/* hpaned : left=list ; right=description */
......@@ -196,7 +196,7 @@ gimp_db_browser (GimpDBBrowserApplyCallback apply_callback)
gtk_widget_show (dbbrowser->tv);
dbbrowser->sel = gtk_tree_view_get_selection (GTK_TREE_VIEW (dbbrowser->tv));
g_signal_connect (G_OBJECT (dbbrowser->sel), "changed",
g_signal_connect (dbbrowser->sel, "changed",
G_CALLBACK (procedure_select_callback), dbbrowser);
/* search entry */
......@@ -642,7 +642,7 @@ dialog_search_callback (GtkWidget *widget,
dbbrowser->store = gtk_list_store_new (2, G_TYPE_STRING, G_TYPE_STRING);
gtk_tree_view_set_model (GTK_TREE_VIEW (dbbrowser->tv),
GTK_TREE_MODEL (dbbrowser->store));
g_object_unref (G_OBJECT (dbbrowser->store));
g_object_unref (dbbrowser->store);
}
for (i = 0; i < num_procs; i++)
......
......@@ -156,7 +156,7 @@ gimp_db_browser (GimpDBBrowserApplyCallback apply_callback)
NULL);
}
g_signal_connect (G_OBJECT (dbbrowser->dialog), "destroy",
g_signal_connect (dbbrowser->dialog, "destroy",
G_CALLBACK (dialog_close_callback), dbbrowser);
/* hpaned : left=list ; right=description */
......@@ -196,7 +196,7 @@ gimp_db_browser (GimpDBBrowserApplyCallback apply_callback)
gtk_widget_show (dbbrowser->tv);
dbbrowser->sel = gtk_tree_view_get_selection (GTK_TREE_VIEW (dbbrowser->tv));
g_signal_connect (G_OBJECT (dbbrowser->sel), "changed",
g_signal_connect (dbbrowser->sel, "changed",
G_CALLBACK (procedure_select_callback), dbbrowser);
/* search entry */
......@@ -642,7 +642,7 @@ dialog_search_callback (GtkWidget *widget,
dbbrowser->store = gtk_list_store_new (2, G_TYPE_STRING, G_TYPE_STRING);
gtk_tree_view_set_model (GTK_TREE_VIEW (dbbrowser->tv),
GTK_TREE_MODEL (dbbrowser->store));
g_object_unref (G_OBJECT (dbbrowser->store));
g_object_unref (dbbrowser->store);
}
for (i = 0; i < num_procs; i++)
......
......@@ -294,7 +294,7 @@ explorer_dialog (void)
NULL);
g_signal_connect (G_OBJECT (dialog), "destroy",
g_signal_connect (dialog, "destroy",
G_CALLBACK (gtk_main_quit),
NULL);
......@@ -334,19 +334,19 @@ explorer_dialog (void)
gtk_preview_size (GTK_PREVIEW (wint.preview), preview_width, preview_height);
gtk_container_add (GTK_CONTAINER (pframe), wint.preview);
g_signal_connect (G_OBJECT (wint.preview), "button_press_event",
g_signal_connect (wint.preview, "button_press_event",
G_CALLBACK (preview_button_press_event),
NULL);
g_signal_connect (G_OBJECT (wint.preview), "button_release_event",
g_signal_connect (wint.preview, "button_release_event",
G_CALLBACK (preview_button_release_event),
NULL);
g_signal_connect (G_OBJECT (wint.preview), "motion_notify_event",
NULL);
g_signal_connect (wint.preview, "motion_notify_event",
G_CALLBACK (preview_motion_notify_event),
NULL);
g_signal_connect (G_OBJECT (wint.preview), "leave_notify_event",
g_signal_connect (wint.preview, "leave_notify_event",
G_CALLBACK (preview_leave_notify_event),
NULL);
g_signal_connect (G_OBJECT (wint.preview), "enter_notify_event",
g_signal_connect (wint.preview, "enter_notify_event",
G_CALLBACK (preview_enter_notify_event),
NULL);
......@@ -359,7 +359,7 @@ explorer_dialog (void)
toggle = gtk_check_button_new_with_label (_("Realtime Preview"));
gtk_box_pack_start (GTK_BOX (vbox), toggle, FALSE, FALSE, 0);
g_signal_connect (G_OBJECT (toggle), "toggled",
g_signal_connect (toggle, "toggled",
G_CALLBACK (explorer_toggle_update),
&wvals.alwayspreview);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), wvals.alwayspreview);
......@@ -369,7 +369,7 @@ explorer_dialog (void)
button = gtk_button_new_with_label (_("Redraw"));
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
g_signal_connect (G_OBJECT (button), "clicked",
g_signal_connect (button, "clicked",
G_CALLBACK (dialog_redraw_callback),
dialog);
gtk_widget_show (button);
......@@ -392,7 +392,7 @@ explorer_dialog (void)
gimp_help_set_help_data (button, _("Undo last zoom"), NULL);
g_signal_connect (G_OBJECT (button), "clicked",
g_signal_connect (button, "clicked",
G_CALLBACK (dialog_undo_zoom_callback),
dialog);
......@@ -402,7 +402,7 @@ explorer_dialog (void)
gimp_help_set_help_data (button, _("Redo last zoom"), NULL);
g_signal_connect (G_OBJECT (button), "clicked",
g_signal_connect (button, "clicked",
G_CALLBACK (dialog_redo_zoom_callback),
dialog);
......@@ -410,7 +410,7 @@ explorer_dialog (void)
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
gtk_widget_show (button);
g_signal_connect (G_OBJECT (button), "clicked",
g_signal_connect (button, "clicked",
G_CALLBACK (dialog_step_in_callback),
dialog);
......@@ -418,7 +418,7 @@ explorer_dialog (void)
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
gtk_widget_show (button);
g_signal_connect (G_OBJECT (button), "clicked",
g_signal_connect (button, "clicked",
G_CALLBACK (dialog_step_out_callback),
dialog);
......@@ -454,7 +454,7 @@ explorer_dialog (void)
TRUE, 0, 0,
_("Change the first (minimal) x-coordinate "
"delimitation"), NULL);
g_signal_connect (G_OBJECT (elements->xmin), "value_changed",
g_signal_connect (elements->xmin, "value_changed",
G_CALLBACK (explorer_double_adjustment_update),
&wvals.xmin);
......@@ -465,7 +465,7 @@ explorer_dialog (void)
TRUE, 0, 0,
_("Change the second (maximal) x-coordinate "
"delimitation"), NULL);
g_signal_connect (G_OBJECT (elements->xmax), "value_changed",
g_signal_connect (elements->xmax, "value_changed",
G_CALLBACK (explorer_double_adjustment_update),
&wvals.xmax);
......@@ -476,7 +476,7 @@ explorer_dialog (void)
TRUE, 0, 0,
_("Change the first (minimal) y-coordinate "
"delimitation"), NULL);
g_signal_connect (G_OBJECT (elements->ymin), "value_changed",
g_signal_connect (elements->ymin, "value_changed",
G_CALLBACK (explorer_double_adjustment_update),
&wvals.ymin);
......@@ -487,7 +487,7 @@ explorer_dialog (void)
TRUE, 0, 0,
_("Change the second (maximal) y-coordinate "
"delimitation"), NULL);
g_signal_connect (G_OBJECT (elements->ymax), "value_changed",
g_signal_connect (elements->ymax, "value_changed",
G_CALLBACK (explorer_double_adjustment_update),
&wvals.ymax);
......@@ -499,7 +499,7 @@ explorer_dialog (void)
_("Change the iteration value. The higher it "
"is, the more details will be calculated, "
"which will take more time"), NULL);
g_signal_connect (G_OBJECT (elements->iter), "value_changed",
g_signal_connect (elements->iter, "value_changed",
G_CALLBACK (explorer_double_adjustment_update),
&wvals.iter);
......@@ -511,7 +511,7 @@ explorer_dialog (void)
_("Change the CX value (changes aspect of "
"fractal, active with every fractal but "
"Mandelbrot and Sierpinski)"), NULL);
g_signal_connect (G_OBJECT (elements->cx), "value_changed",
g_signal_connect (elements->cx, "value_changed",
G_CALLBACK (explorer_double_adjustment_update),
&wvals.cx);
......@@ -523,7 +523,7 @@ explorer_dialog (void)
_("Change the CY value (changes aspect of "
"fractal, active with every fractal but "
"Mandelbrot and Sierpinski)"), NULL);
g_signal_connect (G_OBJECT (elements->cy), "value_changed",
g_signal_connect (elements->cy, "value_changed",
G_CALLBACK (explorer_double_adjustment_update),
&wvals.cy);
......@@ -533,7 +533,7 @@ explorer_dialog (void)
button = gtk_button_new_from_stock (GTK_STOCK_OPEN);
gtk_box_pack_start (GTK_BOX (hbbox), button, TRUE, TRUE, 0);
g_signal_connect (G_OBJECT (button), "clicked",
g_signal_connect (button, "clicked",
G_CALLBACK (create_load_file_selection),
dialog);
gtk_widget_show (button);
......@@ -541,7 +541,7 @@ explorer_dialog (void)
button = gtk_button_new_from_stock (GIMP_STOCK_RESET);
gtk_box_pack_start (GTK_BOX (hbbox), button, TRUE, TRUE, 0);
g_signal_connect (G_OBJECT (button), "clicked",
g_signal_connect (button, "clicked",
G_CALLBACK (dialog_reset_callback),
dialog);
gtk_widget_show (button);
......@@ -550,7 +550,7 @@ explorer_dialog (void)
button = gtk_button_new_from_stock (GTK_STOCK_SAVE);
gtk_box_pack_start (GTK_BOX (hbbox), button, TRUE, TRUE, 0);
g_signal_connect (G_OBJECT (button), "clicked",
g_signal_connect (button, "clicked",
G_CALLBACK (create_file_selection),
dialog);
gtk_widget_show (button);
......@@ -594,7 +594,7 @@ explorer_dialog (void)
toggle_vbox2 = gtk_vbox_new (FALSE, 1);
for (i = TYPE_BARNSLEY_2; i <= TYPE_SPIDER; i++)
{
g_object_ref (G_OBJECT (elements->type[i]));
g_object_ref (elements->type[i]);
gtk_widget_hide (elements->type[i]);
gtk_container_remove (GTK_CONTAINER (toggle_vbox), elements->type[i]);
......@@ -602,13 +602,13 @@ explorer_dialog (void)
FALSE, FALSE, 0);
gtk_widget_show (elements->type[i]);
g_object_unref (G_OBJECT (elements->type[i]));
g_object_unref (elements->type[i]);
}
toggle_vbox3 = gtk_vbox_new (FALSE, 1);
for (i = TYPE_MAN_O_WAR; i <= TYPE_SIERPINSKI; i++)
{
g_object_ref (G_OBJECT (elements->type[i]));
g_object_ref (elements->type[i]);
gtk_widget_hide (elements->type[i]);
gtk_container_remove (GTK_CONTAINER (toggle_vbox), elements->type[i]);
......@@ -616,7 +616,7 @@ explorer_dialog (void)
FALSE, FALSE, 0);
gtk_widget_show (elements->type[i]);
g_object_unref (G_OBJECT (elements->type[i]));
g_object_unref (elements->type[i]);
}
gtk_container_set_border_width (GTK_CONTAINER (toggle_vbox), 0);
......@@ -658,14 +658,14 @@ explorer_dialog (void)
TRUE, 0, 0,
_("Change the number of colors in the mapping"),
NULL);
g_signal_connect (G_OBJECT (elements->ncol), "value_changed",
g_signal_connect (elements->ncol, "value_changed",
G_CALLBACK (explorer_number_of_colors_callback),
&wvals.ncolors);
elements->useloglog = toggle =
gtk_check_button_new_with_label (_("Use loglog Smoothing"));
gtk_table_attach_defaults (GTK_TABLE (table), toggle, 0, 3, 1, 2);
g_signal_connect (G_OBJECT (toggle), "toggled",
g_signal_connect (toggle, "toggled",
G_CALLBACK (explorer_toggle_update),
&wvals.useloglog);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), wvals.useloglog);
......@@ -692,7 +692,7 @@ explorer_dialog (void)
wvals.redstretch, 0, 1, 0.01, 0.1, 2,
TRUE, 0, 0,
_("Change the intensity of the red channel"), NULL);
g_signal_connect (G_OBJECT (elements->red), "value_changed",
g_signal_connect (elements->red, "value_changed",
G_CALLBACK (explorer_double_adjustment_update),
&wvals.redstretch);
......@@ -702,7 +702,7 @@ explorer_dialog (void)
wvals.greenstretch, 0, 1, 0.01, 0.1, 2,
TRUE, 0, 0,
_("Change the intensity of the green channel"), NULL);
g_signal_connect (G_OBJECT (elements->green), "value_changed",
g_signal_connect (elements->green, "value_changed",
G_CALLBACK (explorer_double_adjustment_update),
&wvals.greenstretch);
......@@ -712,7 +712,7 @@ explorer_dialog (void)
wvals.bluestretch, 0, 1, 0.01, 0.1, 2,
TRUE, 0, 0,
_("Change the intensity of the blue channel"), NULL);
g_signal_connect (G_OBJECT (elements->blue), "value_changed",
g_signal_connect (elements->blue, "value_changed",
G_CALLBACK (explorer_double_adjustment_update),
&wvals.bluestretch);
......@@ -759,7 +759,7 @@ explorer_dialog (void)
gtk_check_button_new_with_label (_("Inversion"));
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), wvals.redinvert);
gtk_box_pack_start (GTK_BOX (toggle_vbox), toggle, FALSE, FALSE, 0);
g_signal_connect (G_OBJECT (toggle), "toggled",
g_signal_connect (toggle, "toggled",
G_CALLBACK (explorer_toggle_update),
&wvals.redinvert);
gtk_widget_show (toggle);
......@@ -800,7 +800,7 @@ explorer_dialog (void)
gtk_check_button_new_with_label (_("Inversion"));
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), wvals.greeninvert);
gtk_box_pack_start (GTK_BOX (toggle_vbox), toggle, FALSE, FALSE, 0);
g_signal_connect (G_OBJECT (toggle), "toggled",
g_signal_connect (toggle, "toggled",
G_CALLBACK (explorer_toggle_update),
&wvals.greeninvert);
gtk_widget_show (toggle);
......@@ -841,7 +841,7 @@ explorer_dialog (void)
gtk_check_button_new_with_label (_("Inversion"));
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON( toggle), wvals.blueinvert);
gtk_box_pack_start (GTK_BOX (toggle_vbox), toggle, FALSE, FALSE, 0);
g_signal_connect (G_OBJECT (toggle), "toggled",
g_signal_connect (toggle, "toggled",
G_CALLBACK (explorer_toggle_update),
&wvals.blueinvert);
gtk_widget_show (toggle);
......@@ -867,7 +867,7 @@ explorer_dialog (void)
gtk_box_pack_start (GTK_BOX (toggle_vbox), toggle, FALSE, FALSE, 0);
g_object_set_data (G_OBJECT (toggle), "gimp-item-data",
GINT_TO_POINTER (0));
g_signal_connect (G_OBJECT (toggle), "toggled",
g_signal_connect (toggle, "toggled",
G_CALLBACK (explorer_radio_update),
&wvals.colormode);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle),
......@@ -889,7 +889,7 @@ explorer_dialog (void)
gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, TRUE, 0);
g_object_set_data (G_OBJECT (toggle), "gimp-item-data",
GINT_TO_POINTER (1));
g_signal_connect (G_OBJECT (toggle), "toggled",
g_signal_connect (toggle, "toggled",
G_CALLBACK (explorer_radio_update),
&wvals.colormode);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle),
......@@ -1399,7 +1399,7 @@ explorer_logo_dialog (void)
NULL);
g_signal_connect (G_OBJECT (xdlg), "destroy",
g_signal_connect (xdlg, "destroy",
G_CALLBACK (gtk_widget_destroyed),
&logodlg);
......@@ -1677,22 +1677,22 @@ create_load_file_selection (void)
window = gtk_file_selection_new (_("Load Fractal Parameters"));
gtk_window_set_position (GTK_WINDOW (window), GTK_WIN_POS_NONE);
g_signal_connect (G_OBJECT (window), "destroy",
g_signal_connect (window, "destroy",
G_CALLBACK (gtk_widget_destroyed),
&window);
g_signal_connect (G_OBJECT (GTK_FILE_SELECTION (window)->ok_button),
g_signal_connect (GTK_FILE_SELECTION (window)->ok_button,
"clicked",
G_CALLBACK (load_file_selection_ok),
window);
gimp_help_set_help_data (GTK_FILE_SELECTION(window)->ok_button,
gimp_help_set_help_data (GTK_FILE_SELECTION (window)->ok_button,
_("Click here to load your file"), NULL);
g_signal_connect_swapped (G_OBJECT (GTK_FILE_SELECTION (window)->cancel_button),
g_signal_connect_swapped (GTK_FILE_SELECTION (window)->cancel_button,
"clicked",
G_CALLBACK (gtk_widget_destroy),
window);
gimp_help_set_help_data (GTK_FILE_SELECTION(window)->cancel_button,
gimp_help_set_help_data (GTK_FILE_SELECTION (window)->cancel_button,
_("Click here to cancel load procedure"), NULL);
}
......@@ -1714,18 +1714,18 @@ create_file_selection (void)
window = gtk_file_selection_new (_("Save Fractal Parameters"));
gtk_window_set_position (GTK_WINDOW (window), GTK_WIN_POS_NONE);
g_signal_connect (G_OBJECT (window), "destroy",
g_signal_connect (window, "destroy",
G_CALLBACK (gtk_widget_destroyed),
&window);
g_signal_connect (G_OBJECT (GTK_FILE_SELECTION (window)->ok_button),
g_signal_connect (GTK_FILE_SELECTION (window)->ok_button,
"clicked",
G_CALLBACK (file_selection_ok),
window);
gimp_help_set_help_data (GTK_FILE_SELECTION(window)->ok_button,
gimp_help_set_help_data (GTK_FILE_SELECTION (window)->ok_button,
_("Click here to save your file"), NULL);
g_signal_connect_swapped (G_OBJECT (GTK_FILE_SELECTION(window)->cancel_button),
g_signal_connect_swapped (GTK_FILE_SELECTION(window)->cancel_button,
"clicked",
G_CALLBACK (gtk_widget_destroy),
window);
......
......@@ -848,7 +848,7 @@ fractalexplorer_dialog_edit_list (GtkWidget *lwidget,
gtk_widget_show (hbox);
button = gtk_button_new_from_stock (GTK_STOCK_OK);
g_signal_connect (G_OBJECT (button), "clicked",
g_signal_connect (button, "clicked",
G_CALLBACK (fractalexplorer_list_ok_callback),
options);
GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
......@@ -857,7 +857,7 @@ fractalexplorer_dialog_edit_list (GtkWidget *lwidget,
gtk_widget_show (button);
button = gtk_button_new_from_stock (GTK_STOCK_CANCEL);
g_signal_connect (G_OBJECT (button), "clicked",
g_signal_connect (button, "clicked",
G_CALLBACK (fractalexplorer_list_cancel_callback),
options);
GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
......@@ -1032,7 +1032,7 @@ fractalexplorer_list_add (fractalexplorerOBJ *obj)
gtk_widget_show (list_item);
gtk_list_select_item (GTK_LIST (fractalexplorer_gtk_list), pos);
g_signal_connect (G_OBJECT (list_item), "button_press_event",
g_signal_connect (list_item, "button_press_event",
G_CALLBACK (list_button_press),
obj);
......@@ -1080,7 +1080,7 @@ build_list_items (GtkWidget *list)
g);
gtk_list_append_items (GTK_LIST (list), g_list_append(NULL,list_item));
g_signal_connect (G_OBJECT (list_item), "button_press_event",
g_signal_connect (list_item, "button_press_event",
G_CALLBACK (list_button_press),
g);
gtk_widget_show (list_item);
......@@ -1392,7 +1392,7 @@ add_objects_list (void)
gimp_help_set_help_data (button,
_("Select folder and rescan collection"), NULL);
g_signal_connect (G_OBJECT (button), "clicked",
g_signal_connect (button, "clicked",
G_CALLBACK (fractalexplorer_rescan_list),
NULL);
......@@ -1404,7 +1404,7 @@ add_objects_list (void)
gimp_help_set_help_data (button,
_("Delete currently selected fractal"), NULL);
g_signal_connect (G_OBJECT (button), "clicked",
g_signal_connect (button, "clicked",
G_CALLBACK (delete_fractal_callback),
list);
......@@ -1471,7 +1471,7 @@ fractalexplorer_rescan_list (void)
NULL);
g_signal_connect (G_OBJECT (dlg), "destroy",
g_signal_connect (dlg, "destroy",
G_CALLBACK (gtk_widget_destroyed),
&dlg);
......
......@@ -358,7 +358,7 @@ create_options_page (void)
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle),
mapvals.bump_mapped);
gtk_box_pack_start (GTK_BOX (vbox), toggle, FALSE, FALSE, 0);
g_signal_connect (G_OBJECT (toggle), "toggled",
g_signal_connect (toggle, "toggled",
G_CALLBACK (togglebump_update),
&mapvals.bump_mapped);
gtk_widget_show (toggle);
......@@ -371,7 +371,7 @@ create_options_page (void)
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle),
mapvals.env_mapped);
gtk_box_pack_start (GTK_BOX (vbox), toggle, FALSE, FALSE, 0);
g_signal_connect (G_OBJECT (toggle), "toggled",
g_signal_connect (toggle, "toggled",
G_CALLBACK (toggleenvironment_update),
&mapvals.env_mapped);
gtk_widget_show (toggle);
......@@ -384,7 +384,7 @@ create_options_page (void)
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle),
mapvals.transparent_background);
gtk_box_pack_start (GTK_BOX (vbox), toggle, FALSE, FALSE, 0);
g_signal_connect (G_OBJECT (toggle), "toggled",
g_signal_connect (toggle, "toggled",
G_CALLBACK (toggle_update),
&mapvals.transparent_background);
gtk_widget_show (toggle);
......@@ -397,7 +397,7 @@ create_options_page (void)
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle),
mapvals.create_new_image);
gtk_box_pack_start (GTK_BOX (vbox), toggle, FALSE, FALSE, 0);
g_signal_connect (G_OBJECT (toggle), "toggled",
g_signal_connect (toggle, "toggled",
G_CALLBACK (gimp_toggle_button_update),
&mapvals.create_new_image);
gtk_widget_show (toggle);
......@@ -409,7 +409,7 @@ create_options_page (void)
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle),
mapvals.previewquality);
gtk_box_pack_start (GTK_BOX (vbox), toggle, FALSE, FALSE, 0);
g_signal_connect (G_OBJECT (toggle), "toggled",
g_signal_connect (toggle, "toggled",
G_CALLBACK (toggle_update),
&mapvals.previewquality);
gtk_widget_show (toggle);
......@@ -429,7 +429,7 @@ create_options_page (void)
gtk_frame_set_label_widget (GTK_FRAME (frame), toggle);
gtk_widget_show (toggle);
g_signal_connect (G_OBJECT (toggle), "toggled",
g_signal_connect (toggle, "toggled",
G_CALLBACK (gimp_toggle_button_update),
&mapvals.antialiasing);
......@@ -449,7 +449,7 @@ create_options_page (void)
1, TRUE, 0, 0,
_("Antialiasing quality. Higher is better, "
"but slower"), NULL);
g_signal_connect (G_OBJECT (adj), "value_changed",
g_signal_connect (adj, "value_changed",
G_CALLBACK (gimp_double_adjustment_update),
&mapvals.max_depth);
......@@ -459,14 +459,14 @@ create_options_page (void)
TRUE, 0, 0,
_("Stop when pixel differences are smaller than "
"this value"), NULL);
g_signal_connect (G_OBJECT (adj), "value_changed",
g_signal_connect (adj, "value_changed",
G_CALLBACK (gimp_double_adjustment_update),
&mapvals.pixel_treshold);
/*
spinbutton = gimp_spin_button_new (&adj, mapvals.pixel_treshold,
0.001, 1000, 0.1, 1, 1, 0, 3);
g_signal_connect (G_OBJECT (adj), "value_changed",
g_signal_connect (adj, "value_changed",
G_CALLBACK (gimp_double_adjustment_update),
&mapvals.pixel_treshold);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 1,
......@@ -535,12 +535,12 @@ create_light_page (void)
64, 16,
&mapvals.lightsource.color,
GIMP_COLOR_AREA_FLAT);
g_signal_connect (G_OBJECT (colorbutton), "color_changed",
g_signal_connect (colorbutton, "color_changed",
G_CALLBACK (gimp_color_button_get_color),
&mapvals.lightsource.color);
g_signal_connect(G_OBJECT(colorbutton), "color_changed",
G_CALLBACK (interactive_preview_callback),
NULL);
g_signal_connect (colorbutton, "color_changed",
G_CALLBACK (interactive_preview_callback),
NULL);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 1,
_("Lig_ht Color:"), 1.0, 0.5,
colorbutton, 1, TRUE);
......@@ -568,13 +568,13 @@ create_light_page (void)
gimp_table_attach_aligned (GTK_TABLE (table), 0, 0,
_("_X:"), 1.0, 0.5,
spin_pos_x, 1, TRUE);
g_signal_connect (G_OBJECT (adj), "value_changed",
g_signal_connect (adj, "value_changed",
G_CALLBACK (gimp_double_adjustment_update),
&mapvals.lightsource.position.x);
g_signal_connect(G_OBJECT(adj), "value_changed",
G_CALLBACK (interactive_preview_callback),
NULL);
g_signal_connect (adj, "value_changed",
G_CALLBACK (interactive_preview_callback),
NULL);
gimp_help_set_help_data ( spin_pos_x,
_("Light source X position in XYZ space"), NULL);
......@@ -585,12 +585,12 @@ create_light_page (void)
gimp_table_attach_aligned (GTK_TABLE (table), 0, 1,
_("_Y:"), 1.0, 0.5,
spin_pos_y, 1, TRUE);
g_signal_connect (G_OBJECT (adj), "value_changed",
g_signal_connect (adj, "value_changed",
G_CALLBACK (gimp_double_adjustment_update),
&mapvals.lightsource.position.y);
g_signal_connect(G_OBJECT(adj), "value_changed",
G_CALLBACK (interactive_preview_callback),
NULL);
g_signal_connect (adj, "value_changed",
G_CALLBACK (interactive_preview_callback),
NULL);
gimp_help_set_help_data ( spin_pos_y,
......@@ -602,12 +602,12 @@ create_light_page (void)
gimp_table_attach_aligned (GTK_TABLE (table), 0, 2,
_("_Z:"), 1.0, 0.5,
spin_pos_z, 1, TRUE);
g_signal_connect (G_OBJECT (adj), "value_changed",
g_signal_connect (adj, "value_changed",
G_CALLBACK (gimp_double_adjustment_update),
&mapvals.lightsource.position.z);
g_signal_connect(G_OBJECT(adj), "value_changed",
G_CALLBACK (interactive_preview_callback),
NULL);
g_signal_connect (adj, "value_changed",
G_CALLBACK (interactive_preview_callback),
NULL);
gimp_help_set_help_data ( spin_pos_z,
_("Light source Z position in XYZ space"), NULL);
......@@ -631,12 +631,12 @@ create_light_page (void)
gimp_table_attach_aligned (GTK_TABLE (table), 0, 0,
_("X:"), 1.0, 0.5,
spin_dir_x, 1, TRUE);
g_signal_connect (G_OBJECT (adj), "value_changed",
g_signal_connect (adj, "value_changed",
G_CALLBACK (gimp_double_adjustment_update),
&mapvals.lightsource.direction.x);
g_signal_connect(G_OBJECT(adj), "value_changed",
G_CALLBACK (interactive_preview_callback),
NULL);
g_signal_connect (adj, "value_changed",
G_CALLBACK (interactive_preview_callback),
NULL);
gimp_help_set_help_data (spin_dir_x,
......@@ -647,12 +647,12 @@ create_light_page (void)
gimp_table_attach_aligned (GTK_TABLE (table), 0, 1,
_("Y:"), 1.0, 0.5,
spin_dir_y, 1, TRUE);
g_signal_connect (G_OBJECT (adj), "value_changed",
g_signal_connect (adj, "value_changed",
G_CALLBACK (gimp_double_adjustment_update),
&mapvals.lightsource.direction.y);
g_signal_connect(G_OBJECT(adj), "value_changed",
G_CALLBACK (interactive_preview_callback),
NULL);
g_signal_connect (adj, "value_changed",