[gnome-latex: 106/205] Static functions for callbacks in symbols.c
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-latex: 106/205] Static functions for callbacks in symbols.c
- Date: Fri, 14 Dec 2018 10:55:48 +0000 (UTC)
commit b4e35013ad22f72dda984c1cac8972c7f7fa028f
Author: Sébastien Wilmet <sebastien wilmet gmail com>
Date: Sun Nov 8 00:07:43 2009 +0100
Static functions for callbacks in symbols.c
cb_category_symbols_selected () and cb_symbol_selected () are used only
in symbols.c, so it's better to make it static.
src/symbols.c | 7 +++++--
src/symbols.h | 4 ----
2 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/src/symbols.c b/src/symbols.c
index b0f00dd..c649632 100644
--- a/src/symbols.c
+++ b/src/symbols.c
@@ -31,6 +31,9 @@
#include "symbols.h"
static GtkListStore * get_symbol_store (const struct symbol symbols[]);
+static void cb_category_symbols_selected (GtkIconView *icon_view,
+ gpointer user_data);
+static void cb_symbol_selected (GtkIconView *icon_view, gpointer user_data);
static struct {
gchar *name;
@@ -877,7 +880,7 @@ init_symbols (void)
gtk_box_pack_start (GTK_BOX (latexila.symbols.vbox), scrollbar, TRUE, TRUE, 0);
}
-void
+static void
cb_category_symbols_selected (GtkIconView *icon_view, gpointer user_data)
{
GList *selected_items = gtk_icon_view_get_selected_items (icon_view);
@@ -911,7 +914,7 @@ cb_category_symbols_selected (GtkIconView *icon_view, gpointer user_data)
g_list_free (selected_items);
}
-void
+static void
cb_symbol_selected (GtkIconView *icon_view, gpointer user_data)
{
if (latexila.active_doc == NULL)
diff --git a/src/symbols.h b/src/symbols.h
index 0f5138a..fecddaa 100644
--- a/src/symbols.h
+++ b/src/symbols.h
@@ -22,8 +22,4 @@
void init_symbols (void);
-//TODO this callbacks are used only in symbols.c => static
-void cb_category_symbols_selected (GtkIconView *icon_view, gpointer user_data);
-void cb_symbol_selected (GtkIconView *icon_view, gpointer user_data);
-
#endif /* SYMBOLS_H */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]