summaryrefslogtreecommitdiffstats
path: root/src/ui/interface.cpp
diff options
context:
space:
mode:
authorAlexander Valavanis <valavanisalex@gmail.com>2017-06-29 13:31:52 +0000
committerAlexander Valavanis <valavanisalex@gmail.com>2017-06-29 13:31:52 +0000
commitd0dd42c6b365170d3113251cf87d7ebb74c7ef3e (patch)
tree939818fd929102d2f4d27467275e3af3d119a27b /src/ui/interface.cpp
parentDock: Rm unnecessary enum (diff)
downloadinkscape-d0dd42c6b365170d3113251cf87d7ebb74c7ef3e.tar.gz
inkscape-d0dd42c6b365170d3113251cf87d7ebb74c7ef3e.zip
interface: Rm unused function
Diffstat (limited to 'src/ui/interface.cpp')
-rw-r--r--src/ui/interface.cpp29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/ui/interface.cpp b/src/ui/interface.cpp
index 4246ae34e..a0ee5c72b 100644
--- a/src/ui/interface.cpp
+++ b/src/ui/interface.cpp
@@ -136,8 +136,6 @@ static void sp_ui_menu_item_set_name(GtkWidget *data,
Glib::ustring const &name);
static void sp_recent_open(GtkRecentChooser *, gpointer);
-static void injectRenamedIcons();
-
static const int MIN_ONSCREEN_DISTANCE = 50;
void
@@ -1441,33 +1439,6 @@ sp_ui_menu_item_set_name(GtkWidget *data, Glib::ustring const &name)
}
}
}
-
-void injectRenamedIcons()
-{
- Glib::RefPtr<Gtk::IconTheme> iconTheme = Gtk::IconTheme::get_default();
-
- std::vector< std::pair<Glib::ustring, Glib::ustring> > renamed;
- renamed.push_back(std::make_pair("gtk-file", "document-x-generic"));
- renamed.push_back(std::make_pair("gtk-directory", "folder"));
-
- for ( std::vector< std::pair<Glib::ustring, Glib::ustring> >::iterator it = renamed.begin(); it < renamed.end(); ++it ) {
- bool hasIcon = iconTheme->has_icon(it->first);
- bool hasSecondIcon = iconTheme->has_icon(it->second);
-
- if ( !hasIcon && hasSecondIcon ) {
- Glib::ArrayHandle<int> sizes = iconTheme->get_icon_sizes(it->second);
- for ( Glib::ArrayHandle<int>::iterator it2 = sizes.begin(); it2 < sizes.end(); ++it2 ) {
- Glib::RefPtr<Gdk::Pixbuf> pb = iconTheme->load_icon( it->second, *it2 );
- if ( pb ) {
- // install a private copy of the pixbuf to avoid pinning a theme
- Glib::RefPtr<Gdk::Pixbuf> pbCopy = pb->copy();
- Gtk::IconTheme::add_builtin_icon( it->first, *it2, pbCopy );
- }
- }
- }
- }
-}
-
/*
Local Variables:
mode:c++