diff options
author | Alexey Yakovenko <waker@users.sourceforge.net> | 2014-04-24 17:23:33 +0200 |
---|---|---|
committer | Alexey Yakovenko <waker@users.sourceforge.net> | 2014-04-24 17:23:33 +0200 |
commit | 45a4e4eff36a7e5f2670bfb2280ee1563fd86319 (patch) | |
tree | 023d92ea38a414dc0ac1df9f3a994a37f49bf5cb /plugins/gtkui/gtkui.c | |
parent | 0fef6a4de67b49fdd7324e1a965d84f88185f8da (diff) |
gtkui: added option to render play state as unicode chars instead of pixbuf, for better looks on HDPI screens
Diffstat (limited to 'plugins/gtkui/gtkui.c')
-rw-r--r-- | plugins/gtkui/gtkui.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/gtkui/gtkui.c b/plugins/gtkui/gtkui.c index 02d5310f..4a57ca65 100644 --- a/plugins/gtkui/gtkui.c +++ b/plugins/gtkui/gtkui.c @@ -101,6 +101,8 @@ int gtkui_groups_pinned; int gtkui_is_retina = 0; #endif +int gtkui_unicode_playstate = 0; + #define TRAY_ICON "deadbeef_tray_icon" // that must be called before gtk_init @@ -599,6 +601,9 @@ gtkui_on_configchanged (void *data) { // pin groups gtkui_groups_pinned = deadbeef->conf_get_int ("playlist.pin.groups", 0); + // play state images + gtkui_unicode_playstate = deadbeef->conf_get_int ("gtkui.unicode_playstate", 0); + // tray icon gtkui_update_status_icon (NULL); @@ -1573,6 +1578,7 @@ static const char settings_dlg[] = "property \"Custom status icon\" entry gtkui.custom_tray_icon \"" TRAY_ICON "\" ;\n" "property \"Run gtk_init with --sync (debug mode)\" checkbox gtkui.sync 0;\n" "property \"Add separators between plugin context menu items\" checkbox gtkui.action_separators 0;\n" + "property \"Use unicode chars instead of images for track state\" checkbox gtkui.unicode_playstate 0;\n" ; // define plugin interface |