Commit 0b62fe46 authored by Masahiro Yamada's avatar Masahiro Yamada

kconfig: gconf: move conf_changed() definition up

Define conf_changed() before its call site to remove the forward
declaration.
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent 300bf53e
...@@ -65,7 +65,6 @@ static void display_list(void); ...@@ -65,7 +65,6 @@ static void display_list(void);
static void display_tree(struct menu *menu); static void display_tree(struct menu *menu);
static void display_tree_part(void); static void display_tree_part(void);
static void update_tree(struct menu *src, GtkTreeIter * dst); static void update_tree(struct menu *src, GtkTreeIter * dst);
static void conf_changed(void);
static 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)
...@@ -85,6 +84,13 @@ static void replace_button_icon(GladeXML *xml, GdkDrawable *window, ...@@ -85,6 +84,13 @@ static void replace_button_icon(GladeXML *xml, GdkDrawable *window,
gtk_tool_button_set_icon_widget(button, image); gtk_tool_button_set_icon_widget(button, image);
} }
static void conf_changed(void)
{
bool changed = conf_get_changed();
gtk_widget_set_sensitive(save_btn, changed);
gtk_widget_set_sensitive(save_menu_item, changed);
}
/* Main Window Initialization */ /* Main Window Initialization */
static void init_main_window(const gchar *glade_file) static void init_main_window(const gchar *glade_file)
{ {
...@@ -1445,10 +1451,3 @@ int main(int ac, char *av[]) ...@@ -1445,10 +1451,3 @@ int main(int ac, char *av[])
return 0; return 0;
} }
static void conf_changed(void)
{
bool changed = conf_get_changed();
gtk_widget_set_sensitive(save_btn, changed);
gtk_widget_set_sensitive(save_menu_item, changed);
}
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