Mercurial > audlegacy
changeset 3532:7532ab3d25e5 trunk
Automated merge with ssh://hg.atheme-project.org//hg/audacious
author | Jonathan Schleifer <js@h3c.de> |
---|---|
date | Sat, 15 Sep 2007 10:54:23 +0200 |
parents | 18391c12c18c (diff) 08dae20c75f0 (current diff) |
children | 09e457d346f9 |
files | |
diffstat | 1 files changed, 16 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/audacious/ui_main.c Sat Sep 15 18:10:55 2007 +0930 +++ b/src/audacious/ui_main.c Sat Sep 15 10:54:23 2007 +0200 @@ -970,9 +970,25 @@ mainwin_minimize_cb(); break; case GDK_Tab: + // FIXME if (event->state & GDK_CONTROL_MASK) gtk_window_present(GTK_WINDOW(equalizerwin)); break; + case GDK_c: + if (event->state & GDK_CONTROL_MASK) { + Playlist *playlist = playlist_get_active(); + gint pos = playlist_get_position(playlist); + gchar *title = playlist_get_songtitle(playlist, pos); + + if (title != NULL) { + GtkClipboard *clip = gtk_clipboard_get(GDK_SELECTION_CLIPBOARD); + gtk_clipboard_set_text(clip, title, -1); + gtk_clipboard_store(clip); + } + + return TRUE; + } + return FALSE; default: return FALSE; }