mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00
converted tabs to spaces.
2006-04-12 Sven Neumann <sven@gimp.org> * libgimp*/gimp*.[ch]: converted tabs to spaces.
This commit is contained in:
parent
8ed41a7c60
commit
f2df31a50e
101 changed files with 2720 additions and 2716 deletions
|
@ -42,13 +42,13 @@ enum
|
|||
|
||||
|
||||
static void gimp_aspect_preview_get_property (GObject *object,
|
||||
guint property_id,
|
||||
GValue *value,
|
||||
GParamSpec *pspec);
|
||||
guint property_id,
|
||||
GValue *value,
|
||||
GParamSpec *pspec);
|
||||
static void gimp_aspect_preview_set_property (GObject *object,
|
||||
guint property_id,
|
||||
const GValue *value,
|
||||
GParamSpec *pspec);
|
||||
guint property_id,
|
||||
const GValue *value,
|
||||
GParamSpec *pspec);
|
||||
static void gimp_aspect_preview_style_set (GtkWidget *widget,
|
||||
GtkStyle *prev_style);
|
||||
static void gimp_aspect_preview_draw (GimpPreview *preview);
|
||||
|
@ -57,7 +57,7 @@ static void gimp_aspect_preview_draw_buffer (GimpPreview *preview,
|
|||
gint rowstride);
|
||||
|
||||
static void gimp_aspect_preview_set_drawable (GimpAspectPreview *preview,
|
||||
GimpDrawable *drawable);
|
||||
GimpDrawable *drawable);
|
||||
|
||||
|
||||
G_DEFINE_TYPE (GimpAspectPreview, gimp_aspect_preview, GIMP_TYPE_PREVIEW);
|
||||
|
@ -87,8 +87,8 @@ gimp_aspect_preview_class_init (GimpAspectPreviewClass *klass)
|
|||
*/
|
||||
g_object_class_install_property (object_class, PROP_DRAWABLE,
|
||||
g_param_spec_pointer ("drawable", NULL, NULL,
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -102,9 +102,9 @@ gimp_aspect_preview_init (GimpAspectPreview *preview)
|
|||
|
||||
static void
|
||||
gimp_aspect_preview_get_property (GObject *object,
|
||||
guint property_id,
|
||||
GValue *value,
|
||||
GParamSpec *pspec)
|
||||
guint property_id,
|
||||
GValue *value,
|
||||
GParamSpec *pspec)
|
||||
{
|
||||
GimpAspectPreview *preview = GIMP_ASPECT_PREVIEW (object);
|
||||
|
||||
|
@ -122,9 +122,9 @@ gimp_aspect_preview_get_property (GObject *object,
|
|||
|
||||
static void
|
||||
gimp_aspect_preview_set_property (GObject *object,
|
||||
guint property_id,
|
||||
const GValue *value,
|
||||
GParamSpec *pspec)
|
||||
guint property_id,
|
||||
const GValue *value,
|
||||
GParamSpec *pspec)
|
||||
{
|
||||
GimpAspectPreview *preview = GIMP_ASPECT_PREVIEW (object);
|
||||
|
||||
|
@ -132,7 +132,7 @@ gimp_aspect_preview_set_property (GObject *object,
|
|||
{
|
||||
case PROP_DRAWABLE:
|
||||
gimp_aspect_preview_set_drawable (preview,
|
||||
g_value_get_pointer (value));
|
||||
g_value_get_pointer (value));
|
||||
break;
|
||||
|
||||
default:
|
||||
|
@ -238,7 +238,7 @@ gimp_aspect_preview_draw_buffer (GimpPreview *preview,
|
|||
|
||||
static void
|
||||
gimp_aspect_preview_set_drawable (GimpAspectPreview *preview,
|
||||
GimpDrawable *drawable)
|
||||
GimpDrawable *drawable)
|
||||
{
|
||||
gint width, height;
|
||||
gint max_width, max_height;
|
||||
|
@ -259,12 +259,12 @@ gimp_aspect_preview_set_drawable (GimpAspectPreview *preview,
|
|||
max_width = (width * max_height) / height;
|
||||
}
|
||||
gimp_preview_set_bounds (GIMP_PREVIEW (preview),
|
||||
0, 0, max_width, max_height);
|
||||
0, 0, max_width, max_height);
|
||||
|
||||
if (height > 0)
|
||||
g_object_set (GIMP_PREVIEW (preview)->frame,
|
||||
"ratio", (gdouble) width / (gdouble) height,
|
||||
NULL);
|
||||
"ratio", (gdouble) width / (gdouble) height,
|
||||
NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -295,8 +295,8 @@ gimp_aspect_preview_new (GimpDrawable *drawable,
|
|||
g_return_val_if_fail (drawable != NULL, NULL);
|
||||
|
||||
preview = g_object_new (GIMP_TYPE_ASPECT_PREVIEW,
|
||||
"drawable", drawable,
|
||||
NULL);
|
||||
"drawable", drawable,
|
||||
NULL);
|
||||
|
||||
if (toggle)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue