summaryrefslogtreecommitdiffstats
path: root/src/interface.cpp
diff options
context:
space:
mode:
authorsu_v <suv-sf@users.sourceforge.net>2012-10-04 16:06:34 +0000
committer~suv <suv-sf@users.sourceforge.net>2012-10-04 16:06:34 +0000
commit9934562291b4604c611776063ced8b75e111d3f2 (patch)
treea7a3b4f9d5327cf9f001de090b223a75ec0347ee /src/interface.cpp
parentmerge from trunk (r11734) (diff)
parentcode cleanup: make more functions static, add includes. (diff)
downloadinkscape-9934562291b4604c611776063ced8b75e111d3f2.tar.gz
inkscape-9934562291b4604c611776063ced8b75e111d3f2.zip
merge from trunk (r11737)
(bzr r11668.1.23)
Diffstat (limited to 'src/interface.cpp')
-rw-r--r--src/interface.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/interface.cpp b/src/interface.cpp
index f26b7ac74..2ee188ef7 100644
--- a/src/interface.cpp
+++ b/src/interface.cpp
@@ -396,7 +396,7 @@ sp_ui_menu_deselect(gpointer object)
/**
* Creates and attaches a scaled icon to the given menu item.
*/
-void
+static void
sp_ui_menuitem_add_icon( GtkWidget *item, gchar *icon_name )
{
static bool iconsInjected = false;
@@ -686,7 +686,7 @@ static gboolean update_view_menu(GtkWidget *widget, GdkEventExpose * /*event*/,
return FALSE;
}
-void
+static void
sp_ui_menu_append_check_item_from_verb(GtkMenu *menu, Inkscape::UI::View::View *view, gchar const *label, gchar const *tip, gchar const *pref,
void (*callback_toggle)(GtkCheckMenuItem *, gpointer user_data),
#if GTK_CHECK_VERSION(3,0,0)
@@ -806,7 +806,7 @@ compare_file_basenames(gchar const *a, gchar const *b) {
return rc;
}
-void
+static void
sp_menu_get_svg_filenames_from_dir(gchar const *dirname, std::list<gchar const*> *files)
{
if ( Inkscape::IO::file_test( dirname, (GFileTest)(G_FILE_TEST_EXISTS | G_FILE_TEST_IS_DIR) ) ) {
@@ -840,7 +840,7 @@ sp_menu_get_svg_filenames_from_dir(gchar const *dirname, std::list<gchar const*>
files->sort(compare_file_basenames);
}
-void
+static void
sp_menu_add_filenames_to_menu(GtkWidget *menu, Inkscape::UI::View::View *view, std::list<gchar const*> *files)
{
if (!files->empty()) {
@@ -876,7 +876,7 @@ sp_menu_add_filenames_to_menu(GtkWidget *menu, Inkscape::UI::View::View *view, s
}
}
-void
+static void
sp_menu_append_new_templates(GtkWidget *menu, Inkscape::UI::View::View *view)
{
// user's local dir
@@ -891,7 +891,7 @@ sp_menu_append_new_templates(GtkWidget *menu, Inkscape::UI::View::View *view)
}
-void
+static void
sp_ui_checkboxes_menus(GtkMenu *m, Inkscape::UI::View::View *view)
{
//sp_ui_menu_append_check_item_from_verb(m, view, _("_Menu"), _("Show or hide the menu bar"), "menu",
@@ -915,7 +915,7 @@ sp_ui_checkboxes_menus(GtkMenu *m, Inkscape::UI::View::View *view)
}
-void addTaskMenuItems(GtkMenu *menu, Inkscape::UI::View::View *view)
+static void addTaskMenuItems(GtkMenu *menu, Inkscape::UI::View::View *view)
{
gchar const* data[] = {
C_("Interface setup", "Default"), _("Default interface setup"),
@@ -982,7 +982,7 @@ private:
* @param menu Menu to be added to
* @param view The View that this menu is being built for
*/
-void sp_ui_build_dyn_menus(Inkscape::XML::Node *menus, GtkWidget *menu, Inkscape::UI::View::View *view)
+static void sp_ui_build_dyn_menus(Inkscape::XML::Node *menus, GtkWidget *menu, Inkscape::UI::View::View *view)
{
if (menus == NULL) return;
if (menu == NULL) return;