mirror of https://github.com/GNOME/gimp.git
Bug 755005 - Align Tool > Distribute - vertical offset is missing
This commit is contained in:
parent
bf9b14e40d
commit
6e900c5bbb
|
@ -377,7 +377,7 @@ gimp_align_options_gui (GimpToolOptions *tool_options)
|
|||
gtk_box_pack_start (GTK_BOX (align_vbox), hbox, FALSE, FALSE, 0);
|
||||
gtk_widget_show (hbox);
|
||||
|
||||
label = gtk_label_new (_("Offset:"));
|
||||
label = gtk_label_new (_("Offset X:"));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
|
@ -386,5 +386,18 @@ gimp_align_options_gui (GimpToolOptions *tool_options)
|
|||
gtk_box_pack_start (GTK_BOX (hbox), spinbutton, FALSE, FALSE, 0);
|
||||
gtk_widget_show (spinbutton);
|
||||
|
||||
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
|
||||
gtk_box_pack_start (GTK_BOX (align_vbox), hbox, FALSE, FALSE, 0);
|
||||
gtk_widget_show (hbox);
|
||||
|
||||
label = gtk_label_new (_("Offset Y:"));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
spinbutton = gimp_prop_spin_button_new (config, "offset-y",
|
||||
1, 20, 0);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), spinbutton, FALSE, FALSE, 0);
|
||||
gtk_widget_show (spinbutton);
|
||||
|
||||
return vbox;
|
||||
}
|
||||
|
|
|
@ -727,12 +727,15 @@ gimp_align_tool_align (GimpAlignTool *align_tool,
|
|||
case GIMP_ARRANGE_LEFT:
|
||||
case GIMP_ARRANGE_HCENTER:
|
||||
case GIMP_ARRANGE_RIGHT:
|
||||
case GIMP_ARRANGE_HFILL:
|
||||
offset = options->offset_x;
|
||||
break;
|
||||
|
||||
case GIMP_ARRANGE_TOP:
|
||||
case GIMP_ARRANGE_VCENTER:
|
||||
case GIMP_ARRANGE_BOTTOM:
|
||||
case GIMP_ARRANGE_HFILL:
|
||||
case GIMP_ARRANGE_VFILL:
|
||||
offset = options->offset_x;
|
||||
offset = options->offset_y;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue