From 2ec50a9d930eb18b1711e470e0676d9b0c9af39d Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Wed, 28 Apr 1999 18:58:01 +0000 Subject: [PATCH] Some code cleanup, changes to the crop-modifier_key_func and 128n fixes. --Sven --- ChangeLog | 9 ++++ app/bucket_fill.c | 6 +-- app/convolve.c | 2 +- app/core/gimptooloptions.c | 2 +- app/crop.c | 92 ++++++++++++++-------------------- app/flip_tool.c | 2 +- app/ops_buttons.c | 2 +- app/paint/gimpconvolve.c | 2 +- app/tool_options.c | 2 +- app/tools/bucket_fill.c | 6 +-- app/tools/convolve.c | 2 +- app/tools/crop.c | 92 ++++++++++++++-------------------- app/tools/flip_tool.c | 2 +- app/tools/gimpbucketfilltool.c | 6 +-- app/tools/gimpconvolvetool.c | 2 +- app/tools/gimpcroptool.c | 92 ++++++++++++++-------------------- app/tools/gimpfliptool.c | 2 +- app/tools/tool_options.c | 2 +- 18 files changed, 140 insertions(+), 185 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0d0d8c33f6..8abb9e96a9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +Wed Apr 28 20:53:18 MEST 1999 Sven Neumann + + * app/bucket_fill.c + * app/convolve.c + * app/crop.c + * app/flip_tool.c + * app/ops_buttons.c + * app/tool_options.c: some code cleanup and i18n fixes + Wed Apr 28 16:28:08 1999 ape@lrdpf.spacetec.no (Asbjorn Pettersen) * app/gimprc.c: Add , Open text files with "rt". diff --git a/app/bucket_fill.c b/app/bucket_fill.c index cafd10c0fe..448865aa2a 100644 --- a/app/bucket_fill.c +++ b/app/bucket_fill.c @@ -111,9 +111,9 @@ bucket_options_new (void) GtkWidget *label; GtkWidget *scale; GtkWidget *frame; - gchar* fill_mode_label[3] = { _("FG Color Fill"), - _("BG Color Fill"), - _("Pattern Fill") }; + gchar* fill_mode_label[3] = { N_("FG Color Fill"), + N_("BG Color Fill"), + N_("Pattern Fill") }; gint fill_mode_value[3] = { FG_BUCKET_FILL, BG_BUCKET_FILL, PATTERN_BUCKET_FILL }; diff --git a/app/convolve.c b/app/convolve.c index 8a98b0353c..4ec1150f5f 100644 --- a/app/convolve.c +++ b/app/convolve.c @@ -126,7 +126,7 @@ convolve_options_new (void) GtkWidget *label; GtkWidget *scale; GtkWidget *frame; - gchar* type_label[2] = { _("Blur"), _("Sharpen") }; + gchar* type_label[2] = { N_("Blur"), N_("Sharpen") }; gint type_value[2] = { BLUR_CONVOLVE, SHARPEN_CONVOLVE }; /* the new convolve tool options structure */ diff --git a/app/core/gimptooloptions.c b/app/core/gimptooloptions.c index 103914eb29..911ab2d96b 100644 --- a/app/core/gimptooloptions.c +++ b/app/core/gimptooloptions.c @@ -170,7 +170,7 @@ tool_options_radio_buttons_new (gchar* label, for (i=0; ilayer_only = options->layer_only_d = FALSE; options->allow_enlarge = options->allow_enlarge_d = TRUE; - options->type = options->type_d = CROP_CROP; + options->type = options->type_d = RESIZE_CROP; /* the main vbox */ vbox = options->tool_options.main_vbox; @@ -255,12 +253,7 @@ crop_button_press (Tool *tool, /* If the pointer is in the rectangular region, crop or resize it! */ else if (bevent->x > crop->x1 && bevent->x < crop->x2 && bevent->y > crop->y1 && bevent->y < crop->y2) - { - if ( crop_options->type == CROP_CROP ) - crop->function = CROPPING; - else - crop->function = REFRAMING; - } + crop->function = CROPPING; /* otherwise, the new function will be creating, since we want to start anew */ else crop->function = CREATING; @@ -307,30 +300,27 @@ crop_button_release (Tool *tool, gdk_pointer_ungrab (bevent->time); gdk_flush (); - gtk_statusbar_pop (GTK_STATUSBAR(gdisp->statusbar), crop->context_id); + gtk_statusbar_pop (GTK_STATUSBAR (gdisp->statusbar), crop->context_id); if (! (bevent->state & GDK_BUTTON3_MASK)) { - switch (crop->function) + if (crop->function == CROPPING) { - case CROPPING: - crop_image (gdisp->gimage, crop->tx1, crop->ty1, crop->tx2, crop->ty2, - crop_options->layer_only, TRUE); - break; - case REFRAMING: - crop_image (gdisp->gimage, crop->tx1, crop->ty1, crop->tx2, crop->ty2, - crop_options->layer_only, FALSE); - break; - default: - crop_info_update (tool); - return; - } - } + if (crop_options->type == CROP_CROP) + crop_image (gdisp->gimage, crop->tx1, crop->ty1, crop->tx2, crop->ty2, + crop_options->layer_only, TRUE); + else + crop_image (gdisp->gimage, crop->tx1, crop->ty1, crop->tx2, crop->ty2, + crop_options->layer_only, FALSE); - /* Finish the tool */ - draw_core_stop (crop->core, tool); - info_dialog_popdown (crop_info); - tool->state = INACTIVE; + /* Finish the tool */ + draw_core_stop (crop->core, tool); + info_dialog_popdown (crop_info); + tool->state = INACTIVE; + } + else + crop_info_update (tool); + } } static void @@ -398,7 +388,7 @@ crop_motion (Tool *tool, /* This is the only case when the motion events should be ignored-- we're just waiting for the button release event to crop the image */ - if (crop->function == CROPPING || crop->function == REFRAMING) + if (crop->function == CROPPING) return; gdisplay_untransform_coords (gdisp, mevent->x, mevent->y, &curx, &cury, TRUE, FALSE); @@ -651,26 +641,19 @@ crop_modifier_key_func (Tool *tool, GdkEventKey *kevent, gpointer gdisp_ptr) { - GDisplay * gdisp; - - gdisp = (GDisplay *) gdisp_ptr; - - if (tool->state == ACTIVE && tool->gdisp_ptr == gdisp_ptr) + switch (kevent->keyval) { - switch (kevent->keyval) - { - case GDK_Alt_L: case GDK_Alt_R: - gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (crop_options->allow_enlarge_w), !crop_options->allow_enlarge); - break; - case GDK_Shift_L: case GDK_Shift_R: - if (crop_options->type == CROP_CROP) - gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (crop_options->type_w[RESIZE_CROP]), TRUE); - else - gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (crop_options->type_w[CROP_CROP]), TRUE); - break; - case GDK_Control_L: case GDK_Control_R: - break; - } + case GDK_Alt_L: case GDK_Alt_R: + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (crop_options->allow_enlarge_w), !crop_options->allow_enlarge); + break; + case GDK_Shift_L: case GDK_Shift_R: + if (crop_options->type == CROP_CROP) + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (crop_options->type_w[RESIZE_CROP]), TRUE); + else + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (crop_options->type_w[CROP_CROP]), TRUE); + break; + case GDK_Control_L: case GDK_Control_R: + break; } } @@ -1007,11 +990,10 @@ crop_start (Tool *tool, /* Crop dialog functions */ /*******************************************************/ -static ActionAreaItem action_items[4] = +static ActionAreaItem action_items[3] = { - { N_("Crop"), crop_ok_callback, NULL, NULL }, + { N_("Crop"), crop_crop_callback, NULL, NULL }, { N_("Resize"), crop_resize_callback, NULL, NULL }, - /* { N_("Selection"), crop_selection_callback, NULL, NULL }, */ { N_("Close"), crop_close_callback, NULL, NULL }, }; @@ -1132,8 +1114,8 @@ crop_info_update (Tool *tool) } static void -crop_ok_callback (GtkWidget *w, - gpointer client_data) +crop_crop_callback (GtkWidget *w, + gpointer client_data) { Tool * tool; Crop * crop; diff --git a/app/flip_tool.c b/app/flip_tool.c index 6eeaa07b3a..d62dbcccd9 100644 --- a/app/flip_tool.c +++ b/app/flip_tool.c @@ -67,7 +67,7 @@ flip_options_new (void) GtkWidget *vbox; GtkWidget *frame; - gchar* type_label[2] = { _("Horizontal"), _("Vertical") }; + gchar* type_label[2] = { N_("Horizontal"), N_("Vertical") }; gint type_value[2] = { FLIP_HORZ, FLIP_VERT }; /* the new flip tool options structure */ diff --git a/app/ops_buttons.c b/app/ops_buttons.c index 6888655331..2d884eae4b 100644 --- a/app/ops_buttons.c +++ b/app/ops_buttons.c @@ -93,7 +93,7 @@ GtkWidget *ops_button_box_new (GtkWidget *parent, } if (tool_tips != NULL) - gtk_tooltips_set_tip (tool_tips, button, ops_button->tooltip, NULL); + gtk_tooltips_set_tip (tool_tips, button, gettext (ops_button->tooltip), NULL); gtk_box_pack_start (GTK_BOX(button_box), button, TRUE, TRUE, 0); diff --git a/app/paint/gimpconvolve.c b/app/paint/gimpconvolve.c index 8a98b0353c..4ec1150f5f 100644 --- a/app/paint/gimpconvolve.c +++ b/app/paint/gimpconvolve.c @@ -126,7 +126,7 @@ convolve_options_new (void) GtkWidget *label; GtkWidget *scale; GtkWidget *frame; - gchar* type_label[2] = { _("Blur"), _("Sharpen") }; + gchar* type_label[2] = { N_("Blur"), N_("Sharpen") }; gint type_value[2] = { BLUR_CONVOLVE, SHARPEN_CONVOLVE }; /* the new convolve tool options structure */ diff --git a/app/tool_options.c b/app/tool_options.c index 103914eb29..911ab2d96b 100644 --- a/app/tool_options.c +++ b/app/tool_options.c @@ -170,7 +170,7 @@ tool_options_radio_buttons_new (gchar* label, for (i=0; ilayer_only = options->layer_only_d = FALSE; options->allow_enlarge = options->allow_enlarge_d = TRUE; - options->type = options->type_d = CROP_CROP; + options->type = options->type_d = RESIZE_CROP; /* the main vbox */ vbox = options->tool_options.main_vbox; @@ -255,12 +253,7 @@ crop_button_press (Tool *tool, /* If the pointer is in the rectangular region, crop or resize it! */ else if (bevent->x > crop->x1 && bevent->x < crop->x2 && bevent->y > crop->y1 && bevent->y < crop->y2) - { - if ( crop_options->type == CROP_CROP ) - crop->function = CROPPING; - else - crop->function = REFRAMING; - } + crop->function = CROPPING; /* otherwise, the new function will be creating, since we want to start anew */ else crop->function = CREATING; @@ -307,30 +300,27 @@ crop_button_release (Tool *tool, gdk_pointer_ungrab (bevent->time); gdk_flush (); - gtk_statusbar_pop (GTK_STATUSBAR(gdisp->statusbar), crop->context_id); + gtk_statusbar_pop (GTK_STATUSBAR (gdisp->statusbar), crop->context_id); if (! (bevent->state & GDK_BUTTON3_MASK)) { - switch (crop->function) + if (crop->function == CROPPING) { - case CROPPING: - crop_image (gdisp->gimage, crop->tx1, crop->ty1, crop->tx2, crop->ty2, - crop_options->layer_only, TRUE); - break; - case REFRAMING: - crop_image (gdisp->gimage, crop->tx1, crop->ty1, crop->tx2, crop->ty2, - crop_options->layer_only, FALSE); - break; - default: - crop_info_update (tool); - return; - } - } + if (crop_options->type == CROP_CROP) + crop_image (gdisp->gimage, crop->tx1, crop->ty1, crop->tx2, crop->ty2, + crop_options->layer_only, TRUE); + else + crop_image (gdisp->gimage, crop->tx1, crop->ty1, crop->tx2, crop->ty2, + crop_options->layer_only, FALSE); - /* Finish the tool */ - draw_core_stop (crop->core, tool); - info_dialog_popdown (crop_info); - tool->state = INACTIVE; + /* Finish the tool */ + draw_core_stop (crop->core, tool); + info_dialog_popdown (crop_info); + tool->state = INACTIVE; + } + else + crop_info_update (tool); + } } static void @@ -398,7 +388,7 @@ crop_motion (Tool *tool, /* This is the only case when the motion events should be ignored-- we're just waiting for the button release event to crop the image */ - if (crop->function == CROPPING || crop->function == REFRAMING) + if (crop->function == CROPPING) return; gdisplay_untransform_coords (gdisp, mevent->x, mevent->y, &curx, &cury, TRUE, FALSE); @@ -651,26 +641,19 @@ crop_modifier_key_func (Tool *tool, GdkEventKey *kevent, gpointer gdisp_ptr) { - GDisplay * gdisp; - - gdisp = (GDisplay *) gdisp_ptr; - - if (tool->state == ACTIVE && tool->gdisp_ptr == gdisp_ptr) + switch (kevent->keyval) { - switch (kevent->keyval) - { - case GDK_Alt_L: case GDK_Alt_R: - gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (crop_options->allow_enlarge_w), !crop_options->allow_enlarge); - break; - case GDK_Shift_L: case GDK_Shift_R: - if (crop_options->type == CROP_CROP) - gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (crop_options->type_w[RESIZE_CROP]), TRUE); - else - gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (crop_options->type_w[CROP_CROP]), TRUE); - break; - case GDK_Control_L: case GDK_Control_R: - break; - } + case GDK_Alt_L: case GDK_Alt_R: + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (crop_options->allow_enlarge_w), !crop_options->allow_enlarge); + break; + case GDK_Shift_L: case GDK_Shift_R: + if (crop_options->type == CROP_CROP) + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (crop_options->type_w[RESIZE_CROP]), TRUE); + else + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (crop_options->type_w[CROP_CROP]), TRUE); + break; + case GDK_Control_L: case GDK_Control_R: + break; } } @@ -1007,11 +990,10 @@ crop_start (Tool *tool, /* Crop dialog functions */ /*******************************************************/ -static ActionAreaItem action_items[4] = +static ActionAreaItem action_items[3] = { - { N_("Crop"), crop_ok_callback, NULL, NULL }, + { N_("Crop"), crop_crop_callback, NULL, NULL }, { N_("Resize"), crop_resize_callback, NULL, NULL }, - /* { N_("Selection"), crop_selection_callback, NULL, NULL }, */ { N_("Close"), crop_close_callback, NULL, NULL }, }; @@ -1132,8 +1114,8 @@ crop_info_update (Tool *tool) } static void -crop_ok_callback (GtkWidget *w, - gpointer client_data) +crop_crop_callback (GtkWidget *w, + gpointer client_data) { Tool * tool; Crop * crop; diff --git a/app/tools/flip_tool.c b/app/tools/flip_tool.c index 6eeaa07b3a..d62dbcccd9 100644 --- a/app/tools/flip_tool.c +++ b/app/tools/flip_tool.c @@ -67,7 +67,7 @@ flip_options_new (void) GtkWidget *vbox; GtkWidget *frame; - gchar* type_label[2] = { _("Horizontal"), _("Vertical") }; + gchar* type_label[2] = { N_("Horizontal"), N_("Vertical") }; gint type_value[2] = { FLIP_HORZ, FLIP_VERT }; /* the new flip tool options structure */ diff --git a/app/tools/gimpbucketfilltool.c b/app/tools/gimpbucketfilltool.c index cafd10c0fe..448865aa2a 100644 --- a/app/tools/gimpbucketfilltool.c +++ b/app/tools/gimpbucketfilltool.c @@ -111,9 +111,9 @@ bucket_options_new (void) GtkWidget *label; GtkWidget *scale; GtkWidget *frame; - gchar* fill_mode_label[3] = { _("FG Color Fill"), - _("BG Color Fill"), - _("Pattern Fill") }; + gchar* fill_mode_label[3] = { N_("FG Color Fill"), + N_("BG Color Fill"), + N_("Pattern Fill") }; gint fill_mode_value[3] = { FG_BUCKET_FILL, BG_BUCKET_FILL, PATTERN_BUCKET_FILL }; diff --git a/app/tools/gimpconvolvetool.c b/app/tools/gimpconvolvetool.c index 8a98b0353c..4ec1150f5f 100644 --- a/app/tools/gimpconvolvetool.c +++ b/app/tools/gimpconvolvetool.c @@ -126,7 +126,7 @@ convolve_options_new (void) GtkWidget *label; GtkWidget *scale; GtkWidget *frame; - gchar* type_label[2] = { _("Blur"), _("Sharpen") }; + gchar* type_label[2] = { N_("Blur"), N_("Sharpen") }; gint type_value[2] = { BLUR_CONVOLVE, SHARPEN_CONVOLVE }; /* the new convolve tool options structure */ diff --git a/app/tools/gimpcroptool.c b/app/tools/gimpcroptool.c index ce8a99b3cf..650bf4cf18 100644 --- a/app/tools/gimpcroptool.c +++ b/app/tools/gimpcroptool.c @@ -40,8 +40,6 @@ #define RESIZING_LEFT 2 #define RESIZING_RIGHT 3 #define CROPPING 4 -#define REFRAMING 5 - /* speed of key movement */ #define ARROW_VELOCITY 25 @@ -120,7 +118,7 @@ static void crop_adjust_guides (GImage *, int, int, int, int); /* Crop dialog functions */ static void crop_info_update (Tool *); static void crop_info_create (Tool *); -static void crop_ok_callback (GtkWidget *, gpointer); +static void crop_crop_callback (GtkWidget *, gpointer); static void crop_resize_callback (GtkWidget *, gpointer); static void crop_close_callback (GtkWidget *, gpointer); @@ -165,7 +163,7 @@ crop_options_new (void) CropOptions *options; GtkWidget *vbox; GtkWidget *frame; - gchar* type_label[2] = { _("Crop"), _("Resize") }; + gchar* type_label[2] = { N_("Crop"), N_("Resize") }; gint type_value[2] = { CROP_CROP, RESIZE_CROP }; /* the new crop tool options structure */ @@ -175,7 +173,7 @@ crop_options_new (void) crop_options_reset); options->layer_only = options->layer_only_d = FALSE; options->allow_enlarge = options->allow_enlarge_d = TRUE; - options->type = options->type_d = CROP_CROP; + options->type = options->type_d = RESIZE_CROP; /* the main vbox */ vbox = options->tool_options.main_vbox; @@ -255,12 +253,7 @@ crop_button_press (Tool *tool, /* If the pointer is in the rectangular region, crop or resize it! */ else if (bevent->x > crop->x1 && bevent->x < crop->x2 && bevent->y > crop->y1 && bevent->y < crop->y2) - { - if ( crop_options->type == CROP_CROP ) - crop->function = CROPPING; - else - crop->function = REFRAMING; - } + crop->function = CROPPING; /* otherwise, the new function will be creating, since we want to start anew */ else crop->function = CREATING; @@ -307,30 +300,27 @@ crop_button_release (Tool *tool, gdk_pointer_ungrab (bevent->time); gdk_flush (); - gtk_statusbar_pop (GTK_STATUSBAR(gdisp->statusbar), crop->context_id); + gtk_statusbar_pop (GTK_STATUSBAR (gdisp->statusbar), crop->context_id); if (! (bevent->state & GDK_BUTTON3_MASK)) { - switch (crop->function) + if (crop->function == CROPPING) { - case CROPPING: - crop_image (gdisp->gimage, crop->tx1, crop->ty1, crop->tx2, crop->ty2, - crop_options->layer_only, TRUE); - break; - case REFRAMING: - crop_image (gdisp->gimage, crop->tx1, crop->ty1, crop->tx2, crop->ty2, - crop_options->layer_only, FALSE); - break; - default: - crop_info_update (tool); - return; - } - } + if (crop_options->type == CROP_CROP) + crop_image (gdisp->gimage, crop->tx1, crop->ty1, crop->tx2, crop->ty2, + crop_options->layer_only, TRUE); + else + crop_image (gdisp->gimage, crop->tx1, crop->ty1, crop->tx2, crop->ty2, + crop_options->layer_only, FALSE); - /* Finish the tool */ - draw_core_stop (crop->core, tool); - info_dialog_popdown (crop_info); - tool->state = INACTIVE; + /* Finish the tool */ + draw_core_stop (crop->core, tool); + info_dialog_popdown (crop_info); + tool->state = INACTIVE; + } + else + crop_info_update (tool); + } } static void @@ -398,7 +388,7 @@ crop_motion (Tool *tool, /* This is the only case when the motion events should be ignored-- we're just waiting for the button release event to crop the image */ - if (crop->function == CROPPING || crop->function == REFRAMING) + if (crop->function == CROPPING) return; gdisplay_untransform_coords (gdisp, mevent->x, mevent->y, &curx, &cury, TRUE, FALSE); @@ -651,26 +641,19 @@ crop_modifier_key_func (Tool *tool, GdkEventKey *kevent, gpointer gdisp_ptr) { - GDisplay * gdisp; - - gdisp = (GDisplay *) gdisp_ptr; - - if (tool->state == ACTIVE && tool->gdisp_ptr == gdisp_ptr) + switch (kevent->keyval) { - switch (kevent->keyval) - { - case GDK_Alt_L: case GDK_Alt_R: - gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (crop_options->allow_enlarge_w), !crop_options->allow_enlarge); - break; - case GDK_Shift_L: case GDK_Shift_R: - if (crop_options->type == CROP_CROP) - gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (crop_options->type_w[RESIZE_CROP]), TRUE); - else - gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (crop_options->type_w[CROP_CROP]), TRUE); - break; - case GDK_Control_L: case GDK_Control_R: - break; - } + case GDK_Alt_L: case GDK_Alt_R: + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (crop_options->allow_enlarge_w), !crop_options->allow_enlarge); + break; + case GDK_Shift_L: case GDK_Shift_R: + if (crop_options->type == CROP_CROP) + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (crop_options->type_w[RESIZE_CROP]), TRUE); + else + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (crop_options->type_w[CROP_CROP]), TRUE); + break; + case GDK_Control_L: case GDK_Control_R: + break; } } @@ -1007,11 +990,10 @@ crop_start (Tool *tool, /* Crop dialog functions */ /*******************************************************/ -static ActionAreaItem action_items[4] = +static ActionAreaItem action_items[3] = { - { N_("Crop"), crop_ok_callback, NULL, NULL }, + { N_("Crop"), crop_crop_callback, NULL, NULL }, { N_("Resize"), crop_resize_callback, NULL, NULL }, - /* { N_("Selection"), crop_selection_callback, NULL, NULL }, */ { N_("Close"), crop_close_callback, NULL, NULL }, }; @@ -1132,8 +1114,8 @@ crop_info_update (Tool *tool) } static void -crop_ok_callback (GtkWidget *w, - gpointer client_data) +crop_crop_callback (GtkWidget *w, + gpointer client_data) { Tool * tool; Crop * crop; diff --git a/app/tools/gimpfliptool.c b/app/tools/gimpfliptool.c index 6eeaa07b3a..d62dbcccd9 100644 --- a/app/tools/gimpfliptool.c +++ b/app/tools/gimpfliptool.c @@ -67,7 +67,7 @@ flip_options_new (void) GtkWidget *vbox; GtkWidget *frame; - gchar* type_label[2] = { _("Horizontal"), _("Vertical") }; + gchar* type_label[2] = { N_("Horizontal"), N_("Vertical") }; gint type_value[2] = { FLIP_HORZ, FLIP_VERT }; /* the new flip tool options structure */ diff --git a/app/tools/tool_options.c b/app/tools/tool_options.c index 103914eb29..911ab2d96b 100644 --- a/app/tools/tool_options.c +++ b/app/tools/tool_options.c @@ -170,7 +170,7 @@ tool_options_radio_buttons_new (gchar* label, for (i=0; i