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

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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment