mirror of https://github.com/GNOME/gimp.git
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.
This commit is contained in:
parent
a1d5f3abba
commit
10bc5237a7
|
@ -1,3 +1,8 @@
|
|||
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,
|
|||
(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);
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -799,7 +799,7 @@ grad_create_gradient_editor_init(gint need_show)
|
|||
gtk_signal_connect(GTK_OBJECT(button), "toggled",
|
||||
(GtkSignalFunc) ed_instant_update_update,
|
||||
g_editor);
|
||||
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(button), TRUE);
|
||||
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), TRUE);
|
||||
gtk_widget_show(button);
|
||||
|
||||
/* hbox for that holds the frame for gradient preview and gradient control;
|
||||
|
|
|
@ -799,7 +799,7 @@ grad_create_gradient_editor_init(gint need_show)
|
|||
gtk_signal_connect(GTK_OBJECT(button), "toggled",
|
||||
(GtkSignalFunc) ed_instant_update_update,
|
||||
g_editor);
|
||||
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(button), TRUE);
|
||||
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), TRUE);
|
||||
gtk_widget_show(button);
|
||||
|
||||
/* hbox for that holds the frame for gradient preview and gradient control;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -799,7 +799,7 @@ grad_create_gradient_editor_init(gint need_show)
|
|||
gtk_signal_connect(GTK_OBJECT(button), "toggled",
|
||||
(GtkSignalFunc) ed_instant_update_update,
|
||||
g_editor);
|
||||
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(button), TRUE);
|
||||
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), TRUE);
|
||||
gtk_widget_show(button);
|
||||
|
||||
/* hbox for that holds the frame for gradient preview and gradient control;
|
||||
|
|
|
@ -2933,9 +2933,9 @@ layer_widget_layer_flush (GtkWidget *widget,
|
|||
gtk_signal_emit_by_name (GTK_OBJECT (layersD->opacity_data), "value_changed");
|
||||
gtk_option_menu_set_history (GTK_OPTION_MENU (layersD->mode_option_menu),
|
||||
paint_mode_menu_get_position (layer_widget->layer->mode));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (layersD->preserve_trans),
|
||||
(layer_widget->layer->preserve_trans) ?
|
||||
GTK_STATE_ACTIVE : GTK_STATE_NORMAL);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (layersD->preserve_trans),
|
||||
(layer_widget->layer->preserve_trans) ?
|
||||
GTK_STATE_ACTIVE : GTK_STATE_NORMAL);
|
||||
}
|
||||
|
||||
if (layer_is_floating_sel (layer_widget->layer))
|
||||
|
@ -3247,7 +3247,7 @@ layers_dialog_new_layer_query (GimpImage* gimage)
|
|||
|
||||
/* set the correct radio button */
|
||||
if (i == options->fill_type)
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (radio_button), TRUE);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (radio_button), TRUE);
|
||||
|
||||
gtk_widget_show (radio_button);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -324,8 +324,8 @@ iscissors_selection_options (void)
|
|||
|
||||
/* the antialias toggle button */
|
||||
antialias_toggle = gtk_check_button_new_with_label (_("Antialiasing"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON(antialias_toggle),
|
||||
options->antialias);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(antialias_toggle),
|
||||
options->antialias);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), antialias_toggle, FALSE, FALSE, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (antialias_toggle), "toggled",
|
||||
(GtkSignalFunc) selection_toggle_update,
|
||||
|
@ -334,8 +334,8 @@ iscissors_selection_options (void)
|
|||
|
||||
/* the feather toggle button */
|
||||
feather_toggle = gtk_check_button_new_with_label (_("Feather"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON(feather_toggle),
|
||||
options->feather);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(feather_toggle),
|
||||
options->feather);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), feather_toggle, FALSE, FALSE, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (feather_toggle), "toggled",
|
||||
(GtkSignalFunc) selection_toggle_update,
|
||||
|
|
|
@ -2933,9 +2933,9 @@ layer_widget_layer_flush (GtkWidget *widget,
|
|||
gtk_signal_emit_by_name (GTK_OBJECT (layersD->opacity_data), "value_changed");
|
||||
gtk_option_menu_set_history (GTK_OPTION_MENU (layersD->mode_option_menu),
|
||||
paint_mode_menu_get_position (layer_widget->layer->mode));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (layersD->preserve_trans),
|
||||
(layer_widget->layer->preserve_trans) ?
|
||||
GTK_STATE_ACTIVE : GTK_STATE_NORMAL);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (layersD->preserve_trans),
|
||||
(layer_widget->layer->preserve_trans) ?
|
||||
GTK_STATE_ACTIVE : GTK_STATE_NORMAL);
|
||||
}
|
||||
|
||||
if (layer_is_floating_sel (layer_widget->layer))
|
||||
|
@ -3247,7 +3247,7 @@ layers_dialog_new_layer_query (GimpImage* gimage)
|
|||
|
||||
/* set the correct radio button */
|
||||
if (i == options->fill_type)
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (radio_button), TRUE);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (radio_button), TRUE);
|
||||
|
||||
gtk_widget_show (radio_button);
|
||||
}
|
||||
|
|
|
@ -704,7 +704,7 @@ levels_new_dialog ()
|
|||
|
||||
/* The preview toggle */
|
||||
toggle = gtk_check_button_new_with_label (_("Preview"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), ld->preview);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), ld->preview);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
(GtkSignalFunc) levels_preview_update,
|
||||
|
|
|
@ -146,7 +146,7 @@ create_magnify_options (void)
|
|||
(GtkSignalFunc) magnify_toggle_update,
|
||||
&allow_resize_windows);
|
||||
gtk_widget_show (allow_resize_toggle);
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (allow_resize_toggle), allow_resize_windows);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (allow_resize_toggle), allow_resize_windows);
|
||||
|
||||
/* Register this selection options widget with the main tools options dialog */
|
||||
tools_register_options (MAGNIFY, vbox);
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -125,7 +125,7 @@ create_paint_options (void)
|
|||
gtk_signal_connect (GTK_OBJECT (incremental_toggle), "toggled",
|
||||
(GtkSignalFunc) paintbrush_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 selection options widget with the main tools options dialog */
|
||||
|
|
|
@ -329,7 +329,7 @@ posterize_new_dialog ()
|
|||
|
||||
/* The preview toggle */
|
||||
toggle = gtk_check_button_new_with_label (_("Preview"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), pd->preview);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), pd->preview);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
(GtkSignalFunc) posterize_preview_update,
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -154,7 +154,7 @@ create_selection_options (ToolType tool_type)
|
|||
gtk_signal_connect (GTK_OBJECT (sample_merged_toggle), "toggled",
|
||||
(GtkSignalFunc) selection_toggle_update,
|
||||
&options->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_widget_show (sample_merged_toggle);
|
||||
break;
|
||||
default:
|
||||
|
@ -168,7 +168,7 @@ create_selection_options (ToolType tool_type)
|
|||
gtk_signal_connect (GTK_OBJECT (bezier_toggle), "toggled",
|
||||
(GtkSignalFunc) selection_toggle_update,
|
||||
&options->extend);
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (bezier_toggle), options->extend);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (bezier_toggle), options->extend);
|
||||
gtk_widget_show (bezier_toggle);
|
||||
|
||||
}
|
||||
|
@ -181,7 +181,7 @@ create_selection_options (ToolType tool_type)
|
|||
gtk_signal_connect (GTK_OBJECT (antialias_toggle), "toggled",
|
||||
(GtkSignalFunc) selection_toggle_update,
|
||||
&options->antialias);
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (antialias_toggle), options->antialias);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (antialias_toggle), options->antialias);
|
||||
gtk_widget_show (antialias_toggle);
|
||||
}
|
||||
|
||||
|
@ -193,8 +193,8 @@ create_selection_options (ToolType tool_type)
|
|||
gtk_signal_connect (GTK_OBJECT(fixed_size_toggle), "toggled",
|
||||
(GtkSignalFunc)selection_toggle_update,
|
||||
&options->fixed_size);
|
||||
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(fixed_size_toggle),
|
||||
options->fixed_size);
|
||||
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(fixed_size_toggle),
|
||||
options->fixed_size);
|
||||
gtk_widget_show(fixed_size_toggle);
|
||||
|
||||
hbox = gtk_hbox_new (TRUE, 5);
|
||||
|
@ -240,7 +240,7 @@ create_selection_options (ToolType tool_type)
|
|||
gtk_signal_connect (GTK_OBJECT (feather_toggle), "toggled",
|
||||
(GtkSignalFunc) selection_toggle_update,
|
||||
&options->feather);
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (feather_toggle), options->feather);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (feather_toggle), options->feather);
|
||||
gtk_widget_show (feather_toggle);
|
||||
|
||||
/* the feather radius scale */
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -175,8 +175,8 @@ init_text_options(TextToolOptions *options)
|
|||
gtk_signal_connect(GTK_OBJECT(antialias_toggle), "toggled",
|
||||
(GtkSignalFunc) text_antialias_update,
|
||||
&options->antialias);
|
||||
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(antialias_toggle),
|
||||
options->antialias);
|
||||
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(antialias_toggle),
|
||||
options->antialias);
|
||||
gtk_widget_show(antialias_toggle);
|
||||
|
||||
/* Create the border hbox, border spinner, and label */
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -324,8 +324,8 @@ iscissors_selection_options (void)
|
|||
|
||||
/* the antialias toggle button */
|
||||
antialias_toggle = gtk_check_button_new_with_label (_("Antialiasing"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON(antialias_toggle),
|
||||
options->antialias);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(antialias_toggle),
|
||||
options->antialias);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), antialias_toggle, FALSE, FALSE, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (antialias_toggle), "toggled",
|
||||
(GtkSignalFunc) selection_toggle_update,
|
||||
|
@ -334,8 +334,8 @@ iscissors_selection_options (void)
|
|||
|
||||
/* the feather toggle button */
|
||||
feather_toggle = gtk_check_button_new_with_label (_("Feather"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON(feather_toggle),
|
||||
options->feather);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(feather_toggle),
|
||||
options->feather);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), feather_toggle, FALSE, FALSE, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (feather_toggle), "toggled",
|
||||
(GtkSignalFunc) selection_toggle_update,
|
||||
|
|
|
@ -704,7 +704,7 @@ levels_new_dialog ()
|
|||
|
||||
/* The preview toggle */
|
||||
toggle = gtk_check_button_new_with_label (_("Preview"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), ld->preview);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), ld->preview);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
(GtkSignalFunc) levels_preview_update,
|
||||
|
|
|
@ -146,7 +146,7 @@ create_magnify_options (void)
|
|||
(GtkSignalFunc) magnify_toggle_update,
|
||||
&allow_resize_windows);
|
||||
gtk_widget_show (allow_resize_toggle);
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (allow_resize_toggle), allow_resize_windows);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (allow_resize_toggle), allow_resize_windows);
|
||||
|
||||
/* Register this selection options widget with the main tools options dialog */
|
||||
tools_register_options (MAGNIFY, vbox);
|
||||
|
|
|
@ -329,7 +329,7 @@ posterize_new_dialog ()
|
|||
|
||||
/* The preview toggle */
|
||||
toggle = gtk_check_button_new_with_label (_("Preview"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), pd->preview);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), pd->preview);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
(GtkSignalFunc) posterize_preview_update,
|
||||
|
|
|
@ -154,7 +154,7 @@ create_selection_options (ToolType tool_type)
|
|||
gtk_signal_connect (GTK_OBJECT (sample_merged_toggle), "toggled",
|
||||
(GtkSignalFunc) selection_toggle_update,
|
||||
&options->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_widget_show (sample_merged_toggle);
|
||||
break;
|
||||
default:
|
||||
|
@ -168,7 +168,7 @@ create_selection_options (ToolType tool_type)
|
|||
gtk_signal_connect (GTK_OBJECT (bezier_toggle), "toggled",
|
||||
(GtkSignalFunc) selection_toggle_update,
|
||||
&options->extend);
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (bezier_toggle), options->extend);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (bezier_toggle), options->extend);
|
||||
gtk_widget_show (bezier_toggle);
|
||||
|
||||
}
|
||||
|
@ -181,7 +181,7 @@ create_selection_options (ToolType tool_type)
|
|||
gtk_signal_connect (GTK_OBJECT (antialias_toggle), "toggled",
|
||||
(GtkSignalFunc) selection_toggle_update,
|
||||
&options->antialias);
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (antialias_toggle), options->antialias);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (antialias_toggle), options->antialias);
|
||||
gtk_widget_show (antialias_toggle);
|
||||
}
|
||||
|
||||
|
@ -193,8 +193,8 @@ create_selection_options (ToolType tool_type)
|
|||
gtk_signal_connect (GTK_OBJECT(fixed_size_toggle), "toggled",
|
||||
(GtkSignalFunc)selection_toggle_update,
|
||||
&options->fixed_size);
|
||||
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(fixed_size_toggle),
|
||||
options->fixed_size);
|
||||
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(fixed_size_toggle),
|
||||
options->fixed_size);
|
||||
gtk_widget_show(fixed_size_toggle);
|
||||
|
||||
hbox = gtk_hbox_new (TRUE, 5);
|
||||
|
@ -240,7 +240,7 @@ create_selection_options (ToolType tool_type)
|
|||
gtk_signal_connect (GTK_OBJECT (feather_toggle), "toggled",
|
||||
(GtkSignalFunc) selection_toggle_update,
|
||||
&options->feather);
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (feather_toggle), options->feather);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (feather_toggle), options->feather);
|
||||
gtk_widget_show (feather_toggle);
|
||||
|
||||
/* the feather radius scale */
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -175,8 +175,8 @@ init_text_options(TextToolOptions *options)
|
|||
gtk_signal_connect(GTK_OBJECT(antialias_toggle), "toggled",
|
||||
(GtkSignalFunc) text_antialias_update,
|
||||
&options->antialias);
|
||||
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(antialias_toggle),
|
||||
options->antialias);
|
||||
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(antialias_toggle),
|
||||
options->antialias);
|
||||
gtk_widget_show(antialias_toggle);
|
||||
|
||||
/* Create the border hbox, border spinner, and label */
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -324,8 +324,8 @@ iscissors_selection_options (void)
|
|||
|
||||
/* the antialias toggle button */
|
||||
antialias_toggle = gtk_check_button_new_with_label (_("Antialiasing"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON(antialias_toggle),
|
||||
options->antialias);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(antialias_toggle),
|
||||
options->antialias);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), antialias_toggle, FALSE, FALSE, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (antialias_toggle), "toggled",
|
||||
(GtkSignalFunc) selection_toggle_update,
|
||||
|
@ -334,8 +334,8 @@ iscissors_selection_options (void)
|
|||
|
||||
/* the feather toggle button */
|
||||
feather_toggle = gtk_check_button_new_with_label (_("Feather"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON(feather_toggle),
|
||||
options->feather);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(feather_toggle),
|
||||
options->feather);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), feather_toggle, FALSE, FALSE, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (feather_toggle), "toggled",
|
||||
(GtkSignalFunc) selection_toggle_update,
|
||||
|
|
|
@ -704,7 +704,7 @@ levels_new_dialog ()
|
|||
|
||||
/* The preview toggle */
|
||||
toggle = gtk_check_button_new_with_label (_("Preview"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), ld->preview);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), ld->preview);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
(GtkSignalFunc) levels_preview_update,
|
||||
|
|
|
@ -146,7 +146,7 @@ create_magnify_options (void)
|
|||
(GtkSignalFunc) magnify_toggle_update,
|
||||
&allow_resize_windows);
|
||||
gtk_widget_show (allow_resize_toggle);
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (allow_resize_toggle), allow_resize_windows);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (allow_resize_toggle), allow_resize_windows);
|
||||
|
||||
/* Register this selection options widget with the main tools options dialog */
|
||||
tools_register_options (MAGNIFY, vbox);
|
||||
|
|
|
@ -125,7 +125,7 @@ create_paint_options (void)
|
|||
gtk_signal_connect (GTK_OBJECT (incremental_toggle), "toggled",
|
||||
(GtkSignalFunc) paintbrush_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 selection options widget with the main tools options dialog */
|
||||
|
|
|
@ -329,7 +329,7 @@ posterize_new_dialog ()
|
|||
|
||||
/* The preview toggle */
|
||||
toggle = gtk_check_button_new_with_label (_("Preview"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), pd->preview);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), pd->preview);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
(GtkSignalFunc) posterize_preview_update,
|
||||
|
|
|
@ -154,7 +154,7 @@ create_selection_options (ToolType tool_type)
|
|||
gtk_signal_connect (GTK_OBJECT (sample_merged_toggle), "toggled",
|
||||
(GtkSignalFunc) selection_toggle_update,
|
||||
&options->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_widget_show (sample_merged_toggle);
|
||||
break;
|
||||
default:
|
||||
|
@ -168,7 +168,7 @@ create_selection_options (ToolType tool_type)
|
|||
gtk_signal_connect (GTK_OBJECT (bezier_toggle), "toggled",
|
||||
(GtkSignalFunc) selection_toggle_update,
|
||||
&options->extend);
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (bezier_toggle), options->extend);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (bezier_toggle), options->extend);
|
||||
gtk_widget_show (bezier_toggle);
|
||||
|
||||
}
|
||||
|
@ -181,7 +181,7 @@ create_selection_options (ToolType tool_type)
|
|||
gtk_signal_connect (GTK_OBJECT (antialias_toggle), "toggled",
|
||||
(GtkSignalFunc) selection_toggle_update,
|
||||
&options->antialias);
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (antialias_toggle), options->antialias);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (antialias_toggle), options->antialias);
|
||||
gtk_widget_show (antialias_toggle);
|
||||
}
|
||||
|
||||
|
@ -193,8 +193,8 @@ create_selection_options (ToolType tool_type)
|
|||
gtk_signal_connect (GTK_OBJECT(fixed_size_toggle), "toggled",
|
||||
(GtkSignalFunc)selection_toggle_update,
|
||||
&options->fixed_size);
|
||||
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(fixed_size_toggle),
|
||||
options->fixed_size);
|
||||
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(fixed_size_toggle),
|
||||
options->fixed_size);
|
||||
gtk_widget_show(fixed_size_toggle);
|
||||
|
||||
hbox = gtk_hbox_new (TRUE, 5);
|
||||
|
@ -240,7 +240,7 @@ create_selection_options (ToolType tool_type)
|
|||
gtk_signal_connect (GTK_OBJECT (feather_toggle), "toggled",
|
||||
(GtkSignalFunc) selection_toggle_update,
|
||||
&options->feather);
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (feather_toggle), options->feather);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (feather_toggle), options->feather);
|
||||
gtk_widget_show (feather_toggle);
|
||||
|
||||
/* the feather radius scale */
|
||||
|
|
|
@ -175,8 +175,8 @@ init_text_options(TextToolOptions *options)
|
|||
gtk_signal_connect(GTK_OBJECT(antialias_toggle), "toggled",
|
||||
(GtkSignalFunc) text_antialias_update,
|
||||
&options->antialias);
|
||||
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(antialias_toggle),
|
||||
options->antialias);
|
||||
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(antialias_toggle),
|
||||
options->antialias);
|
||||
gtk_widget_show(antialias_toggle);
|
||||
|
||||
/* Create the border hbox, border spinner, and label */
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -179,8 +179,8 @@ create_transform_options (void)
|
|||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
(GtkSignalFunc) transform_toggle_update,
|
||||
&options->smoothing);
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle),
|
||||
options->smoothing);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle),
|
||||
options->smoothing);
|
||||
gtk_widget_show (toggle);
|
||||
|
||||
gtk_widget_show (vbox);
|
||||
|
@ -215,8 +215,8 @@ create_transform_options (void)
|
|||
/* the show grid toggle button */
|
||||
toggle = gtk_check_button_new_with_label (_("Show grid"));
|
||||
gtk_box_pack_start (GTK_BOX (vbox), toggle, FALSE, FALSE, 0);
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle),
|
||||
options->show_grid);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle),
|
||||
options->show_grid);
|
||||
/* important: connect the signal after setting the state, because calling
|
||||
transform_show_grid_update before the tool is created will fail */
|
||||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
|
@ -246,8 +246,8 @@ create_transform_options (void)
|
|||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
(GtkSignalFunc) transform_toggle_update,
|
||||
&options->clip);
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle),
|
||||
options->clip);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle),
|
||||
options->clip);
|
||||
gtk_widget_show (toggle);
|
||||
|
||||
gtk_widget_show (vbox);
|
||||
|
|
|
@ -179,8 +179,8 @@ create_transform_options (void)
|
|||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
(GtkSignalFunc) transform_toggle_update,
|
||||
&options->smoothing);
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle),
|
||||
options->smoothing);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle),
|
||||
options->smoothing);
|
||||
gtk_widget_show (toggle);
|
||||
|
||||
gtk_widget_show (vbox);
|
||||
|
@ -215,8 +215,8 @@ create_transform_options (void)
|
|||
/* the show grid toggle button */
|
||||
toggle = gtk_check_button_new_with_label (_("Show grid"));
|
||||
gtk_box_pack_start (GTK_BOX (vbox), toggle, FALSE, FALSE, 0);
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle),
|
||||
options->show_grid);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle),
|
||||
options->show_grid);
|
||||
/* important: connect the signal after setting the state, because calling
|
||||
transform_show_grid_update before the tool is created will fail */
|
||||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
|
@ -246,8 +246,8 @@ create_transform_options (void)
|
|||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
(GtkSignalFunc) transform_toggle_update,
|
||||
&options->clip);
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle),
|
||||
options->clip);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle),
|
||||
options->clip);
|
||||
gtk_widget_show (toggle);
|
||||
|
||||
gtk_widget_show (vbox);
|
||||
|
|
|
@ -799,7 +799,7 @@ grad_create_gradient_editor_init(gint need_show)
|
|||
gtk_signal_connect(GTK_OBJECT(button), "toggled",
|
||||
(GtkSignalFunc) ed_instant_update_update,
|
||||
g_editor);
|
||||
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(button), TRUE);
|
||||
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), TRUE);
|
||||
gtk_widget_show(button);
|
||||
|
||||
/* hbox for that holds the frame for gradient preview and gradient control;
|
||||
|
|
|
@ -72,6 +72,7 @@
|
|||
#undef HAVE_IPC_H
|
||||
#undef HAVE_LC_MESSAGES
|
||||
#undef HAVE_NDIR_H
|
||||
#undef HAVE_PROGRESSIVE_JPEG
|
||||
#undef HAVE_PUTENV
|
||||
#undef HAVE_SHM_H
|
||||
#undef HAVE_STPCPY
|
||||
|
@ -94,6 +95,8 @@
|
|||
|
||||
#undef USE_PTHREADS
|
||||
|
||||
#undef WITH_SYMBOL_UNDERSCORE
|
||||
|
||||
/* Define if you have the __argz_count function. */
|
||||
#undef HAVE___ARGZ_COUNT
|
||||
|
||||
|
@ -177,7 +180,3 @@
|
|||
|
||||
/* Define if you have the i library (-li). */
|
||||
#undef HAVE_LIBI
|
||||
|
||||
/* define if compiled symbols have a leading underscore */
|
||||
#undef WITH_SYMBOL_UNDERSCORE
|
||||
|
||||
|
|
|
@ -734,7 +734,7 @@ alienmap_dialog(void)
|
|||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
(GtkSignalFunc) alienmap_toggle_update,
|
||||
&do_redsinus);
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), do_redsinus);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), do_redsinus);
|
||||
gtk_widget_show (toggle);
|
||||
|
||||
set_tooltip(tips,toggle,"Use sine-function for red component");
|
||||
|
@ -745,7 +745,7 @@ alienmap_dialog(void)
|
|||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
(GtkSignalFunc) alienmap_toggle_update,
|
||||
&do_redcosinus);
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), do_redcosinus);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), do_redcosinus);
|
||||
gtk_widget_show (toggle);
|
||||
set_tooltip(tips,toggle,"Use cosine-function for red component");
|
||||
|
||||
|
@ -755,7 +755,7 @@ alienmap_dialog(void)
|
|||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
(GtkSignalFunc) alienmap_toggle_update,
|
||||
&do_rednone);
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), do_rednone);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), do_rednone);
|
||||
gtk_widget_show (toggle);
|
||||
set_tooltip(tips,toggle,"Red channel: use linear mapping instead of any trigonometrical function");
|
||||
|
||||
|
@ -777,7 +777,7 @@ alienmap_dialog(void)
|
|||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
(GtkSignalFunc) alienmap_toggle_update,
|
||||
&do_greensinus);
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), do_greensinus);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), do_greensinus);
|
||||
gtk_widget_show (toggle);
|
||||
set_tooltip(tips,toggle,"Use sine-function for green component");
|
||||
|
||||
|
@ -787,7 +787,7 @@ alienmap_dialog(void)
|
|||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
(GtkSignalFunc) alienmap_toggle_update,
|
||||
&do_greencosinus);
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), do_greencosinus);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), do_greencosinus);
|
||||
gtk_widget_show (toggle);
|
||||
set_tooltip(tips,toggle,"Use cosine-function for green component");
|
||||
|
||||
|
@ -797,7 +797,7 @@ alienmap_dialog(void)
|
|||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
(GtkSignalFunc) alienmap_toggle_update,
|
||||
&do_greennone);
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), do_greennone);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), do_greennone);
|
||||
gtk_widget_show (toggle);
|
||||
set_tooltip(tips,toggle,"Green channel: use linear mapping instead of any trigonometrical function");
|
||||
|
||||
|
@ -819,7 +819,7 @@ alienmap_dialog(void)
|
|||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
(GtkSignalFunc) alienmap_toggle_update,
|
||||
&do_bluesinus);
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), do_bluesinus);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), do_bluesinus);
|
||||
gtk_widget_show (toggle);
|
||||
set_tooltip(tips,toggle,"Use sine-function for blue component");
|
||||
|
||||
|
@ -829,7 +829,7 @@ alienmap_dialog(void)
|
|||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
(GtkSignalFunc) alienmap_toggle_update,
|
||||
&do_bluecosinus);
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), do_bluecosinus);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), do_bluecosinus);
|
||||
gtk_widget_show (toggle);
|
||||
set_tooltip(tips,toggle,"Use cosine-function for blue component");
|
||||
|
||||
|
@ -839,7 +839,7 @@ alienmap_dialog(void)
|
|||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
(GtkSignalFunc) alienmap_toggle_update,
|
||||
&do_bluenone);
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), do_bluenone);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), do_bluenone);
|
||||
gtk_widget_show (toggle);
|
||||
set_tooltip(tips,toggle,"Blue channel: use linear mapping instead of any trigonometrical function");
|
||||
|
||||
|
|
|
@ -2634,8 +2634,8 @@ gtkW_menu_update (GtkWidget *widget,
|
|||
static void
|
||||
gtkW_toggle_change_value (gtkW_widget_table *wtable)
|
||||
{
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (wtable->widget),
|
||||
*(gint *)(wtable->value));
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (wtable->widget),
|
||||
*(gint *)(wtable->value));
|
||||
}
|
||||
|
||||
/* gtkW method */
|
||||
|
@ -2652,7 +2652,7 @@ gtkW_check_button_new (GtkWidget *parent,
|
|||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
(GtkSignalFunc) update,
|
||||
value);
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), *value);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), *value);
|
||||
gtk_container_add (GTK_CONTAINER (parent), toggle);
|
||||
gtk_widget_show (toggle);
|
||||
return toggle;
|
||||
|
@ -3017,7 +3017,7 @@ gtkW_table_add_toggle (GtkWidget *table,
|
|||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
(GtkSignalFunc) update,
|
||||
value);
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), *value);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), *value);
|
||||
gtk_widget_show (toggle);
|
||||
|
||||
if (widget_entry)
|
||||
|
|
|
@ -324,9 +324,9 @@ static gint type_dialog(int selected) {
|
|||
(GtkSignalFunc) type_dialog_toggle_update,
|
||||
(*p)->formatname);
|
||||
if (current == selected)
|
||||
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(toggle), 1);
|
||||
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toggle), 1);
|
||||
else
|
||||
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(toggle), 0);
|
||||
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toggle), 0);
|
||||
|
||||
gtk_widget_show(toggle);
|
||||
p++;
|
||||
|
|
|
@ -845,7 +845,7 @@ gtkW_check_button_new (GtkWidget *parent,
|
|||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
(GtkSignalFunc) update,
|
||||
value);
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), *value);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), *value);
|
||||
gtk_container_add (GTK_CONTAINER (parent), toggle);
|
||||
gtk_widget_show (toggle);
|
||||
return toggle;
|
||||
|
@ -883,7 +883,7 @@ gtkW_table_add_toggle (GtkWidget *table,
|
|||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
(GtkSignalFunc) update,
|
||||
value);
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), *value);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), *value);
|
||||
gtk_widget_show (toggle);
|
||||
}
|
||||
|
||||
|
|
|
@ -1808,7 +1808,7 @@ rewind_callback (GtkWidget *widget,
|
|||
if (playing)
|
||||
{
|
||||
playstop_callback(NULL, NULL); /* GTK weirdness workaround */
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (psbutton), FALSE);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (psbutton), FALSE);
|
||||
playing = FALSE;
|
||||
remove_timer();
|
||||
}
|
||||
|
@ -1825,7 +1825,7 @@ step_callback (GtkWidget *widget,
|
|||
if (playing)
|
||||
{
|
||||
playstop_callback(NULL, NULL); /* GTK weirdness workaround */
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (psbutton), FALSE);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (psbutton), FALSE);
|
||||
playing = FALSE;
|
||||
remove_timer();
|
||||
}
|
||||
|
|
|
@ -444,7 +444,7 @@ lens_dialog(GDrawable *drawable)
|
|||
gtk_signal_connect(GTK_OBJECT(toggle), "toggled",
|
||||
(GtkSignalFunc) lens_toggle_update,
|
||||
&lvals.keep_surr);
|
||||
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(toggle), lvals.keep_surr);
|
||||
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toggle), lvals.keep_surr);
|
||||
gtk_widget_show(toggle);
|
||||
|
||||
toggle =
|
||||
|
@ -458,7 +458,7 @@ lens_dialog(GDrawable *drawable)
|
|||
gtk_signal_connect(GTK_OBJECT(toggle), "toggled",
|
||||
(GtkSignalFunc) lens_toggle_update,
|
||||
&lvals.use_bkgr);
|
||||
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(toggle), lvals.use_bkgr);
|
||||
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toggle), lvals.use_bkgr);
|
||||
gtk_widget_show(toggle);
|
||||
|
||||
if((drawtype == INDEXEDA_IMAGE) ||
|
||||
|
@ -471,8 +471,8 @@ lens_dialog(GDrawable *drawable)
|
|||
gtk_signal_connect(GTK_OBJECT(toggle), "toggled",
|
||||
(GtkSignalFunc) lens_toggle_update,
|
||||
&lvals.set_transparent);
|
||||
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(toggle),
|
||||
lvals.set_transparent);
|
||||
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toggle),
|
||||
lvals.set_transparent);
|
||||
gtk_widget_show(toggle);
|
||||
}
|
||||
|
||||
|
|
|
@ -391,7 +391,7 @@ blinds_dialog ()
|
|||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
(GtkSignalFunc) blinds_toggle_update,
|
||||
&do_horizontal);
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), do_horizontal);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), do_horizontal);
|
||||
gtk_widget_show (toggle);
|
||||
|
||||
toggle = gtk_radio_button_new_with_label (orientation_group, "Vertical");
|
||||
|
@ -400,7 +400,7 @@ blinds_dialog ()
|
|||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
(GtkSignalFunc) blinds_toggle_update,
|
||||
&do_vertical);
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), do_vertical);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), do_vertical);
|
||||
gtk_widget_show (toggle);
|
||||
|
||||
gtk_widget_show (toggle_vbox);
|
||||
|
@ -419,12 +419,12 @@ blinds_dialog ()
|
|||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
(GtkSignalFunc) blinds_button_update,
|
||||
&do_trans);
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), do_trans);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), do_trans);
|
||||
|
||||
if(!has_alpha)
|
||||
{
|
||||
gtk_widget_set_sensitive(toggle,FALSE);
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), FALSE);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), FALSE);
|
||||
}
|
||||
|
||||
gtk_widget_show (toggle);
|
||||
|
|
|
@ -451,7 +451,7 @@ save_dialog ()
|
|||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
(GtkSignalFunc) save_toggle_update,
|
||||
&encoded);
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), encoded);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), encoded);
|
||||
gtk_widget_show (toggle);
|
||||
|
||||
gtk_widget_show (vbox);
|
||||
|
|
|
@ -874,7 +874,7 @@ bumpmap_dialog(void)
|
|||
button = gtk_check_button_new_with_label("Compensate for darkening");
|
||||
gtk_table_attach(GTK_TABLE(table), button, 0, 1, 0, 1,
|
||||
GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0);
|
||||
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(button), bmvals.compensate ? TRUE : FALSE);
|
||||
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), bmvals.compensate ? TRUE : FALSE);
|
||||
gtk_signal_connect(GTK_OBJECT(button), "toggled",
|
||||
(GtkSignalFunc) dialog_compensate_callback,
|
||||
NULL);
|
||||
|
@ -885,7 +885,7 @@ bumpmap_dialog(void)
|
|||
button = gtk_check_button_new_with_label("Invert bumpmap");
|
||||
gtk_table_attach(GTK_TABLE(table), button, 0, 1, 1, 2,
|
||||
GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0);
|
||||
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(button), bmvals.invert ? TRUE : FALSE);
|
||||
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), bmvals.invert ? TRUE : FALSE);
|
||||
gtk_signal_connect(GTK_OBJECT(button), "toggled",
|
||||
(GtkSignalFunc) dialog_invert_callback,
|
||||
NULL);
|
||||
|
@ -909,7 +909,7 @@ bumpmap_dialog(void)
|
|||
button = gtk_radio_button_new_with_label(group, map_types[i]);
|
||||
group = gtk_radio_button_group(GTK_RADIO_BUTTON(button));
|
||||
if (i == bmvals.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) dialog_map_type_callback,
|
||||
(gpointer) ((long) i));
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue