Fix various compile time warnings.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@9120 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton
2003-08-19 05:02:25 +00:00
parent d77028a095
commit cb8ba021dc
24 changed files with 111 additions and 74 deletions

View File

@@ -5,11 +5,13 @@
/* some code for making arbitrary GtkButtons that act like toolbar
* buttons */
#if 0
static GtkWidget *tool_button_new (GType button_type,
const gchar *text,
GtkWidget *icon);
static GtkWidget *tool_button_get_label (GtkWidget *button);
static GtkWidget *tool_button_get_icon (GtkWidget *button);
#endif
enum {
ACTIVATE,
@@ -509,8 +511,10 @@ connect_proxy (EggAction *action, GtkWidget *proxy)
}
else if (EGG_IS_TOOL_BUTTON (proxy))
{
#if 0
GtkWidget *label;
GtkWidget *icon;
#endif
/* toolbar button specific synchronisers ... */
/* synchronise the label */
@@ -703,7 +707,9 @@ void
egg_action_disconnect_proxy (EggAction *action,
GtkWidget *proxy)
{
#if 0
EggAction *prev_action;
#endif
g_return_if_fail (EGG_IS_ACTION (action));
g_return_if_fail (GTK_IS_WIDGET (proxy));
@@ -770,6 +776,7 @@ egg_action_set_accel_path (EggAction *action, const gchar *accel_path)
/* ---- code to create sort-of-toolbar-buttons ---- */
#if 0
static GtkWidget *
tool_button_get_label (GtkWidget *button)
{
@@ -966,3 +973,4 @@ tool_button_new (GType button_type, const gchar *text, GtkWidget *icon)
return button;
}
#endif

View File

@@ -929,7 +929,9 @@ update_node (EggMenuMerge *self, GNode *node)
EggMenuMergeNode *info;
GNode *child;
EggAction *action;
#if 0
GList *tmp;
#endif
g_return_if_fail (node != NULL);
g_return_if_fail (NODE_INFO(node) != NULL);

View File

@@ -20,6 +20,7 @@
#include "eggmarshalers.h"
#include <string.h>
#include <unistd.h>
#include <libxml/tree.h>
#include <gdk/gdkproperty.h>
@@ -134,7 +135,7 @@ egg_toolbars_model_to_xml (EggToolbarsModel *t)
return doc;
}
gboolean
static gboolean
safe_save_xml (const char *xml_file, xmlDocPtr doc)
{
char *tmp_file;
@@ -313,7 +314,7 @@ egg_toolbars_model_add_separator (EggToolbarsModel *t,
toolbar_position, real_position);
}
gboolean
static gboolean
impl_add_item (EggToolbarsModel *t,
int toolbar_position,
int position,
@@ -325,9 +326,9 @@ impl_add_item (EggToolbarsModel *t,
EggToolbarsItem *item;
int real_position;
g_return_if_fail (IS_EGG_TOOLBARS_MODEL (t));
g_return_if_fail (id != NULL);
g_return_if_fail (type != NULL);
g_return_val_if_fail (IS_EGG_TOOLBARS_MODEL (t), FALSE);
g_return_val_if_fail (id != NULL, FALSE);
g_return_val_if_fail (type != NULL, FALSE);
parent_node = g_node_nth_child (t->priv->toolbars, toolbar_position);
item = toolbars_item_new (id, type, FALSE);
@@ -440,7 +441,7 @@ egg_toolbars_model_load (EggToolbarsModel *t,
xmlFreeDoc (doc);
}
char *
static char *
impl_get_item_id (EggToolbarsModel *t,
const char *type,
const char *name)
@@ -453,7 +454,7 @@ impl_get_item_id (EggToolbarsModel *t,
return NULL;
}
char *
static char *
impl_get_item_name (EggToolbarsModel *t,
const char *type,
const char *id)
@@ -466,7 +467,7 @@ impl_get_item_name (EggToolbarsModel *t,
return NULL;
}
char *
static char *
impl_get_item_type (EggToolbarsModel *t,
GdkAtom type)
{