changed description of GIMP_CLONE_ALIGN_NO enum value.

2005-12-16  Sven Neumann  <sven@gimp.org>

	* app/paint/paint-enums.[ch]: changed description of
	GIMP_CLONE_ALIGN_NO enum value.

	* app/tools/gimpclonetool.c (gimp_clone_options_gui): use a combo
	box for the align mode.
This commit is contained in:
Sven Neumann 2005-12-16 14:44:25 +00:00 committed by Sven Neumann
parent 493cd140f8
commit 6a0267b65e
5 changed files with 36 additions and 18 deletions

View file

@ -1,3 +1,11 @@
2005-12-16 Sven Neumann <sven@gimp.org>
* app/paint/paint-enums.[ch]: changed description of
GIMP_CLONE_ALIGN_NO enum value.
* app/tools/gimpclonetool.c (gimp_clone_options_gui): use a combo
box for the align mode.
2005-12-14 Sven Neumann <sven@gimp.org>
* libgimpbase/gimpprotocol.[ch]: declare gp_params_destroy() in

View file

@ -22,7 +22,7 @@ gimp_clone_align_mode_get_type (void)
static const GimpEnumDesc descs[] =
{
{ GIMP_CLONE_ALIGN_NO, N_("Non-aligned"), NULL },
{ GIMP_CLONE_ALIGN_NO, N_("None"), NULL },
{ GIMP_CLONE_ALIGN_YES, N_("Aligned"), NULL },
{ GIMP_CLONE_ALIGN_REGISTERED, N_("Registered"), NULL },
{ GIMP_CLONE_ALIGN_FIXED, N_("Fixed"), NULL },

View file

@ -41,7 +41,7 @@ GType gimp_clone_align_mode_get_type (void) G_GNUC_CONST;
typedef enum /*< pdb-skip >*/
{
GIMP_CLONE_ALIGN_NO, /*< desc="Non-aligned" >*/
GIMP_CLONE_ALIGN_NO, /*< desc="None" >*/
GIMP_CLONE_ALIGN_YES, /*< desc="Aligned" >*/
GIMP_CLONE_ALIGN_REGISTERED, /*< desc="Registered" >*/
GIMP_CLONE_ALIGN_FIXED /*< desc="Fixed" >*/

View file

@ -289,14 +289,15 @@ gimp_clone_options_gui (GimpToolOptions *tool_options)
GObject *config = G_OBJECT (tool_options);
GtkWidget *vbox;
GtkWidget *frame;
GtkWidget *hbox;
GtkWidget *button;
GtkWidget *hbox;
GtkWidget *table;
GtkWidget *combo;
vbox = gimp_paint_options_gui (tool_options);
frame = gimp_prop_enum_radio_frame_new (config, "clone-type",
_("Source"),
0, 0);
_("Source"), 0, 0);
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0);
gtk_widget_show (frame);
@ -307,11 +308,15 @@ gimp_clone_options_gui (GimpToolOptions *tool_options)
hbox = gimp_pattern_box_new (NULL, GIMP_CONTEXT (tool_options), 2);
gimp_enum_radio_frame_add (GTK_FRAME (frame), hbox, GIMP_PATTERN_CLONE);
frame = gimp_prop_enum_radio_frame_new (config, "align-mode",
_("Alignment"),
0, 0);
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0);
gtk_widget_show (frame);
table = gtk_table_new (1, 2, FALSE);
gtk_table_set_col_spacings (GTK_TABLE (table), 2);
gtk_box_pack_start (GTK_BOX (vbox), table, FALSE, FALSE, 0);
gtk_widget_show (table);
combo = gimp_prop_enum_combo_box_new (config, "align-mode", 0, 0);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 0,
_("Alignment:"), 0.0, 0.5,
combo, 1, FALSE);
return vbox;
}

View file

@ -289,14 +289,15 @@ gimp_clone_options_gui (GimpToolOptions *tool_options)
GObject *config = G_OBJECT (tool_options);
GtkWidget *vbox;
GtkWidget *frame;
GtkWidget *hbox;
GtkWidget *button;
GtkWidget *hbox;
GtkWidget *table;
GtkWidget *combo;
vbox = gimp_paint_options_gui (tool_options);
frame = gimp_prop_enum_radio_frame_new (config, "clone-type",
_("Source"),
0, 0);
_("Source"), 0, 0);
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0);
gtk_widget_show (frame);
@ -307,11 +308,15 @@ gimp_clone_options_gui (GimpToolOptions *tool_options)
hbox = gimp_pattern_box_new (NULL, GIMP_CONTEXT (tool_options), 2);
gimp_enum_radio_frame_add (GTK_FRAME (frame), hbox, GIMP_PATTERN_CLONE);
frame = gimp_prop_enum_radio_frame_new (config, "align-mode",
_("Alignment"),
0, 0);
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0);
gtk_widget_show (frame);
table = gtk_table_new (1, 2, FALSE);
gtk_table_set_col_spacings (GTK_TABLE (table), 2);
gtk_box_pack_start (GTK_BOX (vbox), table, FALSE, FALSE, 0);
gtk_widget_show (table);
combo = gimp_prop_enum_combo_box_new (config, "align-mode", 0, 0);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 0,
_("Alignment:"), 0.0, 0.5,
combo, 1, FALSE);
return vbox;
}