normalized some variables in the module and fixed some indentation.

* plug-ins/gimpressionist/orientation.c: normalized some variables
in the module and fixed some indentation.
This commit is contained in:
Shlomi Fish
2004-07-19 16:19:01 +00:00
parent a11dbef340
commit e113a667d6
2 changed files with 33 additions and 28 deletions

View File

@ -1,3 +1,8 @@
2004-07-19 Shlomi Fish <shlomif@iglu.org.il>
* plug-ins/gimpressionist/orientation.c: normalized some variables
in the module and fixed some indentation.
2004-07-19 Helvetix Victorinox <helvetix@gimp.org>
* app/composite/gimp-composite-mmx.c (gimp_composite_addition_rgba8_rgba8_rgba8_mmx):

View File

@ -9,10 +9,10 @@
#include "libgimp/stdplugins-intl.h"
static GtkWidget *orientradio[NUMORIENTRADIO];
static GtkObject *orientnumadjust = NULL;
static GtkObject *orientfirstadjust = NULL;
static GtkObject *orientlastadjust = NULL;
static GtkWidget *orient_radio[NUMORIENTRADIO];
static GtkObject *orient_num_adjust = NULL;
static GtkObject *orient_first_adjust = NULL;
static GtkObject *orient_last_adjust = NULL;
static void orientation_store (GtkWidget *wg, void *d)
@ -23,26 +23,26 @@ static void orientation_store(GtkWidget *wg, void *d)
void orientation_restore(void)
{
gtk_toggle_button_set_active (
GTK_TOGGLE_BUTTON(orientradio[pcvals.orienttype]),
GTK_TOGGLE_BUTTON (orient_radio[pcvals.orienttype]),
TRUE
);
gtk_adjustment_set_value (
GTK_ADJUSTMENT(orientnumadjust),
GTK_ADJUSTMENT (orient_num_adjust),
pcvals.orientnum
);
gtk_adjustment_set_value (
GTK_ADJUSTMENT(orientfirstadjust),
GTK_ADJUSTMENT (orient_first_adjust),
pcvals.orientfirst
);
gtk_adjustment_set_value (
GTK_ADJUSTMENT(orientlastadjust),
GTK_ADJUSTMENT (orient_last_adjust),
pcvals.orientlast
);
}
static void create_orientmap_dialog_helper (void)
{
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (orientradio[7]), TRUE);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (orient_radio[7]), TRUE);
create_orientmap_dialog ();
return;
}
@ -54,7 +54,7 @@ static void create_orientradio_button (GtkWidget *box, int orienttype,
)
{
create_radio_button (box, orienttype, orientation_store, label,
help_string, radio_group, orientradio);
help_string, radio_group, orient_radio);
return;
}
@ -77,7 +77,7 @@ create_orientationpage (GtkNotebook *notebook)
gtk_box_pack_start (GTK_BOX (thispage), table, FALSE, FALSE, 0);
gtk_widget_show (table);
orientnumadjust =
orient_num_adjust =
gimp_scale_entry_new (GTK_TABLE (table), 0, 0,
_("Directions:"),
150, -1, pcvals.orientnum,
@ -85,11 +85,11 @@ create_orientationpage (GtkNotebook *notebook)
TRUE, 0, 0,
_("The number of directions (i.e. brushes) to use"),
NULL);
g_signal_connect (orientnumadjust, "value_changed",
g_signal_connect (orient_num_adjust, "value_changed",
G_CALLBACK (gimp_int_adjustment_update),
&pcvals.orientnum);
orientfirstadjust =
orient_first_adjust =
gimp_scale_entry_new (GTK_TABLE (table), 0, 1,
_("Start angle:"),
150, -1, pcvals.orientfirst,
@ -97,11 +97,11 @@ create_orientationpage (GtkNotebook *notebook)
TRUE, 0, 0,
_("The starting angle of the first brush to create"),
NULL);
g_signal_connect (orientfirstadjust, "value_changed",
g_signal_connect (orient_first_adjust, "value_changed",
G_CALLBACK (gimp_double_adjustment_update),
&pcvals.orientfirst);
orientlastadjust =
orient_last_adjust =
gimp_scale_entry_new (GTK_TABLE (table), 0, 2,
_("Angle span:"),
150, -1, pcvals.orientlast,
@ -109,7 +109,7 @@ create_orientationpage (GtkNotebook *notebook)
TRUE, 0, 0,
_("The angle span of the first brush to create"),
NULL);
g_signal_connect (orientlastadjust, "value_changed",
g_signal_connect (orient_last_adjust, "value_changed",
G_CALLBACK (gimp_double_adjustment_update),
&pcvals.orientlast);