changeset 2837:bdc4fbf878ec

make use of new InterfaceOps
author Tomasz Mon <desowin@gmail.com>
date Mon, 14 Jul 2008 18:07:03 +0200
parents fbb17b57229a
children 22a2ffe86750
files src/skins/skins_cfg.c src/skins/skins_cfg.h src/skins/ui_main.c
diffstat 3 files changed, 14 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/skins/skins_cfg.c	Mon Jul 14 11:54:07 2008 +0200
+++ b/src/skins/skins_cfg.c	Mon Jul 14 18:07:03 2008 +0200
@@ -511,7 +511,7 @@
                                 gint x, gint y,
                                 GtkSelectionData * selection_data,
                                 guint info, guint time,
-                                gpointer user_data) 
+                                gpointer user_data)
 {
     mcs_handle_t *db;
     gchar *path;
--- a/src/skins/skins_cfg.h	Mon Jul 14 11:54:07 2008 +0200
+++ b/src/skins/skins_cfg.h	Mon Jul 14 18:07:03 2008 +0200
@@ -88,5 +88,11 @@
 void skins_cfg_save();
 
 GtkWidget* skins_configure(void);
+void on_skin_view_drag_data_received(GtkWidget * widget,
+                                GdkDragContext * context,
+                                gint x, gint y,
+                                GtkSelectionData * selection_data,
+                                guint info, guint time,
+                                gpointer user_data);
 
 #endif
--- a/src/skins/ui_main.c	Mon Jul 14 11:54:07 2008 +0200
+++ b/src/skins/ui_main.c	Mon Jul 14 18:07:03 2008 +0200
@@ -81,6 +81,7 @@
 #include "ui_skinned_playstatus.h"
 #include "ui_skinned_monostereo.h"
 #include "ui_skinned_playlist.h"
+#include "ui_main_evlisteners.h"
 #include <audacious/plugin.h>
 #include "skins_cfg.h"
 
@@ -848,7 +849,7 @@
             aud_playlist_next(playlist);
             break;
         case GDK_KP_Insert:
-            audacious_drct_jtf_show();
+            action_jump_to_file();
             break;
         case GDK_Return:
         case GDK_KP_Enter:
@@ -1060,8 +1061,8 @@
 
     /* perhaps make suffix check case-insensitive -- desowin */
     if (aud_str_has_prefix_nocase((char*)selection_data->data, "file:///")) {
-        if (str_has_suffix_nocase((char*)selection_data->data, ".wsz\r\n") ||
-            str_has_suffix_nocase((char*)selection_data->data, ".zip\r\n")) {
+        if (aud_str_has_suffix_nocase((char*)selection_data->data, ".wsz\r\n") ||
+            aud_str_has_suffix_nocase((char*)selection_data->data, ".zip\r\n")) {
             on_skin_view_drag_data_received(GTK_WIDGET(user_data), context, x, y, selection_data, info, time, NULL);
             return;
         }
@@ -1759,7 +1760,7 @@
             mainwin_jump_to_time();
             break;
         case MAINWIN_GENERAL_JTF:
-            audacious_drct_jtf_show();
+            action_jump_to_file();
             break;
         case MAINWIN_GENERAL_EXIT:
             mainwin_quit_cb();
@@ -2695,8 +2696,7 @@
 void
 action_about_audacious( void )
 {
-    gboolean show = TRUE;
-    aud_hook_call("aboutwin show", &show);
+    skins_interface.ops->aboutwin_show();
 }
 
 void
@@ -2759,7 +2759,7 @@
 void
 action_jump_to_file( void )
 {
-    audacious_drct_jtf_show();
+    skins_interface.ops->jump_to_track_show();
 }
 
 void