diff options
author | Alexey Yakovenko <waker@users.sourceforge.net> | 2014-04-28 13:12:32 +0200 |
---|---|---|
committer | Alexey Yakovenko <waker@users.sourceforge.net> | 2014-04-28 13:12:32 +0200 |
commit | 54d4b18b27b19007497368f385204dc78a331572 (patch) | |
tree | a6829e25dc9d15c72ec8fff56bd5eddd04539096 /plugins | |
parent | cd0d7721212592945cdb2bfb9b6cbeb8f9265565 (diff) |
gtkui: added option to disable seekbar overlay
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/gtkui/ddbseekbar.c | 2 | ||||
-rw-r--r-- | plugins/gtkui/gtkui.c | 6 | ||||
-rw-r--r-- | plugins/gtkui/gtkui.h | 1 |
3 files changed, 7 insertions, 2 deletions
diff --git a/plugins/gtkui/ddbseekbar.c b/plugins/gtkui/ddbseekbar.c index bd3b01dd..0dbb7594 100644 --- a/plugins/gtkui/ddbseekbar.c +++ b/plugins/gtkui/ddbseekbar.c @@ -330,7 +330,7 @@ seekbar_draw (GtkWidget *widget, cairo_t *cr) { cairo_fill (cr); cairo_reset_clip (cr); - if ((self->seekbar_moving || self->seekbar_moved > 0.0) && trk) { + if (!gtkui_disable_seekbar_overlay && (self->seekbar_moving || self->seekbar_moved > 0.0) && trk) { float time = 0; float dur = deadbeef->pl_get_item_duration (trk); diff --git a/plugins/gtkui/gtkui.c b/plugins/gtkui/gtkui.c index 4a57ca65..2fa2173c 100644 --- a/plugins/gtkui/gtkui.c +++ b/plugins/gtkui/gtkui.c @@ -102,6 +102,7 @@ int gtkui_is_retina = 0; #endif int gtkui_unicode_playstate = 0; +int gtkui_disable_seekbar_overlay = 0; #define TRAY_ICON "deadbeef_tray_icon" @@ -604,6 +605,9 @@ gtkui_on_configchanged (void *data) { // play state images gtkui_unicode_playstate = deadbeef->conf_get_int ("gtkui.unicode_playstate", 0); + // seekbar overlay + gtkui_disable_seekbar_overlay = deadbeef->conf_get_int ("gtkui.disable_seekbar_overlay", 0); + // tray icon gtkui_update_status_icon (NULL); @@ -1574,11 +1578,11 @@ ddb_gui_GTK3_load (DB_functions_t *api) { static const char settings_dlg[] = "property \"Ask confirmation to delete files from disk\" checkbox gtkui.delete_files_ask 1;\n" "property \"Status icon volume control sensitivity\" entry gtkui.tray_volume_sensitivity 1;\n" -// "property \"Show volume in dB (percentage otherwise)\" entry gtkui.show_gain_in_db 1\n" "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" + "property \"Disable seekbar overlay text\" checkbox gtkui.disable_seekbar_overlay 0;\n" ; // define plugin interface diff --git a/plugins/gtkui/gtkui.h b/plugins/gtkui/gtkui.h index 0d4bb007..5ed95c8c 100644 --- a/plugins/gtkui/gtkui.h +++ b/plugins/gtkui/gtkui.h @@ -37,6 +37,7 @@ extern GtkWidget *searchwin; extern int gtkui_embolden_current_track; extern int gtkui_is_retina; extern int gtkui_unicode_playstate; +extern int gtkui_disable_seekbar_overlay; struct _GSList; |