Mercurial > audlegacy
changeset 2975:1ec423a12756 trunk
Remove craq.
author | William Pitcock <nenolod@atheme-project.org> |
---|---|
date | Tue, 03 Jul 2007 19:41:53 -0500 |
parents | b93bd39923bf |
children | 6131bf51ee63 |
files | src/audacious/ui_preferences.c |
diffstat | 1 files changed, 1 insertions(+), 41 deletions(-) [+] |
line wrap: on
line diff
--- a/src/audacious/ui_preferences.c Tue Jul 03 19:39:46 2007 -0500 +++ b/src/audacious/ui_preferences.c Tue Jul 03 19:41:53 2007 -0500 @@ -1922,46 +1922,6 @@ } static void -mainwin_drag_data_received1(GtkWidget * widget, - GdkDragContext * context, - gint x, gint y, - GtkSelectionData * selection_data, - guint info, guint time, - gpointer user_data) -{ - gchar *path, *decoded; - - if (!selection_data->data) { - g_warning("DND data string is NULL"); - return; - } - - path = (gchar *) selection_data->data; - - /* FIXME: use a real URL validator/parser */ - - if (!str_has_prefix_nocase(path, "fonts:///")) - return; - - path[strlen(path) - 2] = 0; /* Why the hell a CR&LF? */ - path += 8; - - /* plain, since we already stripped the first URI part */ - decoded = xmms_urldecode_plain(path); - - /* Get the old font's size, and add it to the dropped - * font's name */ - cfg.playlist_font = g_strconcat(decoded+1, - strrchr(cfg.playlist_font, ' '), - NULL); - playlist_list_set_font(cfg.playlist_font); - playlistwin_update_list(playlist_get_active()); - gtk_font_button_set_font_name(user_data, cfg.playlist_font); - - g_free(decoded); -} - -static void on_skin_view_drag_data_received(GtkWidget * widget, GdkDragContext * context, gint x, gint y, @@ -2619,7 +2579,7 @@ widget = glade_xml_get_widget(xml, "playlist_font_button"); g_signal_connect(mainwin, "drag-data-received", - G_CALLBACK(mainwin_drag_data_received1), + G_CALLBACK(mainwin_drag_data_received), widget); widget = glade_xml_get_widget(xml, "titlestring_cbox");