.. | .. |
---|
1 | | -/* Hey EMACS -*- linux-c -*- */ |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0 |
---|
2 | 2 | /* |
---|
3 | | - * |
---|
4 | 3 | * Copyright (C) 2002-2003 Romain Lievin <roms@tilp.info> |
---|
5 | | - * Released under the terms of the GNU GPL v2.0. |
---|
6 | | - * |
---|
7 | 4 | */ |
---|
8 | 5 | |
---|
9 | 6 | #ifdef HAVE_CONFIG_H |
---|
.. | .. |
---|
12 | 9 | |
---|
13 | 10 | #include <stdlib.h> |
---|
14 | 11 | #include "lkc.h" |
---|
15 | | -#include "images.c" |
---|
| 12 | +#include "images.h" |
---|
16 | 13 | |
---|
17 | 14 | #include <glade/glade.h> |
---|
18 | 15 | #include <gtk/gtk.h> |
---|
.. | .. |
---|
21 | 18 | |
---|
22 | 19 | #include <stdio.h> |
---|
23 | 20 | #include <string.h> |
---|
| 21 | +#include <strings.h> |
---|
24 | 22 | #include <unistd.h> |
---|
25 | 23 | #include <time.h> |
---|
26 | 24 | |
---|
.. | .. |
---|
78 | 76 | static void conf_changed(void); |
---|
79 | 77 | |
---|
80 | 78 | /* Helping/Debugging Functions */ |
---|
81 | | - |
---|
82 | | -const char *dbg_sym_flags(int val) |
---|
| 79 | +#ifdef DEBUG |
---|
| 80 | +static const char *dbg_sym_flags(int val) |
---|
83 | 81 | { |
---|
84 | 82 | static char buf[256]; |
---|
85 | 83 | |
---|
.. | .. |
---|
108 | 106 | |
---|
109 | 107 | return buf; |
---|
110 | 108 | } |
---|
| 109 | +#endif |
---|
111 | 110 | |
---|
112 | | -void replace_button_icon(GladeXML * xml, GdkDrawable * window, |
---|
113 | | - GtkStyle * style, gchar * btn_name, gchar ** xpm) |
---|
| 111 | +static void replace_button_icon(GladeXML *xml, GdkDrawable *window, |
---|
| 112 | + GtkStyle *style, gchar *btn_name, gchar **xpm) |
---|
114 | 113 | { |
---|
115 | 114 | GdkPixmap *pixmap; |
---|
116 | 115 | GdkBitmap *mask; |
---|
.. | .. |
---|
128 | 127 | } |
---|
129 | 128 | |
---|
130 | 129 | /* Main Window Initialization */ |
---|
131 | | -void init_main_window(const gchar * glade_file) |
---|
| 130 | +static void init_main_window(const gchar *glade_file) |
---|
132 | 131 | { |
---|
133 | 132 | GladeXML *xml; |
---|
134 | 133 | GtkWidget *widget; |
---|
.. | .. |
---|
190 | 189 | gtk_widget_show(main_wnd); |
---|
191 | 190 | } |
---|
192 | 191 | |
---|
193 | | -void init_tree_model(void) |
---|
| 192 | +static void init_tree_model(void) |
---|
194 | 193 | { |
---|
195 | 194 | gint i; |
---|
196 | 195 | |
---|
.. | .. |
---|
220 | 219 | model1 = GTK_TREE_MODEL(tree1); |
---|
221 | 220 | } |
---|
222 | 221 | |
---|
223 | | -void init_left_tree(void) |
---|
| 222 | +static void init_left_tree(void) |
---|
224 | 223 | { |
---|
225 | 224 | GtkTreeView *view = GTK_TREE_VIEW(tree1_w); |
---|
226 | 225 | GtkCellRenderer *renderer; |
---|
.. | .. |
---|
262 | 261 | const gchar * path_string, |
---|
263 | 262 | const gchar * new_text, gpointer user_data); |
---|
264 | 263 | |
---|
265 | | -void init_right_tree(void) |
---|
| 264 | +static void init_right_tree(void) |
---|
266 | 265 | { |
---|
267 | 266 | GtkTreeView *view = GTK_TREE_VIEW(tree2_w); |
---|
268 | 267 | GtkCellRenderer *renderer; |
---|
.. | .. |
---|
640 | 639 | void on_introduction1_activate(GtkMenuItem * menuitem, gpointer user_data) |
---|
641 | 640 | { |
---|
642 | 641 | GtkWidget *dialog; |
---|
643 | | - const gchar *intro_text = |
---|
| 642 | + const gchar *intro_text = |
---|
644 | 643 | "Welcome to gkc, the GTK+ graphical configuration tool\n" |
---|
645 | 644 | "For each option, a blank box indicates the feature is disabled, a\n" |
---|
646 | 645 | "check indicates it is enabled, and a dot indicates that it is to\n" |
---|
.. | .. |
---|
1212 | 1211 | /* |
---|
1213 | 1212 | * Find a menu in the GtkTree starting at parent. |
---|
1214 | 1213 | */ |
---|
1215 | | -GtkTreeIter *gtktree_iter_find_node(GtkTreeIter * parent, |
---|
1216 | | - struct menu *tofind) |
---|
| 1214 | +static GtkTreeIter *gtktree_iter_find_node(GtkTreeIter *parent, |
---|
| 1215 | + struct menu *tofind) |
---|
1217 | 1216 | { |
---|
1218 | 1217 | GtkTreeIter iter; |
---|
1219 | 1218 | GtkTreeIter *child = &iter; |
---|
.. | .. |
---|
1424 | 1423 | tree = tree2; |
---|
1425 | 1424 | } |
---|
1426 | 1425 | |
---|
1427 | | -void fixup_rootmenu(struct menu *menu) |
---|
| 1426 | +static void fixup_rootmenu(struct menu *menu) |
---|
1428 | 1427 | { |
---|
1429 | 1428 | struct menu *child; |
---|
1430 | 1429 | static int menu_cnt = 0; |
---|