plug-ins/gfig/gfig-dialog.[ch] plug-ins/gfig/gfig-dobject.h put extern
2006-06-27 Sven Neumann <sven@gimp.org> * plug-ins/gfig/gfig-dialog.[ch] * plug-ins/gfig/gfig-dobject.h * plug-ins/gfig/gfig.[ch]: put extern variables where they belong. Patch from Daniel Richard G. (bug #342455).
This commit is contained in:
parent
135b6cc9dd
commit
1fe1e1da54
6 changed files with 27 additions and 9 deletions
|
|
@ -1,3 +1,10 @@
|
|||
2006-06-27 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* plug-ins/gfig/gfig-dialog.[ch]
|
||||
* plug-ins/gfig/gfig-dobject.h
|
||||
* plug-ins/gfig/gfig.[ch]: put extern variables where they belong.
|
||||
Patch from Daniel Richard G. (bug #342455).
|
||||
|
||||
2006-06-27 Sven Neumann <sven@gimp.org>
|
||||
|
||||
Based on a patch from Zbigniew Chyla:
|
||||
|
|
|
|||
|
|
@ -85,6 +85,10 @@
|
|||
#define OBJ_SELECT_LT 2
|
||||
#define OBJ_SELECT_EQ 4
|
||||
|
||||
/* Globals */
|
||||
gint undo_level; /* Last slot filled in -1 = no undo */
|
||||
GList *undo_table[MAX_UNDO];
|
||||
|
||||
/* Values when first invoked */
|
||||
SelectItVals selvals =
|
||||
{
|
||||
|
|
|
|||
|
|
@ -26,8 +26,8 @@
|
|||
#ifndef __GFIG_DIALOG_H__
|
||||
#define __GFIG_DIALOG_H__
|
||||
|
||||
gint undo_level; /* Last slot filled in -1 = no undo */
|
||||
GList *undo_table[MAX_UNDO];
|
||||
extern gint undo_level; /* Last slot filled in -1 = no undo */
|
||||
extern GList *undo_table[MAX_UNDO];
|
||||
|
||||
gboolean gfig_dialog (void);
|
||||
void gfig_dialog_action_set_sensitive (const gchar *name,
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ typedef struct
|
|||
void (*update) (GdkPoint *pnt);
|
||||
} GfigObjectClass;
|
||||
|
||||
GfigObjectClass dobj_class[10];
|
||||
extern GfigObjectClass dobj_class[10];
|
||||
|
||||
/* The object itself */
|
||||
struct _GfigObject
|
||||
|
|
|
|||
|
|
@ -91,7 +91,14 @@ static gint load_options (GFigObj *gfig,
|
|||
FILE *fp);
|
||||
/* globals */
|
||||
|
||||
GdkGC *gfig_gc;
|
||||
GdkGC *gfig_gc;
|
||||
GfigObjectClass dobj_class[10];
|
||||
GFigContext *gfig_context;
|
||||
GtkWidget *top_level_dlg;
|
||||
GimpDrawable *gfig_drawable;
|
||||
GList *gfig_list;
|
||||
gdouble org_scale_x_factor, org_scale_y_factor;
|
||||
|
||||
|
||||
/* Stuff for the preview bit */
|
||||
static gint sel_x1, sel_y1, sel_x2, sel_y2;
|
||||
|
|
|
|||
|
|
@ -152,7 +152,7 @@ typedef struct
|
|||
gboolean using_new_layer;
|
||||
} GFigContext;
|
||||
|
||||
GFigContext *gfig_context;
|
||||
extern GFigContext *gfig_context;
|
||||
|
||||
extern selection_option selopt;
|
||||
extern SelectItVals selvals;
|
||||
|
|
@ -231,9 +231,9 @@ void paint_layer_fill (gdouble x1,
|
|||
|
||||
|
||||
|
||||
GtkWidget *top_level_dlg;
|
||||
GimpDrawable *gfig_drawable;
|
||||
GList *gfig_list;
|
||||
gdouble org_scale_x_factor, org_scale_y_factor;
|
||||
extern GtkWidget *top_level_dlg;
|
||||
extern GimpDrawable *gfig_drawable;
|
||||
extern GList *gfig_list;
|
||||
extern gdouble org_scale_x_factor, org_scale_y_factor;
|
||||
|
||||
#endif /* __GFIG_H__ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue