mirror of https://github.com/GNOME/gimp.git
app: use gimp_enum_radio_frame_new_with_range() in the merge layers dialog
instead of "manually" building the widgets using gimp_int_radio_group_new().
This commit is contained in:
parent
5f0e6cf148
commit
da23240478
|
@ -122,21 +122,16 @@ image_merge_layers_dialog_new (GimpImage *image,
|
||||||
vbox, TRUE, TRUE, 0);
|
vbox, TRUE, TRUE, 0);
|
||||||
gtk_widget_show (vbox);
|
gtk_widget_show (vbox);
|
||||||
|
|
||||||
frame = gimp_int_radio_group_new (TRUE, _("Final, Merged Layer should be:"),
|
frame =
|
||||||
G_CALLBACK (gimp_radio_button_update),
|
gimp_enum_radio_frame_new_with_range (GIMP_TYPE_MERGE_TYPE,
|
||||||
&private->merge_type, private->merge_type,
|
GIMP_EXPAND_AS_NECESSARY,
|
||||||
|
GIMP_CLIP_TO_BOTTOM_LAYER,
|
||||||
_("Expanded as necessary"),
|
gtk_label_new (_("Final, Merged Layer should be:")),
|
||||||
GIMP_EXPAND_AS_NECESSARY, NULL,
|
G_CALLBACK (gimp_radio_button_update),
|
||||||
|
&private->merge_type,
|
||||||
_("Clipped to image"),
|
&button);
|
||||||
GIMP_CLIP_TO_IMAGE, NULL,
|
gimp_int_radio_group_set_active (GTK_RADIO_BUTTON (button),
|
||||||
|
private->merge_type);
|
||||||
_("Clipped to bottom layer"),
|
|
||||||
GIMP_CLIP_TO_BOTTOM_LAYER, NULL,
|
|
||||||
|
|
||||||
NULL);
|
|
||||||
|
|
||||||
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0);
|
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0);
|
||||||
gtk_widget_show (frame);
|
gtk_widget_show (frame);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue