summaryrefslogtreecommitdiffstats
path: root/src/libnrtype
diff options
context:
space:
mode:
authorAlex Valavanis <valavanisalex@gmail.com>2013-03-18 00:36:01 +0000
committerAlex Valavanis <valavanisalex@gmail.com>2013-03-18 00:36:01 +0000
commit6753a094002684a8f14232934c9cdeba13e00e8e (patch)
tree89a64604fcee875bc79d899e21a2547af3965e60 /src/libnrtype
parentextensions. hpgl output. further patch 2 by TimeWaster (Bug 1118663) (diff)
downloadinkscape-6753a094002684a8f14232934c9cdeba13e00e8e.tar.gz
inkscape-6753a094002684a8f14232934c9cdeba13e00e8e.zip
Fix -Wunused-function warnings
(bzr r12221)
Diffstat (limited to 'src/libnrtype')
-rw-r--r--src/libnrtype/font-lister.cpp21
-rw-r--r--src/libnrtype/font-lister.h10
2 files changed, 24 insertions, 7 deletions
diff --git a/src/libnrtype/font-lister.cpp b/src/libnrtype/font-lister.cpp
index 90900baba..5b495d14d 100644
--- a/src/libnrtype/font-lister.cpp
+++ b/src/libnrtype/font-lister.cpp
@@ -969,6 +969,17 @@ namespace Inkscape
}
// Helper functions
+
+// Separator function (if true, a separator will be drawn)
+gboolean font_lister_separator_func(GtkTreeModel *model,
+ GtkTreeIter *iter,
+ gpointer /*data*/)
+{
+ gchar* text = 0;
+ gtk_tree_model_get(model, iter, 0, &text, -1 ); // Column 0: FontList.family
+ return (text && strcmp(text,"#") == 0);
+}
+
void font_lister_cell_data_func(GtkCellLayout */*cell_layout*/,
GtkCellRenderer *cell,
GtkTreeModel *model,
@@ -1042,3 +1053,13 @@ void font_lister_cell_data_func(GtkCellLayout */*cell_layout*/,
g_object_set (G_OBJECT (cell), "markup", markup.c_str(), NULL);
}
+/*
+ Local Variables:
+ mode:c++
+ c-file-style:"stroustrup"
+ c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
+ indent-tabs-mode:nil
+ fill-column:99
+ End:
+*/
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
diff --git a/src/libnrtype/font-lister.h b/src/libnrtype/font-lister.h
index 5c48bf7a8..5a8f578d9 100644
--- a/src/libnrtype/font-lister.h
+++ b/src/libnrtype/font-lister.h
@@ -296,13 +296,9 @@ namespace Inkscape
}
// Helper functions
-// Separator function (if true, a separator will be drawn)
-static gboolean font_lister_separator_func(GtkTreeModel *model, GtkTreeIter *iter, gpointer /*data*/)
-{
- gchar* text = 0;
- gtk_tree_model_get(model, iter, 0, &text, -1 ); // Column 0: FontList.family
- return (text && strcmp(text,"#") == 0);
-}
+gboolean font_lister_separator_func(GtkTreeModel *model,
+ GtkTreeIter *iter,
+ gpointer /*data*/);
void font_lister_cell_data_func(GtkCellLayout */*cell_layout*/,
GtkCellRenderer *cell,