[latexila] Rename to GNOME LaTeX: default app icon name
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila] Rename to GNOME LaTeX: default app icon name
- Date: Wed, 27 Dec 2017 06:54:34 +0000 (UTC)
commit 91e29aa9f55d61c5195eafb36abc0ebf310815a0
Author: Sébastien Wilmet <swilmet gnome org>
Date: Tue Dec 26 21:26:11 2017 +0100
Rename to GNOME LaTeX: default app icon name
Simplify the code at the same time.
gtk-update-icon-cache needs to be called on the hicolor directory, see
for example how it is done in the Devhelp build system.
src/latexila_app.vala | 26 +-------------------------
1 files changed, 1 insertions(+), 25 deletions(-)
---
diff --git a/src/latexila_app.vala b/src/latexila_app.vala
index db74ced..37f6d37 100644
--- a/src/latexila_app.vala
+++ b/src/latexila_app.vala
@@ -39,6 +39,7 @@ public class LatexilaApp : Gtk.Application
Object (application_id: "org.gnome.latexila");
set_flags (ApplicationFlags.HANDLES_OPEN);
Environment.set_application_name (Config.PACKAGE_NAME);
+ Gtk.Window.set_default_icon_name ("gnome-latex");
setup_main_option_entries ();
@@ -132,7 +133,6 @@ public class LatexilaApp : Gtk.Application
set_app_menu (manual_app_menu);
}
- set_application_icons ();
Latexila.utils_register_icons ();
StockIcons.register_stock_icons ();
setup_theme_extensions ();
@@ -277,30 +277,6 @@ public class LatexilaApp : Gtk.Application
release ();
}
- private void set_application_icons ()
- {
- string[] sizes = {"16x16", "22x22", "24x24", "32x32", "48x48"};
-
- List<Gdk.Pixbuf> list = null;
-
- foreach (string size in sizes)
- {
- string filename = Path.build_filename (Config.ICONS_DIR, size,
- "apps", "latexila.png");
-
- try
- {
- list.append (new Gdk.Pixbuf.from_file (filename));
- }
- catch (Error e)
- {
- warning ("Application icon: %s", e.message);
- }
- }
-
- Gtk.Window.set_default_icon_list ((owned) list);
- }
-
private void setup_theme_extensions ()
{
Gtk.Settings settings = Gtk.Settings.get_default ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]