mirror of https://github.com/GNOME/gimp.git
trailing whitespace.
2004-11-01 Michael Natterer <mitch@gimp.org> * app/actions/drawable-actions.c: trailing whitespace. * app/actions/drawable-commands.[ch]: partly revert alphabetical ordering. Instead, group them as in drawable-actions.c and order by alphabet inside the groups (different ordering in *-actions.c and *-commands.c is inconvenient for the usual workflow of editing both files at the same time). * app/core/gimpdrawable-levels.h: indentation.
This commit is contained in:
parent
6345f24f42
commit
2ab62df91a
12
ChangeLog
12
ChangeLog
|
@ -1,3 +1,15 @@
|
|||
2004-11-01 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/actions/drawable-actions.c: trailing whitespace.
|
||||
|
||||
* app/actions/drawable-commands.[ch]: partly revert alphabetical
|
||||
ordering. Instead, group them as in drawable-actions.c and order
|
||||
by alphabet inside the groups (different ordering in *-actions.c
|
||||
and *-commands.c is inconvenient for the usual workflow of editing
|
||||
both files at the same time).
|
||||
|
||||
* app/core/gimpdrawable-levels.h: indentation.
|
||||
|
||||
2004-11-01 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* themes/Small/gtkrc: don't change GtkDialog::button_spacing and
|
||||
|
|
|
@ -101,6 +101,101 @@ drawable_equalize_cmd_callback (GtkAction *action,
|
|||
gimp_image_flush (gimage);
|
||||
}
|
||||
|
||||
void
|
||||
drawable_invert_cmd_callback (GtkAction *action,
|
||||
gpointer data)
|
||||
{
|
||||
GimpImage *gimage;
|
||||
GimpDrawable *drawable;
|
||||
return_if_no_drawable (gimage, drawable, data);
|
||||
|
||||
if (gimp_drawable_is_indexed (drawable))
|
||||
{
|
||||
g_message (_("Invert does not operate on indexed layers."));
|
||||
return;
|
||||
}
|
||||
|
||||
gimp_drawable_invert (drawable);
|
||||
gimp_image_flush (gimage);
|
||||
}
|
||||
|
||||
void
|
||||
drawable_offset_cmd_callback (GtkAction *action,
|
||||
gpointer data)
|
||||
{
|
||||
GimpImage *gimage;
|
||||
GimpDrawable *drawable;
|
||||
GtkWidget *widget;
|
||||
GtkWidget *dialog;
|
||||
return_if_no_drawable (gimage, drawable, data);
|
||||
return_if_no_widget (widget, data);
|
||||
|
||||
dialog = offset_dialog_new (drawable, widget);
|
||||
gtk_widget_show (dialog);
|
||||
}
|
||||
|
||||
void
|
||||
drawable_linked_cmd_callback (GtkAction *action,
|
||||
gpointer data)
|
||||
{
|
||||
GimpImage *gimage;
|
||||
GimpDrawable *drawable;
|
||||
gboolean linked;
|
||||
return_if_no_drawable (gimage, drawable, data);
|
||||
|
||||
linked = gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action));
|
||||
|
||||
if (GIMP_IS_LAYER_MASK (drawable))
|
||||
drawable =
|
||||
GIMP_DRAWABLE (gimp_layer_mask_get_layer (GIMP_LAYER_MASK (drawable)));
|
||||
|
||||
if (linked != gimp_item_get_linked (GIMP_ITEM (drawable)))
|
||||
{
|
||||
GimpUndo *undo;
|
||||
gboolean push_undo = TRUE;
|
||||
|
||||
undo = gimp_image_undo_can_compress (gimage, GIMP_TYPE_ITEM_UNDO,
|
||||
GIMP_UNDO_ITEM_LINKED);
|
||||
|
||||
if (undo && GIMP_ITEM_UNDO (undo)->item == GIMP_ITEM (drawable))
|
||||
push_undo = FALSE;
|
||||
|
||||
gimp_item_set_linked (GIMP_ITEM (drawable), linked, push_undo);
|
||||
gimp_image_flush (gimage);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
drawable_visible_cmd_callback (GtkAction *action,
|
||||
gpointer data)
|
||||
{
|
||||
GimpImage *gimage;
|
||||
GimpDrawable *drawable;
|
||||
gboolean visible;
|
||||
return_if_no_drawable (gimage, drawable, data);
|
||||
|
||||
visible = gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action));
|
||||
|
||||
if (GIMP_IS_LAYER_MASK (drawable))
|
||||
drawable =
|
||||
GIMP_DRAWABLE (gimp_layer_mask_get_layer (GIMP_LAYER_MASK (drawable)));
|
||||
|
||||
if (visible != gimp_item_get_visible (GIMP_ITEM (drawable)))
|
||||
{
|
||||
GimpUndo *undo;
|
||||
gboolean push_undo = TRUE;
|
||||
|
||||
undo = gimp_image_undo_can_compress (gimage, GIMP_TYPE_ITEM_UNDO,
|
||||
GIMP_UNDO_ITEM_VISIBILITY);
|
||||
|
||||
if (undo && GIMP_ITEM_UNDO (undo)->item == GIMP_ITEM (drawable))
|
||||
push_undo = FALSE;
|
||||
|
||||
gimp_item_set_visible (GIMP_ITEM (drawable), visible, push_undo);
|
||||
gimp_image_flush (gimage);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
drawable_flip_cmd_callback (GtkAction *action,
|
||||
gint value,
|
||||
|
@ -149,70 +244,6 @@ drawable_flip_cmd_callback (GtkAction *action,
|
|||
gimp_image_flush (gimage);
|
||||
}
|
||||
|
||||
void
|
||||
drawable_invert_cmd_callback (GtkAction *action,
|
||||
gpointer data)
|
||||
{
|
||||
GimpImage *gimage;
|
||||
GimpDrawable *drawable;
|
||||
return_if_no_drawable (gimage, drawable, data);
|
||||
|
||||
if (gimp_drawable_is_indexed (drawable))
|
||||
{
|
||||
g_message (_("Invert does not operate on indexed layers."));
|
||||
return;
|
||||
}
|
||||
|
||||
gimp_drawable_invert (drawable);
|
||||
gimp_image_flush (gimage);
|
||||
}
|
||||
|
||||
void
|
||||
drawable_linked_cmd_callback (GtkAction *action,
|
||||
gpointer data)
|
||||
{
|
||||
GimpImage *gimage;
|
||||
GimpDrawable *drawable;
|
||||
gboolean linked;
|
||||
return_if_no_drawable (gimage, drawable, data);
|
||||
|
||||
linked = gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action));
|
||||
|
||||
if (GIMP_IS_LAYER_MASK (drawable))
|
||||
drawable =
|
||||
GIMP_DRAWABLE (gimp_layer_mask_get_layer (GIMP_LAYER_MASK (drawable)));
|
||||
|
||||
if (linked != gimp_item_get_linked (GIMP_ITEM (drawable)))
|
||||
{
|
||||
GimpUndo *undo;
|
||||
gboolean push_undo = TRUE;
|
||||
|
||||
undo = gimp_image_undo_can_compress (gimage, GIMP_TYPE_ITEM_UNDO,
|
||||
GIMP_UNDO_ITEM_LINKED);
|
||||
|
||||
if (undo && GIMP_ITEM_UNDO (undo)->item == GIMP_ITEM (drawable))
|
||||
push_undo = FALSE;
|
||||
|
||||
gimp_item_set_linked (GIMP_ITEM (drawable), linked, push_undo);
|
||||
gimp_image_flush (gimage);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
drawable_offset_cmd_callback (GtkAction *action,
|
||||
gpointer data)
|
||||
{
|
||||
GimpImage *gimage;
|
||||
GimpDrawable *drawable;
|
||||
GtkWidget *widget;
|
||||
GtkWidget *dialog;
|
||||
return_if_no_drawable (gimage, drawable, data);
|
||||
return_if_no_widget (widget, data);
|
||||
|
||||
dialog = offset_dialog_new (drawable, widget);
|
||||
gtk_widget_show (dialog);
|
||||
}
|
||||
|
||||
void
|
||||
drawable_rotate_cmd_callback (GtkAction *action,
|
||||
gint value,
|
||||
|
@ -254,34 +285,3 @@ drawable_rotate_cmd_callback (GtkAction *action,
|
|||
|
||||
gimp_image_flush (gimage);
|
||||
}
|
||||
|
||||
void
|
||||
drawable_visible_cmd_callback (GtkAction *action,
|
||||
gpointer data)
|
||||
{
|
||||
GimpImage *gimage;
|
||||
GimpDrawable *drawable;
|
||||
gboolean visible;
|
||||
return_if_no_drawable (gimage, drawable, data);
|
||||
|
||||
visible = gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action));
|
||||
|
||||
if (GIMP_IS_LAYER_MASK (drawable))
|
||||
drawable =
|
||||
GIMP_DRAWABLE (gimp_layer_mask_get_layer (GIMP_LAYER_MASK (drawable)));
|
||||
|
||||
if (visible != gimp_item_get_visible (GIMP_ITEM (drawable)))
|
||||
{
|
||||
GimpUndo *undo;
|
||||
gboolean push_undo = TRUE;
|
||||
|
||||
undo = gimp_image_undo_can_compress (gimage, GIMP_TYPE_ITEM_UNDO,
|
||||
GIMP_UNDO_ITEM_VISIBILITY);
|
||||
|
||||
if (undo && GIMP_ITEM_UNDO (undo)->item == GIMP_ITEM (drawable))
|
||||
push_undo = FALSE;
|
||||
|
||||
gimp_item_set_visible (GIMP_ITEM (drawable), visible, push_undo);
|
||||
gimp_image_flush (gimage);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,20 +26,22 @@ void drawable_desaturate_cmd_callback (GtkAction *action,
|
|||
gpointer data);
|
||||
void drawable_equalize_cmd_callback (GtkAction *action,
|
||||
gpointer data);
|
||||
void drawable_flip_cmd_callback (GtkAction *action,
|
||||
gint value,
|
||||
gpointer data);
|
||||
void drawable_invert_cmd_callback (GtkAction *action,
|
||||
gpointer data);
|
||||
void drawable_linked_cmd_callback (GtkAction *action,
|
||||
gpointer data);
|
||||
void drawable_offset_cmd_callback (GtkAction *action,
|
||||
gpointer data);
|
||||
void drawable_rotate_cmd_callback (GtkAction *action,
|
||||
gint value,
|
||||
|
||||
void drawable_linked_cmd_callback (GtkAction *action,
|
||||
gpointer data);
|
||||
void drawable_visible_cmd_callback (GtkAction *action,
|
||||
gpointer data);
|
||||
|
||||
void drawable_flip_cmd_callback (GtkAction *action,
|
||||
gint value,
|
||||
gpointer data);
|
||||
void drawable_rotate_cmd_callback (GtkAction *action,
|
||||
gint value,
|
||||
gpointer data);
|
||||
|
||||
|
||||
#endif /* __DRAWABLE_COMMANDS_H__ */
|
||||
|
|
|
@ -19,18 +19,18 @@
|
|||
#ifndef __GIMP_DRAWABLE_LEVELS_H__
|
||||
#define __GIMP_DRAWABLE_LEVELS_H__
|
||||
|
||||
void
|
||||
gimp_drawable_levels (GimpDrawable *drawable,
|
||||
GimpContext *context,
|
||||
gint32 channel,
|
||||
gint32 low_input,
|
||||
gint32 high_input,
|
||||
gdouble gamma,
|
||||
gint32 low_output,
|
||||
gint32 high_output);
|
||||
|
||||
void
|
||||
gimp_drawable_levels_auto (GimpDrawable *drawable,
|
||||
GimpContext *context);
|
||||
void gimp_drawable_levels (GimpDrawable *drawable,
|
||||
GimpContext *context,
|
||||
gint32 channel,
|
||||
gint32 low_input,
|
||||
gint32 high_input,
|
||||
gdouble gamma,
|
||||
gint32 low_output,
|
||||
gint32 high_output);
|
||||
|
||||
void gimp_drawable_levels_auto (GimpDrawable *drawable,
|
||||
GimpContext *context);
|
||||
|
||||
|
||||
#endif /* __GIMP_DRAWABLE_LEVELS_H__ */
|
||||
|
|
Loading…
Reference in New Issue