Commit 10bc5237 authored by Federico Mena Quintero's avatar Federico Mena Quintero Committed by Arturo Espinosa

Updated gtk_toggle_button_set_state() to gtk_toggle_button_set_active() in

1999-01-15  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* Updated gtk_toggle_button_set_state() to
	gtk_toggle_button_set_active() in all the files.
parent a1d5f3ab
1999-01-15 Federico Mena Quintero <federico@nuclecu.unam.mx>
* Updated gtk_toggle_button_set_state() to
gtk_toggle_button_set_active() in all the files.
Wed Jan 13 16:12:35 PST 1999 Manish Singh <yosh@gimp.org>
* app/colormaps.c
......
......@@ -532,7 +532,7 @@ color_balance_new_dialog ()
/* The preview toggle */
toggle = gtk_check_button_new_with_label (_("Preview"));
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), cbd->preview);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), cbd->preview);
gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
(GtkSignalFunc) color_balance_preview_update,
......@@ -541,7 +541,7 @@ color_balance_new_dialog ()
/* The preserve luminosity toggle */
toggle = gtk_check_button_new_with_label (_("Preserve Luminosity"));
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), cbd->preserve_luminosity);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), cbd->preserve_luminosity);
gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
(GtkSignalFunc) color_balance_preserve_update,
......
......@@ -557,7 +557,7 @@ curves_new_dialog ()
/* The preview toggle */
toggle = gtk_check_button_new_with_label (_("Preview"));
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), cd->preview);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), cd->preview);
gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
(GtkSignalFunc) curves_preview_update,
......
......@@ -637,7 +637,7 @@ hue_saturation_new_dialog ()
/* The preview toggle */
toggle = gtk_check_button_new_with_label (_("Preview"));
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), hsd->preview);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), hsd->preview);
gtk_box_pack_start (GTK_BOX (hbox), toggle, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
(GtkSignalFunc) hue_saturation_preview_update,
......
......@@ -457,7 +457,7 @@ threshold_new_dialog ()
/* The preview toggle */
toggle = gtk_check_button_new_with_label (_("Preview"));
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), td->preview);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), td->preview);
gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
(GtkSignalFunc) threshold_preview_update,
......
......@@ -481,7 +481,7 @@ create_blend_options ()
gtk_signal_connect(GTK_OBJECT(button), "toggled",
(GtkSignalFunc) supersample_toggle_update,
NULL);
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(button), FALSE);
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), FALSE);
gtk_widget_show(button);
/* frame for supersampling options */
......
......@@ -426,7 +426,7 @@ brightness_contrast_new_dialog ()
/* The preview toggle */
toggle = gtk_check_button_new_with_label (_("Preview"));
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), bcd->preview);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), bcd->preview);
gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
(GtkSignalFunc) brightness_contrast_preview_update,
......
......@@ -243,7 +243,7 @@ create_bucket_options (void)
gtk_signal_connect (GTK_OBJECT (sample_merged_toggle), "toggled",
(GtkSignalFunc) bucket_fill_toggle_update,
&options->sample_merged);
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (sample_merged_toggle), FALSE);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (sample_merged_toggle), FALSE);
gtk_box_pack_start (GTK_BOX (vbox), sample_merged_toggle, FALSE, FALSE, 0);
gtk_widget_show (sample_merged_toggle);
......
......@@ -176,7 +176,7 @@ channel_ops_offset (GimpImage* gimage)
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
(GtkSignalFunc) offset_toggle_update,
&off_d->background);
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), off_d->background);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), off_d->background);
gtk_widget_show (toggle);
if (drawable_has_alpha (drawable))
......@@ -187,7 +187,7 @@ channel_ops_offset (GimpImage* gimage)
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
(GtkSignalFunc) offset_toggle_update,
&off_d->transparent);
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), off_d->transparent);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), off_d->transparent);
gtk_widget_show (toggle);
}
......@@ -205,7 +205,7 @@ channel_ops_offset (GimpImage* gimage)
gtk_signal_connect (GTK_OBJECT (check), "toggled",
(GtkSignalFunc) offset_wraparound_update,
off_d);
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (check), off_d->wrap_around);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (check), off_d->wrap_around);
/* Hook up the by half */
gtk_signal_connect (GTK_OBJECT (push), "clicked",
......
......@@ -158,7 +158,7 @@ create_clone_options (void)
gtk_signal_connect (GTK_OBJECT (aligned_toggle), "toggled",
(GtkSignalFunc) clone_toggle_update,
&options->aligned);
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (aligned_toggle), options->aligned);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (aligned_toggle), options->aligned);
gtk_widget_show (aligned_toggle);
/* Register this selection options widget with the main tools options dialog */
......
......@@ -532,7 +532,7 @@ color_balance_new_dialog ()
/* The preview toggle */
toggle = gtk_check_button_new_with_label (_("Preview"));
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), cbd->preview);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), cbd->preview);
gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
(GtkSignalFunc) color_balance_preview_update,
......@@ -541,7 +541,7 @@ color_balance_new_dialog ()
/* The preserve luminosity toggle */
toggle = gtk_check_button_new_with_label (_("Preserve Luminosity"));
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), cbd->preserve_luminosity);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), cbd->preserve_luminosity);
gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
(GtkSignalFunc) color_balance_preserve_update,
......
......@@ -109,7 +109,7 @@ create_color_picker_options (void)
/* the sample merged toggle button */
sample_merged_toggle = gtk_check_button_new_with_label (_("Sample Merged"));
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (sample_merged_toggle), options->sample_merged);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (sample_merged_toggle), options->sample_merged);
gtk_box_pack_start (GTK_BOX (vbox), sample_merged_toggle, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (sample_merged_toggle), "toggled",
(GtkSignalFunc) color_picker_toggle_update,
......
......@@ -351,7 +351,7 @@ convert_to_indexed (GimpImage *gimage)
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
(GtkSignalFunc) indexed_radio_update,
&(dialog->makepal_flag));
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), dialog->makepal_flag);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), dialog->makepal_flag);
gtk_widget_show (toggle);
label = gtk_label_new (_("# of colors: "));
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
......@@ -412,8 +412,8 @@ convert_to_indexed (GimpImage *gimage)
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
(GtkSignalFunc) indexed_radio_update,
&(dialog->custompal_flag));
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle),
dialog->custompal_flag);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle),
dialog->custompal_flag);
gtk_widget_show (toggle);
palette_option_menu = gtk_option_menu_new();
......@@ -445,7 +445,7 @@ convert_to_indexed (GimpImage *gimage)
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
(GtkSignalFunc) indexed_radio_update,
&(dialog->webpal_flag));
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), dialog->webpal_flag);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), dialog->webpal_flag);
}
gtk_widget_show (toggle);
}
......@@ -462,7 +462,7 @@ convert_to_indexed (GimpImage *gimage)
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
(GtkSignalFunc) indexed_radio_update,
&(dialog->monopal_flag));
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), dialog->monopal_flag);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), dialog->monopal_flag);
gtk_widget_show (toggle);
gtk_widget_show (hbox);
......@@ -481,7 +481,7 @@ convert_to_indexed (GimpImage *gimage)
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
toggle = gtk_check_button_new_with_label (_("Enable Floyd-Steinberg dithering"));
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), dialog->dither);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), dialog->dither);
gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
(GtkSignalFunc) indexed_dither_update,
......
......@@ -481,7 +481,7 @@ create_blend_options ()
gtk_signal_connect(GTK_OBJECT(button), "toggled",
(GtkSignalFunc) supersample_toggle_update,
NULL);
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(button), FALSE);
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), FALSE);
gtk_widget_show(button);
/* frame for supersampling options */
......
......@@ -176,7 +176,7 @@ channel_ops_offset (GimpImage* gimage)
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
(GtkSignalFunc) offset_toggle_update,
&off_d->background);
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), off_d->background);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), off_d->background);
gtk_widget_show (toggle);
if (drawable_has_alpha (drawable))
......@@ -187,7 +187,7 @@ channel_ops_offset (GimpImage* gimage)
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
(GtkSignalFunc) offset_toggle_update,
&off_d->transparent);
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), off_d->transparent);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), off_d->transparent);
gtk_widget_show (toggle);
}
......@@ -205,7 +205,7 @@ channel_ops_offset (GimpImage* gimage)
gtk_signal_connect (GTK_OBJECT (check), "toggled",
(GtkSignalFunc) offset_wraparound_update,
off_d);
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (check), off_d->wrap_around);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (check), off_d->wrap_around);
/* Hook up the by half */
gtk_signal_connect (GTK_OBJECT (push), "clicked",
......
......@@ -351,7 +351,7 @@ convert_to_indexed (GimpImage *gimage)
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
(GtkSignalFunc) indexed_radio_update,
&(dialog->makepal_flag));
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), dialog->makepal_flag);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), dialog->makepal_flag);
gtk_widget_show (toggle);
label = gtk_label_new (_("# of colors: "));
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
......@@ -412,8 +412,8 @@ convert_to_indexed (GimpImage *gimage)
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
(GtkSignalFunc) indexed_radio_update,
&(dialog->custompal_flag));
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle),
dialog->custompal_flag);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle),
dialog->custompal_flag);
gtk_widget_show (toggle);
palette_option_menu = gtk_option_menu_new();
......@@ -445,7 +445,7 @@ convert_to_indexed (GimpImage *gimage)
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
(GtkSignalFunc) indexed_radio_update,
&(dialog->webpal_flag));
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), dialog->webpal_flag);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), dialog->webpal_flag);
}
gtk_widget_show (toggle);
}
......@@ -462,7 +462,7 @@ convert_to_indexed (GimpImage *gimage)
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
(GtkSignalFunc) indexed_radio_update,
&(dialog->monopal_flag));
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), dialog->monopal_flag);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), dialog->monopal_flag);
gtk_widget_show (toggle);
gtk_widget_show (hbox);
......@@ -481,7 +481,7 @@ convert_to_indexed (GimpImage *gimage)
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
toggle = gtk_check_button_new_with_label (_("Enable Floyd-Steinberg dithering"));
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), dialog->dither);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), dialog->dither);
gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
(GtkSignalFunc) indexed_dither_update,
......
......@@ -176,7 +176,7 @@ channel_ops_offset (GimpImage* gimage)
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
(GtkSignalFunc) offset_toggle_update,
&off_d->background);
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), off_d->background);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), off_d->background);
gtk_widget_show (toggle);
if (drawable_has_alpha (drawable))
......@@ -187,7 +187,7 @@ channel_ops_offset (GimpImage* gimage)
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
(GtkSignalFunc) offset_toggle_update,
&off_d->transparent);
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), off_d->transparent);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), off_d->transparent);
gtk_widget_show (toggle);
}
......@@ -205,7 +205,7 @@ channel_ops_offset (GimpImage* gimage)
gtk_signal_connect (GTK_OBJECT (check), "toggled",
(GtkSignalFunc) offset_wraparound_update,
off_d);
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (check), off_d->wrap_around);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (check), off_d->wrap_around);
/* Hook up the by half */
gtk_signal_connect (GTK_OBJECT (push), "clicked",
......
......@@ -139,8 +139,8 @@ init_crop_options()
gtk_signal_connect(GTK_OBJECT(checkbutton), "toggled",
(GtkSignalFunc) crop_checkbutton_update,
&options.layer_only);
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(checkbutton),
options.layer_only);
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(checkbutton),
options.layer_only);
gtk_widget_show(checkbutton);
/* Register this selection options widget with the main tools
......
......@@ -557,7 +557,7 @@ curves_new_dialog ()
/* The preview toggle */
toggle = gtk_check_button_new_with_label (_("Preview"));
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), cd->preview);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), cd->preview);
gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
(GtkSignalFunc) curves_preview_update,
......
......@@ -703,7 +703,7 @@ file_new_cmd_callback (GtkWidget *widget,
(GtkSignalFunc) file_new_toggle_callback,
&vals->type);
if (vals->type == RGB)
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), TRUE);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), TRUE);
gtk_widget_show (button);
button = gtk_radio_button_new_with_label (group, _("Grayscale"));
......@@ -714,7 +714,7 @@ file_new_cmd_callback (GtkWidget *widget,
(GtkSignalFunc) file_new_toggle_callback,
&vals->type);
if (vals->type == GRAY)
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), TRUE);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), TRUE);
gtk_widget_show (button);
......@@ -736,7 +736,7 @@ file_new_cmd_callback (GtkWidget *widget,
(GtkSignalFunc) file_new_toggle_callback,
&vals->fill_type);
if (vals->fill_type == FOREGROUND_FILL)
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), TRUE);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), TRUE);
gtk_widget_show (button);
button = gtk_radio_button_new_with_label (group, _("Background"));
......@@ -747,7 +747,7 @@ file_new_cmd_callback (GtkWidget *widget,
(GtkSignalFunc) file_new_toggle_callback,
&vals->fill_type);
if (vals->fill_type == BACKGROUND_FILL)
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), TRUE);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), TRUE);
gtk_widget_show (button);
button = gtk_radio_button_new_with_label (group, _("White"));
......@@ -758,7 +758,7 @@ file_new_cmd_callback (GtkWidget *widget,
(GtkSignalFunc) file_new_toggle_callback,
&vals->fill_type);
if (vals->fill_type == WHITE_FILL)
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), TRUE);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), TRUE);
gtk_widget_show (button);
button = gtk_radio_button_new_with_label (group, _("Transparent"));
......@@ -769,7 +769,7 @@ file_new_cmd_callback (GtkWidget *widget,
(GtkSignalFunc) file_new_toggle_callback,
&vals->fill_type);
if (vals->fill_type == TRANSPARENT_FILL)
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), TRUE);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), TRUE);
gtk_widget_show (button);
gtk_widget_show (vals->dlg);
......
......@@ -977,7 +977,7 @@ file_pref_cmd_callback (GtkWidget *widget,
gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0);
gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) RGB);
if (default_type == RGB)
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), TRUE);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), TRUE);
gtk_signal_connect (GTK_OBJECT (button), "toggled",
(GtkSignalFunc) file_prefs_toggle_callback,
&default_type);
......@@ -987,7 +987,7 @@ file_pref_cmd_callback (GtkWidget *widget,
gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0);
gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) GRAY);
if (last_type == GRAY)
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), TRUE);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), TRUE);
gtk_signal_connect (GTK_OBJECT (button), "toggled",
(GtkSignalFunc) file_prefs_toggle_callback,
&default_type);
......@@ -1019,8 +1019,8 @@ file_pref_cmd_callback (GtkWidget *widget,
gtk_option_menu_set_history(GTK_OPTION_MENU (optionmenu),i);
button = gtk_check_button_new_with_label(_("Cubic interpolation"));
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button),
cubic_interpolation);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button),
cubic_interpolation);
gtk_box_pack_start (GTK_BOX (vbox), button, TRUE, TRUE, 0);
gtk_signal_connect (GTK_OBJECT (button), "toggled",
(GtkSignalFunc) file_prefs_toggle_callback,
......@@ -1049,7 +1049,7 @@ file_pref_cmd_callback (GtkWidget *widget,
gtk_object_set_user_data (GTK_OBJECT (button),
(gpointer) ((long) transparency_vals[i]));
if (transparency_vals[i] == transparency_type)
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), TRUE);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), TRUE);
gtk_signal_connect (GTK_OBJECT (button), "toggled",
(GtkSignalFunc) file_prefs_toggle_callback,
&transparency_type);
......@@ -1073,7 +1073,7 @@ file_pref_cmd_callback (GtkWidget *widget,
gtk_object_set_user_data (GTK_OBJECT (button),
(gpointer) ((long) check_vals[i]));
if (check_vals[i] == transparency_size)
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), TRUE);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), TRUE);
gtk_signal_connect (GTK_OBJECT (button), "toggled",
(GtkSignalFunc) file_prefs_toggle_callback,
&transparency_size);
......@@ -1094,8 +1094,8 @@ file_pref_cmd_callback (GtkWidget *widget,
gtk_widget_show (vbox);
button = gtk_check_button_new_with_label(_("Resize window on zoom"));
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button),
allow_resize_windows);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button),
allow_resize_windows);
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (button), "toggled",
(GtkSignalFunc) file_prefs_toggle_callback,
......@@ -1103,8 +1103,8 @@ file_pref_cmd_callback (GtkWidget *widget,
gtk_widget_show (button);
button = gtk_check_button_new_with_label(_("Perfect-but-slow pointer tracking"));
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button),
perfectmouse);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button),
perfectmouse);
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (button), "toggled",
(GtkSignalFunc) file_prefs_toggle_callback,
......@@ -1115,8 +1115,8 @@ file_pref_cmd_callback (GtkWidget *widget,
have auto-saving in the gimp.
button = gtk_check_button_new_with_label(_("Auto save"));
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button),
auto_save);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button),
auto_save);
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (button), "toggled",
(GtkSignalFunc) file_prefs_toggle_callback,
......@@ -1125,7 +1125,7 @@ file_pref_cmd_callback (GtkWidget *widget,
*/
button = gtk_check_button_new_with_label(_("Disable cursor updating"));
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button),
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button),
no_cursor_updating);
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (button), "toggled",
......@@ -1134,8 +1134,8 @@ file_pref_cmd_callback (GtkWidget *widget,
gtk_widget_show (button);
button = gtk_check_button_new_with_label(_("Show tool tips"));
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button),
show_tool_tips);
gtk_toggle_button_set_activd (GTK_TOGGLE_BUTTON (button),
show_tool_tips);
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (button), "toggled",
(GtkSignalFunc) file_prefs_toggle_callback,
......@@ -1143,8 +1143,8 @@ file_pref_cmd_callback (GtkWidget *widget,
gtk_widget_show (button);
button = gtk_check_button_new_with_label(_("Show rulers"));
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button),
show_rulers);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button),
show_rulers);
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (button), "toggled",
(GtkSignalFunc) file_prefs_toggle_callback,
......@@ -1152,8 +1152,8 @@ file_pref_cmd_callback (GtkWidget *widget,
gtk_widget_show (button);
button = gtk_check_button_new_with_label(_("Show statusbar"));
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button),
show_statusbar);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button),
show_statusbar);
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (button), "toggled",
(GtkSignalFunc) file_prefs_toggle_callback,
......@@ -1235,8 +1235,8 @@ file_pref_cmd_callback (GtkWidget *widget,
gtk_widget_show (vbox);
button = gtk_check_button_new_with_label(_("Conservative memory usage"));
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button),
stingy_memory_use);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button),
stingy_memory_use);
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (button), "toggled",
(GtkSignalFunc) file_prefs_toggle_callback,
......@@ -1284,8 +1284,8 @@ file_pref_cmd_callback (GtkWidget *widget,
gtk_option_menu_set_history(GTK_OPTION_MENU (optionmenu),i);
button = gtk_check_button_new_with_label(_("Install colormap (8-bit only)"));
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button),
install_cmap);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button),
install_cmap);
gtk_signal_connect (GTK_OBJECT (button), "toggled",
(GtkSignalFunc) file_prefs_toggle_callback,
&edit_install_cmap);
......@@ -1295,8 +1295,8 @@ file_pref_cmd_callback (GtkWidget *widget,
gtk_widget_show (button);
button = gtk_check_button_new_with_label(_("Colormap cycling (8-bit only)"));
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button),
cycled_marching_ants);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button),
cycled_marching_ants);
gtk_signal_connect (GTK_OBJECT (button), "toggled",
(GtkSignalFunc) file_prefs_toggle_callback,
&edit_cycled_marching_ants);
......@@ -1320,8 +1320,8 @@ file_pref_cmd_callback (GtkWidget *widget,
gtk_widget_show (vbox);
button = gtk_check_button_new_with_label (_("Save window positions on exit"));
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button),
save_session_info);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button),
save_session_info);
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (button), "toggled",
(GtkSignalFunc) file_prefs_toggle_callback,
......@@ -1341,8 +1341,8 @@ file_pref_cmd_callback (GtkWidget *widget,
gtk_widget_show (button);
button = gtk_check_button_new_with_label (_("Always try to restore session"));
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button),
always_restore_session);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button),
always_restore_session);
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (button), "toggled",
(GtkSignalFunc) file_prefs_toggle_callback,
......@@ -1350,8 +1350,8 @@ file_pref_cmd_callback (GtkWidget *widget,
gtk_widget_show (button);
button = gtk_check_button_new_with_label (_("Save device status on exit"));
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button),
save_device_status);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button),
save_device_status);
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (button), "toggled",
(GtkSignalFunc) file_prefs_toggle_callback,
......@@ -1445,7 +1445,7 @@ file_pref_cmd_callback (GtkWidget *widget,
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
gtk_widget_show (button);
if (!using_xserver_resolution)
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), TRUE);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), TRUE);
abox = gtk_alignment_new (0.5, 0.5, 0.0, 1.0);
gtk_box_pack_start (GTK_BOX (vbox), abox, FALSE, FALSE, 0);
......
......@@ -228,7 +228,7 @@ resize_widget_new (ResizeType type,
/* the constrain toggle button */
constrain = gtk_check_button_new_with_label (_("Constrain Ratio"));
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (constrain), private->constrain);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (constrain), private->constrain);
gtk_box_pack_start (GTK_BOX (vbox), constrain, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (constrain), "toggled",
(GtkSignalFunc) constrain_update,
......
......@@ -124,8 +124,8 @@ tips_dialog_create ()
gtk_widget_show (button_prev);
button_check = gtk_check_button_new_with_label (_("Show tip next time"));
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button_check),
show_tips);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button_check),
show_tips);
gtk_signal_connect (GTK_OBJECT (button_check), "toggled",
GTK_SIGNAL_FUNC (tips_toggle_update),
(gpointer) &show_tips);
......
......@@ -88,7 +88,7 @@ create_eraser_options (void)
gtk_signal_connect (GTK_OBJECT (hard_toggle), "toggled",
(GtkSignalFunc) eraser_toggle_update,
&options->hard);
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (hard_toggle), options->hard);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (hard_toggle), options->hard);
gtk_widget_show (hard_toggle);
/* the incremental toggle */
......@@ -97,7 +97,7 @@ create_eraser_options (void)
gtk_signal_connect (GTK_OBJECT (incremental_toggle), "toggled",
(GtkSignalFunc) eraser_toggle_update,
&options->incremental);
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (incremental_toggle), options->incremental);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (incremental_toggle), options->incremental);
gtk_widget_show (incremental_toggle);
/* Register this eraser options widget with the main tools options dialog */
......
......@@ -703,7 +703,7 @@ file_new_cmd_callback (GtkWidget *widget,