Mercurial > audlegacy
changeset 3918:a318d4b479d2
hide equalizer graph in special skins (needed for a certain skin)
author | mf0102 <0102@gmx.at> |
---|---|
date | Thu, 08 Nov 2007 17:11:34 +0100 |
parents | b5ee3a4a8e3b |
children | 11145cc182f1 |
files | src/audacious/skin.c src/audacious/ui_equalizer.c src/audacious/ui_equalizer.h |
diffstat | 3 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/audacious/skin.c Thu Nov 08 22:16:50 2007 +0900 +++ b/src/audacious/skin.c Thu Nov 08 17:11:34 2007 +0100 @@ -1744,6 +1744,9 @@ gdk_draw_drawable(drawable, gc, skin_get_pixmap(bmp_active_skin, SKIN_MAIN)->pixmap, 164 + xdest, 89, xdest, ydest, width, height); width = pixmap->width - xsrc; + } else if (pixmap_id == SKIN_EQMAIN) { + /* TODO: we have to show this somewhere again! -- mf0102 */ + gtk_widget_hide(equalizerwin_graph); } else return; }
--- a/src/audacious/ui_equalizer.c Thu Nov 08 22:16:50 2007 +0900 +++ b/src/audacious/ui_equalizer.c Thu Nov 08 17:11:34 2007 +0100 @@ -74,6 +74,7 @@ GtkWidget *equalizerwin; +GtkWidget *equalizerwin_graph; static GtkWidget *equalizerwin_load_window = NULL; static GtkWidget *equalizerwin_load_auto_window = NULL; @@ -87,7 +88,6 @@ static GtkWidget *equalizerwin_on, *equalizerwin_auto; static GtkWidget *equalizerwin_close, *equalizerwin_presets, *equalizerwin_shade; -static GtkWidget *equalizerwin_graph; static GtkWidget *equalizerwin_preamp,*equalizerwin_bands[10]; static GtkWidget *equalizerwin_volume, *equalizerwin_balance;
--- a/src/audacious/ui_equalizer.h Thu Nov 08 22:16:50 2007 +0900 +++ b/src/audacious/ui_equalizer.h Thu Nov 08 17:11:34 2007 +0100 @@ -58,6 +58,7 @@ gboolean equalizerwin_has_focus(void); extern GtkWidget *equalizerwin; +extern GtkWidget *equalizerwin_graph; extern gboolean equalizerwin_focus; void equalizer_activate(gboolean active);