Added more underscores to identifiers. Fixed some of the style (added
* plug-ins/gimpressionist/: Added more underscores to identifiers. Fixed some of the style (added whitespace before the '(' in function calls)
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2004-07-14 Shlomi Fish <shlomif@iglu.org.il>
|
||||||
|
|
||||||
|
* plug-ins/gimpressionist/: Added more underscores to identifiers.
|
||||||
|
Fixed some of the style (added whitespace before the '(' in function
|
||||||
|
calls)
|
||||||
|
|
||||||
2004-07-14 Philip Lafleur <plafleur@cvs.gnome.org>
|
2004-07-14 Philip Lafleur <plafleur@cvs.gnome.org>
|
||||||
|
|
||||||
* plug-ins/common/mng.c: Now writes a global palette chunk, and
|
* plug-ins/common/mng.c: Now writes a global palette chunk, and
|
||||||
|
@ -447,7 +447,7 @@ create_brushpage(GtkNotebook *notebook)
|
|||||||
gtk_box_pack_start(GTK_BOX(thispage), box1, TRUE,TRUE,0);
|
gtk_box_pack_start(GTK_BOX(thispage), box1, TRUE,TRUE,0);
|
||||||
gtk_widget_show (box1);
|
gtk_widget_show (box1);
|
||||||
|
|
||||||
view = createonecolumnlist (box1, brush_select_file);
|
view = create_one_column_list (box1, brush_select_file);
|
||||||
brush_list = view;
|
brush_list = view;
|
||||||
brush_list_store =
|
brush_list_store =
|
||||||
GTK_LIST_STORE (gtk_tree_view_get_model (GTK_TREE_VIEW (view)));
|
GTK_LIST_STORE (gtk_tree_view_get_model (GTK_TREE_VIEW (view)));
|
||||||
|
@ -28,29 +28,30 @@
|
|||||||
|
|
||||||
static GtkWidget *dlg = NULL;
|
static GtkWidget *dlg = NULL;
|
||||||
|
|
||||||
void storevals(void)
|
void store_values (void)
|
||||||
{
|
{
|
||||||
paper_store();
|
paper_store ();
|
||||||
brush_store();
|
brush_store ();
|
||||||
general_store();
|
general_store ();
|
||||||
}
|
}
|
||||||
|
|
||||||
void restorevals(void)
|
void restore_values (void)
|
||||||
{
|
{
|
||||||
brush_restore();
|
brush_restore ();
|
||||||
paper_restore();
|
paper_restore ();
|
||||||
orientation_restore();
|
orientation_restore ();
|
||||||
size_restore();
|
size_restore ();
|
||||||
place_restore();
|
place_restore ();
|
||||||
general_restore();
|
general_restore ();
|
||||||
color_restore();
|
color_restore ();
|
||||||
|
|
||||||
update_orientmap_dialog();
|
update_orientmap_dialog ();
|
||||||
}
|
}
|
||||||
|
|
||||||
GtkWidget *createonecolumnlist(GtkWidget *parent,
|
GtkWidget *create_one_column_list (GtkWidget *parent,
|
||||||
void (*changed_cb)
|
void (*changed_cb)
|
||||||
(GtkTreeSelection *selection, gpointer data))
|
(GtkTreeSelection *selection,
|
||||||
|
gpointer data))
|
||||||
{
|
{
|
||||||
GtkListStore *store;
|
GtkListStore *store;
|
||||||
GtkTreeSelection *selection;
|
GtkTreeSelection *selection;
|
||||||
@ -92,7 +93,7 @@ GtkWidget *createonecolumnlist(GtkWidget *parent,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
showabout (void)
|
show_about (void)
|
||||||
{
|
{
|
||||||
static GtkWidget *window = NULL;
|
static GtkWidget *window = NULL;
|
||||||
|
|
||||||
@ -165,11 +166,11 @@ dialog_response (GtkWidget *widget,
|
|||||||
switch (response_id)
|
switch (response_id)
|
||||||
{
|
{
|
||||||
case RESPONSE_ABOUT:
|
case RESPONSE_ABOUT:
|
||||||
showabout ();
|
show_about ();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case GTK_RESPONSE_OK:
|
case GTK_RESPONSE_OK:
|
||||||
storevals ();
|
store_values ();
|
||||||
pcvals.run = TRUE;
|
pcvals.run = TRUE;
|
||||||
gtk_widget_destroy (widget);
|
gtk_widget_destroy (widget);
|
||||||
break;
|
break;
|
||||||
@ -234,7 +235,7 @@ create_dialog (void)
|
|||||||
* This is to make sure the values from the pcvals will be reflected
|
* This is to make sure the values from the pcvals will be reflected
|
||||||
* in the GUI here. Otherwise they will be set to the defaults.
|
* in the GUI here. Otherwise they will be set to the defaults.
|
||||||
* */
|
* */
|
||||||
restorevals ();
|
restore_values ();
|
||||||
|
|
||||||
gtk_widget_show (dlg);
|
gtk_widget_show (dlg);
|
||||||
|
|
||||||
|
@ -124,37 +124,38 @@ extern gimpressionist_vals_t pcvals;
|
|||||||
|
|
||||||
/* Prototypes */
|
/* Prototypes */
|
||||||
|
|
||||||
GList *parsepath(void);
|
GList *parsepath (void);
|
||||||
void free_parsepath_cache(void);
|
void free_parsepath_cache (void);
|
||||||
|
|
||||||
void create_orientationpage(GtkNotebook *);
|
void create_orientationpage (GtkNotebook *);
|
||||||
|
|
||||||
void grabarea(void);
|
void grabarea (void);
|
||||||
void storevals(void);
|
void store_values (void);
|
||||||
void restorevals(void);
|
void restore_values (void);
|
||||||
gchar *findfile(const gchar *);
|
gchar *findfile (const gchar *);
|
||||||
|
|
||||||
void unselectall(GtkWidget *list);
|
void unselectall (GtkWidget *list);
|
||||||
void reselect(GtkWidget *list, char *fname);
|
void reselect (GtkWidget *list, char *fname);
|
||||||
void readdirintolist(char *subdir, GtkWidget *view, char *selected);
|
void readdirintolist (char *subdir, GtkWidget *view, char *selected);
|
||||||
void readdirintolist_extended(char *subdir, GtkWidget *view, char *selected,
|
void readdirintolist_extended (char *subdir, GtkWidget *view, char *selected,
|
||||||
gboolean with_filename_column,
|
gboolean with_filename_column,
|
||||||
gchar *(*get_object_name_cb)
|
gchar *(*get_object_name_cb)
|
||||||
(gchar *dir, gchar *filename, void *context),
|
(gchar *dir, gchar *filename, void *context),
|
||||||
void * context);
|
void * context);
|
||||||
void orientation_restore(void);
|
void orientation_restore (void);
|
||||||
|
|
||||||
GtkWidget *createonecolumnlist(GtkWidget *parent,
|
GtkWidget *create_one_column_list (GtkWidget *parent,
|
||||||
void (*changed_cb)
|
void (*changed_cb)
|
||||||
(GtkTreeSelection *selection, gpointer data));
|
(GtkTreeSelection *selection,
|
||||||
|
gpointer data));
|
||||||
|
|
||||||
void brush_reload(const gchar *fn, struct ppm *p);
|
void brush_reload (const gchar *fn, struct ppm *p);
|
||||||
|
|
||||||
void create_orientmap_dialog(void);
|
void create_orientmap_dialog (void);
|
||||||
void update_orientmap_dialog(void);
|
void update_orientmap_dialog (void);
|
||||||
double getdir(double x, double y, int from);
|
double getdir (double x, double y, int from);
|
||||||
|
|
||||||
void create_sizemap_dialog(void);
|
void create_sizemap_dialog (void);
|
||||||
double getsiz_proto (double x, double y, int n, smvector_t *vec,
|
double getsiz_proto (double x, double y, int n, smvector_t *vec,
|
||||||
double smstrexp, int voronoi);
|
double smstrexp, int voronoi);
|
||||||
|
|
||||||
@ -162,9 +163,9 @@ double getsiz_proto (double x, double y, int n, smvector_t *vec,
|
|||||||
void set_colorbrushes (const gchar *fn);
|
void set_colorbrushes (const gchar *fn);
|
||||||
int create_gimpressionist (void);
|
int create_gimpressionist (void);
|
||||||
|
|
||||||
double dist(double x, double y, double dx, double dy);
|
double dist (double x, double y, double dx, double dy);
|
||||||
|
|
||||||
void restore_default_values(void);
|
void restore_default_values (void);
|
||||||
|
|
||||||
GtkWidget *create_radio_button (GtkWidget *box, int orienttype,
|
GtkWidget *create_radio_button (GtkWidget *box, int orienttype,
|
||||||
void (*callback)(GtkWidget *wg, void *d),
|
void (*callback)(GtkWidget *wg, void *d),
|
||||||
|
@ -116,7 +116,7 @@ void create_paperpage(GtkNotebook *notebook)
|
|||||||
gtk_box_pack_start(GTK_BOX(thispage), box1, TRUE, TRUE, 0);
|
gtk_box_pack_start(GTK_BOX(thispage), box1, TRUE, TRUE, 0);
|
||||||
gtk_widget_show (box1);
|
gtk_widget_show (box1);
|
||||||
|
|
||||||
paperlist = view = createonecolumnlist (box1, selectpaper);
|
paperlist = view = create_one_column_list (box1, selectpaper);
|
||||||
paperstore = GTK_LIST_STORE(gtk_tree_view_get_model (GTK_TREE_VIEW (view)));
|
paperstore = GTK_LIST_STORE(gtk_tree_view_get_model (GTK_TREE_VIEW (view)));
|
||||||
selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (view));
|
selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (view));
|
||||||
|
|
||||||
|
@ -477,7 +477,7 @@ static void apply_preset(GtkWidget *w, GtkTreeSelection *selection)
|
|||||||
|
|
||||||
select_preset(preset);
|
select_preset(preset);
|
||||||
|
|
||||||
restorevals ();
|
restore_values ();
|
||||||
|
|
||||||
/* g_free (preset); */
|
/* g_free (preset); */
|
||||||
g_free (selected_preset_filename);
|
g_free (selected_preset_filename);
|
||||||
@ -622,7 +622,7 @@ static void save_preset(void)
|
|||||||
|
|
||||||
preset_name = gtk_entry_get_text (GTK_ENTRY (presetnameentry));
|
preset_name = gtk_entry_get_text (GTK_ENTRY (presetnameentry));
|
||||||
thispath = parsepath ();
|
thispath = parsepath ();
|
||||||
storevals ();
|
store_values ();
|
||||||
|
|
||||||
if (!thispath)
|
if (!thispath)
|
||||||
{
|
{
|
||||||
|
@ -118,7 +118,7 @@ updatepreview (GtkWidget *wg, gpointer d)
|
|||||||
}
|
}
|
||||||
if(d)
|
if(d)
|
||||||
{
|
{
|
||||||
storevals();
|
store_values ();
|
||||||
|
|
||||||
if(GPOINTER_TO_INT(d) != 2)
|
if(GPOINTER_TO_INT(d) != 2)
|
||||||
repaint(&preview_ppm, &alpha_ppm);
|
repaint(&preview_ppm, &alpha_ppm);
|
||||||
|
Reference in New Issue
Block a user