Commit 223a578b authored by Simon Budig's avatar Simon Budig Committed by Simon Budig

libgimpwidgets/gimpresolutionentry.c fix typo in a function name.

2006-11-25  Simon Budig  <simon@gimp.org>

	* libgimpwidgets/gimpresolutionentry.c
	* libgimpwidgets/gimpwidgets.def: fix typo in a function name.

	* app/widgets/gimpgradienteditor.c
	* app/widgets/gimppaletteeditor.c
	* app/actions/gradient-editor-actions.c
	* app/actions/palette-editor-actions.c: handle all enum values
	and use sane ones.

	* app/widgets/gimpcontrollerinfo.c: fix a warning.
parent 5166c11c
2006-11-25 Simon Budig <simon@gimp.org>
* libgimpwidgets/gimpresolutionentry.c
* libgimpwidgets/gimpwidgets.def: fix typo in a function name.
* app/widgets/gimpgradienteditor.c
* app/widgets/gimppaletteeditor.c
* app/actions/gradient-editor-actions.c
* app/actions/palette-editor-actions.c: handle all enum values
and use sane ones.
* app/widgets/gimpcontrollerinfo.c: fix a warning.
2006-11-24 Simon Budig <simon@gimp.org>
* app/core/gimpdrawable.c
......
......@@ -381,7 +381,7 @@ static const GimpEnumActionEntry gradient_editor_zoom_actions[] =
{ "gradient-editor-zoom-all", GTK_STOCK_ZOOM_FIT,
N_("Zoom All"), NULL,
N_("Zoom all"),
GIMP_ZOOM_TO /* abused */, FALSE,
GIMP_ZOOM_OUT_MAX, FALSE,
GIMP_HELP_GRADIENT_EDITOR_ZOOM_ALL }
};
......
......@@ -98,7 +98,7 @@ static const GimpEnumActionEntry palette_editor_zoom_actions[] =
{ "palette-editor-zoom-all", GTK_STOCK_ZOOM_FIT,
N_("Zoom _All"), "",
N_("Zoom all"),
GIMP_ZOOM_TO /* abused */, FALSE,
GIMP_ZOOM_OUT_MAX, FALSE,
GIMP_HELP_PALETTE_EDITOR_ZOOM_ALL }
};
......
......@@ -201,7 +201,7 @@ gimp_controller_info_set_property (GObject *object,
g_object_unref (info->controller);
}
info->controller = g_value_dup_object (value);
info->controller = GIMP_CONTROLLER (g_value_dup_object (value));
if (info->controller)
{
......
......@@ -584,6 +584,8 @@ gimp_gradient_editor_zoom (GimpGradientEditor *editor,
switch (zoom_type)
{
case GIMP_ZOOM_IN_MAX:
case GIMP_ZOOM_IN_MORE:
case GIMP_ZOOM_IN:
editor->zoom_factor++;
......@@ -591,6 +593,7 @@ gimp_gradient_editor_zoom (GimpGradientEditor *editor,
value = old_value + (old_page_size - page_size) / 2.0;
break;
case GIMP_ZOOM_OUT_MORE:
case GIMP_ZOOM_OUT:
if (editor->zoom_factor <= 1)
return;
......@@ -606,6 +609,7 @@ gimp_gradient_editor_zoom (GimpGradientEditor *editor,
value = 1.0 - page_size;
break;
case GIMP_ZOOM_OUT_MAX:
case GIMP_ZOOM_TO: /* abused as ZOOM_ALL */
editor->zoom_factor = 1;
......
......@@ -520,15 +520,19 @@ gimp_palette_editor_zoom (GimpPaletteEditor *editor,
switch (zoom_type)
{
case GIMP_ZOOM_IN_MAX:
case GIMP_ZOOM_IN_MORE:
case GIMP_ZOOM_IN:
zoom_factor += 0.1;
break;
case GIMP_ZOOM_OUT_MORE:
case GIMP_ZOOM_OUT:
zoom_factor -= 0.1;
break;
case GIMP_ZOOM_TO: /* used as ZOOM_ALL */
case GIMP_ZOOM_OUT_MAX:
case GIMP_ZOOM_TO: /* abused as ZOOM_ALL */
{
gint height = editor->view->parent->parent->parent->allocation.height;
gint columns = palette->n_columns ? palette->n_columns : COLUMNS;
......
......@@ -826,8 +826,8 @@ gimp_resolution_entry_set_width (GimpResolutionEntry *gre,
* Since: GIMP 2.4
**/
void
gimp_resolution_entry_set_height_value (GimpResolutionEntry *gre,
gdouble value)
gimp_resolution_entry_set_height (GimpResolutionEntry *gre,
gdouble value)
{
g_return_if_fail (GIMP_IS_RESOLUTION_ENTRY (gre));
......
......@@ -281,8 +281,8 @@ EXPORTS
gimp_resolution_entry_grab_focus
gimp_resolution_entry_new
gimp_resolution_entry_set_activates_default
gimp_resolution_entry_set_height
gimp_resolution_entry_set_height_boundaries
gimp_resolution_entry_set_height_value
gimp_resolution_entry_set_pixel_digits
gimp_resolution_entry_set_unit
gimp_resolution_entry_set_width
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment