Commit 9abe4237 authored by Masahiro Yamada's avatar Masahiro Yamada

kconfig: add static qualifiers to fix gconf warnings

Add "static" to functions that are locally used in gconf.c
This fixes some "no previous prototype for ..." warnings.
Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent cbafbf7f
...@@ -76,7 +76,7 @@ static void conf_changed(void); ...@@ -76,7 +76,7 @@ static void conf_changed(void);
/* Helping/Debugging Functions */ /* Helping/Debugging Functions */
const char *dbg_sym_flags(int val) static const char *dbg_sym_flags(int val)
{ {
static char buf[256]; static char buf[256];
...@@ -106,8 +106,8 @@ const char *dbg_sym_flags(int val) ...@@ -106,8 +106,8 @@ const char *dbg_sym_flags(int val)
return buf; return buf;
} }
void replace_button_icon(GladeXML * xml, GdkDrawable * window, static void replace_button_icon(GladeXML *xml, GdkDrawable *window,
GtkStyle * style, gchar * btn_name, gchar ** xpm) GtkStyle *style, gchar *btn_name, gchar **xpm)
{ {
GdkPixmap *pixmap; GdkPixmap *pixmap;
GdkBitmap *mask; GdkBitmap *mask;
...@@ -125,7 +125,7 @@ void replace_button_icon(GladeXML * xml, GdkDrawable * window, ...@@ -125,7 +125,7 @@ void replace_button_icon(GladeXML * xml, GdkDrawable * window,
} }
/* Main Window Initialization */ /* Main Window Initialization */
void init_main_window(const gchar * glade_file) static void init_main_window(const gchar *glade_file)
{ {
GladeXML *xml; GladeXML *xml;
GtkWidget *widget; GtkWidget *widget;
...@@ -187,7 +187,7 @@ void init_main_window(const gchar * glade_file) ...@@ -187,7 +187,7 @@ void init_main_window(const gchar * glade_file)
gtk_widget_show(main_wnd); gtk_widget_show(main_wnd);
} }
void init_tree_model(void) static void init_tree_model(void)
{ {
gint i; gint i;
...@@ -217,7 +217,7 @@ void init_tree_model(void) ...@@ -217,7 +217,7 @@ void init_tree_model(void)
model1 = GTK_TREE_MODEL(tree1); model1 = GTK_TREE_MODEL(tree1);
} }
void init_left_tree(void) static void init_left_tree(void)
{ {
GtkTreeView *view = GTK_TREE_VIEW(tree1_w); GtkTreeView *view = GTK_TREE_VIEW(tree1_w);
GtkCellRenderer *renderer; GtkCellRenderer *renderer;
...@@ -259,7 +259,7 @@ static void renderer_edited(GtkCellRendererText * cell, ...@@ -259,7 +259,7 @@ static void renderer_edited(GtkCellRendererText * cell,
const gchar * path_string, const gchar * path_string,
const gchar * new_text, gpointer user_data); const gchar * new_text, gpointer user_data);
void init_right_tree(void) static void init_right_tree(void)
{ {
GtkTreeView *view = GTK_TREE_VIEW(tree2_w); GtkTreeView *view = GTK_TREE_VIEW(tree2_w);
GtkCellRenderer *renderer; GtkCellRenderer *renderer;
...@@ -1209,8 +1209,8 @@ static GtkTreeIter found; ...@@ -1209,8 +1209,8 @@ static GtkTreeIter found;
/* /*
* Find a menu in the GtkTree starting at parent. * Find a menu in the GtkTree starting at parent.
*/ */
GtkTreeIter *gtktree_iter_find_node(GtkTreeIter * parent, static GtkTreeIter *gtktree_iter_find_node(GtkTreeIter *parent,
struct menu *tofind) struct menu *tofind)
{ {
GtkTreeIter iter; GtkTreeIter iter;
GtkTreeIter *child = &iter; GtkTreeIter *child = &iter;
...@@ -1421,7 +1421,7 @@ static void display_list(void) ...@@ -1421,7 +1421,7 @@ static void display_list(void)
tree = tree2; tree = tree2;
} }
void fixup_rootmenu(struct menu *menu) static void fixup_rootmenu(struct menu *menu)
{ {
struct menu *child; struct menu *child;
static int menu_cnt = 0; static int menu_cnt = 0;
......
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