diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2018-07-26 23:44:51 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2018-07-26 23:44:51 +0000 |
| commit | 7f344fcd0dc1068d20ab4b171edf6842103fac62 (patch) | |
| tree | e43049d9145cc15f6b8d9202e270ba1311a5afc3 | |
| parent | Refactoring icon locations (diff) | |
| download | inkscape-7f344fcd0dc1068d20ab4b171edf6842103fac62.tar.gz inkscape-7f344fcd0dc1068d20ab4b171edf6842103fac62.zip | |
working on symbolic
| -rw-r--r-- | share/icons/Tango/index.theme | 12 | ||||
| -rw-r--r-- | share/icons/hicolor/index.theme | 12 | ||||
| -rw-r--r-- | src/main.cpp | 2 | ||||
| -rw-r--r-- | src/ui/dialog/inkscape-preferences.cpp | 15 |
4 files changed, 25 insertions, 16 deletions
diff --git a/share/icons/Tango/index.theme b/share/icons/Tango/index.theme index 2050b8fd6..8330b2a43 100644 --- a/share/icons/Tango/index.theme +++ b/share/icons/Tango/index.theme @@ -5,11 +5,15 @@ Hidden=true Directories=scalable/actions,symbolic/actions [scalable/actions] +MinSize=8 Size=16 -Context=Actions -Type=Threshold +MaxSize=512 +Context=Applications +Type=Scalable [symbolic/actions] +MinSize=8 Size=16 -Context=Actions -Type=Threshold +MaxSize=512 +Context=Applications +Type=Scalable diff --git a/share/icons/hicolor/index.theme b/share/icons/hicolor/index.theme index 818e2488d..46d766193 100644 --- a/share/icons/hicolor/index.theme +++ b/share/icons/hicolor/index.theme @@ -5,12 +5,16 @@ Hidden=true Directories=scalable/actions,symbolic/actions [scalable/actions] +MinSize=8 Size=16 -Context=Actions -Type=Threshold +MaxSize=512 +Context=Applications +Type=Scalable [symbolic/actions] +MinSize=8 Size=16 -Context=Actions -Type=Threshold +MaxSize=512 +Context=Applications +Type=Scalable diff --git a/src/main.cpp b/src/main.cpp index 837c26652..4376979db 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -635,7 +635,7 @@ static void set_datadir_env() datadir += "/inkscape"; #endif g_setenv("XDG_DATA_DIRS", datadir.c_str(), TRUE); - // printf("XDG_DATA_DIRS = %s\n", g_getenv("XDG_DATA_DIRS")); + printf("XDG_DATA_DIRS = %s\n", g_getenv("XDG_DATA_DIRS")); } /** diff --git a/src/ui/dialog/inkscape-preferences.cpp b/src/ui/dialog/inkscape-preferences.cpp index c2f369e07..b2020fa5f 100644 --- a/src/ui/dialog/inkscape-preferences.cpp +++ b/src/ui/dialog/inkscape-preferences.cpp @@ -610,6 +610,7 @@ static void _inkscape_fill_icons(const gchar *path, GHashTable *t) if (!dir) { return; } + std::cout << path << "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" << std::endl; while ((dir_entry = g_dir_read_name(dir))) { gchar *filename = g_build_filename(path, dir_entry, "index.theme", NULL); gchar *scalable = g_build_filename(path, dir_entry, "scalable", NULL); @@ -794,7 +795,6 @@ void InkscapePreferences::initPageUI() } // Theme - symbolicThemeCheck(); _page_theme.add_group_header(_("Theme changes")); { using namespace Inkscape::IO::Resource; @@ -853,7 +853,7 @@ void InkscapePreferences::initPageUI() { GHashTable *t; GHashTableIter iter; - gchar *iconTheme, *path; + gchar *icon_theme, *path; gchar **builtin_icons; GList *list, *l; guint i; @@ -879,15 +879,15 @@ void InkscapePreferences::initPageUI() list = NULL; g_hash_table_iter_init(&iter, t); - while (g_hash_table_iter_next(&iter, (gpointer *)&iconTheme, NULL)) { - list = g_list_insert_sorted(list, iconTheme, (GCompareFunc)strcmp); + while (g_hash_table_iter_next(&iter, (gpointer *)&icon_theme, NULL)) { + list = g_list_insert_sorted(list, icon_theme, (GCompareFunc)strcmp); } std::vector<Glib::ustring> labels; std::vector<Glib::ustring> values; for (l = list; l; l = l->next) { - iconTheme = (gchar *)l->data; - labels.push_back(Glib::ustring(iconTheme)); - values.push_back(Glib::ustring(iconTheme)); + icon_theme = (gchar *)l->data; + labels.push_back(Glib::ustring(icon_theme)); + values.push_back(Glib::ustring(icon_theme)); } labels.erase(unique(labels.begin(), labels.end()), labels.end()); values.erase(unique(values.begin(), values.end()), values.end()); @@ -898,6 +898,7 @@ void InkscapePreferences::initPageUI() _icon_theme.init("/theme/iconTheme", labels, values, "hicolor"); _page_theme.add_line(false, _("Change icon theme:"), _icon_theme, "", "", false); _icon_theme.signal_changed().connect(sigc::mem_fun(*this, &InkscapePreferences::symbolicThemeCheck)); + symbolicThemeCheck(); } _dark_theme.init(_("Use dark theme"), "/theme/darkTheme", true); |
