Commit 42961b9d authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

app/dialog_handler.c Removed trailing comma from enums to avoid compiler

1999-12-03  Michael Natterer  <mitch@gimp.org>

	* app/dialog_handler.c
	* app/ops_buttons.h: Removed trailing comma from enums to avoid
	compiler warnings with Irix CC. Fixes bugs #3994 and #3995.
parent 19e856f0
1999-12-03 Michael Natterer <mitch@gimp.org>
* app/dialog_handler.c
* app/ops_buttons.h: Removed trailing comma from enums to avoid
compiler warnings with Irix CC. Fixes bugs #3994 and #3995.
Thu Dec 2 23:49:17 GMT 1999 Andy Thomas <alt@gimp.org>
* app/bezier_select.c
......
......@@ -27,7 +27,7 @@ typedef enum
{
INVISIBLE,
VISIBLE,
UNKNOWN,
UNKNOWN
} VisibilityState;
typedef struct _DialogState DialogState;
......@@ -38,15 +38,15 @@ struct _DialogState
VisibilityState saved_state;
};
/* This keeps track of the state the dialogs are in */
/* ie how many times we have pressed the tab key */
/* This keeps track of the state the dialogs are in
* ie how many times we have pressed the tab key
*/
typedef enum
{
SHOW_ALL,
HIDE_ALL,
SHOW_TOOLBOX,
LAST_SHOW_STATE,
LAST_SHOW_STATE
} ShowState;
/* Start off with all dialogs showing */
......@@ -64,7 +64,7 @@ static GSList * active_dialogs = NULL;
static DialogState * toolbox_shell = NULL;
static DialogState * fileload_shell = NULL;
/* Private */
/* Private */
/* Hide all currently registered dialogs */
......@@ -109,7 +109,6 @@ dialog_show_all (void)
/* Handle the tool box in a special way */
static void
dialog_hide_toolbox (void)
{
......@@ -133,7 +132,6 @@ dialog_show_toolbox (void)
}
}
/* Set hourglass cursor on all currently registered dialogs */
void
......@@ -257,11 +255,11 @@ dialog_unregister (GtkWidget *dialog)
void
dialog_toggle (void)
{
if(doing_update == FALSE)
doing_update = TRUE;
else
if (doing_update)
return;
doing_update = TRUE;
switch (dialogs_showing)
{
case SHOW_ALL:
......@@ -289,4 +287,3 @@ dialog_toggle (void)
doing_update = FALSE;
}
......@@ -18,8 +18,6 @@
#ifndef __OPS_BUTTONS_H__
#define __OPS_BUTTONS_H__
typedef struct _OpsButton OpsButton;
typedef enum
{
OPS_BUTTON_MODIFIER_NONE,
......@@ -33,14 +31,17 @@ typedef enum
typedef enum
{
OPS_BUTTON_NORMAL,
OPS_BUTTON_RADIO,
OPS_BUTTON_RADIO
} OpsButtonType;
typedef struct _OpsButton OpsButton;
struct _OpsButton
{
gchar **xpm_data; /* xpm data for the button */
GtkSignalFunc callback; /* callback function */
GtkSignalFunc *ext_callbacks; /* callback functions when modifiers are pressed */
GtkSignalFunc *ext_callbacks; /* callback functions when
* modifiers are pressed */
gchar *tooltip;
gchar *private_tip;
GtkWidget *widget; /* the button widget */
......@@ -54,4 +55,3 @@ GtkWidget * ops_button_box_new (GtkWidget *parent,
OpsButtonType ops_type);
#endif /* __OPS_BUTTONS_H__ */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment