diff options
author | Michael Webster <miketwebster@gmail.com> | 2024-05-28 14:07:59 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2024-05-28 14:08:26 +0200 |
commit | dc19d70c2c8f6680a18f20c34b67bc70c50f680c (patch) | |
tree | 59324a014dffbd35af4f9cd00d6050688a091eee /src/prompt-box.vala | |
parent | 6faf57da24b20d6a0ced443253e6df073ccdd22a (diff) | |
download | arctica-greeter-dc19d70c2c8f6680a18f20c34b67bc70c50f680c.tar.gz arctica-greeter-dc19d70c2c8f6680a18f20c34b67bc70c50f680c.tar.bz2 arctica-greeter-dc19d70c2c8f6680a18f20c34b67bc70c50f680c.zip |
src/promptbox.vala: Use themed icon for unread messages.
Ported from slick-greeter.
Diffstat (limited to 'src/prompt-box.vala')
-rw-r--r-- | src/prompt-box.vala | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/prompt-box.vala b/src/prompt-box.vala index 5716ab1..267dab8 100644 --- a/src/prompt-box.vala +++ b/src/prompt-box.vala @@ -244,14 +244,7 @@ public class PromptBox : FadableBox name_grid.attach (name_label, COL_NAME_LABEL, ROW_NAME, 1, 1); message_image = new CachedImage (null); - try - { - message_image.pixbuf = new Gdk.Pixbuf.from_file (Path.build_filename (Config.PKGDATADIR, "message.png", null)); - } - catch (Error e) - { - debug ("Error loading message image: %s", e.message); - } + message_image.set_from_icon_name("mail-unread", Gtk.IconSize.BUTTON); var align = new Gtk.Alignment (0.5f, 0.5f, 0.0f, 0.0f); align.valign = Gtk.Align.START; @@ -346,7 +339,7 @@ public class PromptBox : FadableBox small_name_grid.attach (small_name_label, 1, 0, 1, 1); small_message_image = new CachedImage (null); - small_message_image.pixbuf = message_image.pixbuf; + small_message_image.set_from_icon_name("mail-unread", Gtk.IconSize.BUTTON); var align = new Gtk.Alignment (0.5f, 0.5f, 0.0f, 0.0f); align.set_size_request (-1, grid_size); |