Geary icon. Closes #3705

This commit is contained in:
Eric Gregory 2012-02-10 11:33:54 -08:00
parent 50609c58ea
commit c295aac976
3 changed files with 11 additions and 3 deletions

BIN
icons/geary.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

View file

@ -21,6 +21,9 @@ public class IconFactory {
public const int UNREAD_ICON_SIZE = 12;
public Gdk.Pixbuf? unread { get; private set; }
public const int GEARY_ICON_SIZE = 95;
public Gdk.Pixbuf? geary { get; private set; }
public ThemedIcon label_icon { get; private set; default = new ThemedIcon("one-tag"); }
public ThemedIcon label_folder_icon { get; private set; default = new ThemedIcon("multiple-tags"); }
@ -38,12 +41,13 @@ public class IconFactory {
// Creates the icon factory.
private IconFactory() {
// Load icons here.
unread = load("mail-unread", UNREAD_ICON_SIZE);
icon_theme= Gtk.IconTheme.get_default();
icon_theme.append_search_path(GearyApplication.instance.get_resource_directory().
get_child("icons").get_path());
// Load icons here.
unread = load("mail-unread", UNREAD_ICON_SIZE);
geary = load("geary", GEARY_ICON_SIZE);
}
}

View file

@ -28,6 +28,10 @@ public class MainWindow : Gtk.Window {
add_accel_group(GearyApplication.instance.ui_manager.get_accel_group());
GLib.List<Gdk.Pixbuf> pixbuf_list = new GLib.List<Gdk.Pixbuf>();
pixbuf_list.append(IconFactory.instance.geary);
set_default_icon_list(pixbuf_list);
create_layout();
}