# HG changeset patch # User nenolod # Date 1148069210 25200 # Node ID 00442fab8cc32aa79d3447d2e7b09b53df7354e6 # Parent 440cb13c5051c031d8fcb1990cf16fb79b97db8a [svn] - playlist transparency toggle diff -r 440cb13c5051 -r 00442fab8cc3 audacious/glade/prefswin.glade --- a/audacious/glade/prefswin.glade Fri May 19 12:56:44 2006 -0700 +++ b/audacious/glade/prefswin.glade Fri May 19 13:06:50 2006 -0700 @@ -1342,6 +1342,7 @@ True + Use bitmap fonts if they are available. Bitmap fonts do not support Unicode strings. True Use Bitmap fonts if available True @@ -1520,6 +1521,95 @@ False + + + + True + False + 0 + + + + True + 0.5 + 0.5 + 1 + 1 + 12 + 12 + 0 + 0 + + + + True + <b>_Transparency</b> + True + True + GTK_JUSTIFY_LEFT + False + False + 0 + 0.5 + 0 + 0 + category_notebook + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + + + 0 + True + True + + + + + + True + 0.5 + 0.5 + 1 + 1 + 2 + 0 + 12 + 0 + + + + True + Enables playlist transparency. This is not recommended for slower machines as it requires some CPU time to create and cache the pixmaps used for the transparency. + True + Enable playlist transparency + True + GTK_RELIEF_NORMAL + True + False + False + True + + + + + + + 0 + False + False + + + + + 0 + True + True + + diff -r 440cb13c5051 -r 00442fab8cc3 audacious/playlist_list.c --- a/audacious/playlist_list.c Fri May 19 12:56:44 2006 -0700 +++ b/audacious/playlist_list.c Fri May 19 13:06:50 2006 -0700 @@ -846,6 +846,8 @@ PLAYLIST_UNLOCK(); + gdk_flush(); + g_free(playlist_rect); } diff -r 440cb13c5051 -r 00442fab8cc3 audacious/prefswin.c --- a/audacious/prefswin.c Fri May 19 12:56:44 2006 -0700 +++ b/audacious/prefswin.c Fri May 19 13:06:50 2006 -0700 @@ -940,6 +940,22 @@ } static void +on_playlist_transparent_realize(GtkToggleButton * button, + gpointer data) +{ + gtk_toggle_button_set_active(button, cfg.playlist_transparent); +} + +static void +on_playlist_transparent_toggled(GtkToggleButton * button, + gpointer data) +{ + cfg.playlist_transparent = gtk_toggle_button_get_active(button); + playlistwin_update_list(); + draw_playlist_window(TRUE); +} + +static void on_playlist_show_pl_separator_realize(GtkToggleButton * button, gpointer data) { @@ -1871,6 +1887,8 @@ FUNC_MAP_ENTRY(on_playlist_show_pl_numbers_toggled) FUNC_MAP_ENTRY(on_playlist_show_pl_separator_realize) FUNC_MAP_ENTRY(on_playlist_show_pl_separator_toggled) + FUNC_MAP_ENTRY(on_playlist_transparent_realize) + FUNC_MAP_ENTRY(on_playlist_transparent_toggled) FUNC_MAP_ENTRY(on_playlist_convert_twenty_realize) FUNC_MAP_ENTRY(on_playlist_convert_twenty_toggled) FUNC_MAP_ENTRY(on_playlist_convert_underscore_realize)