changeset 3768:bf6b1c5091d5

Export dock functions
author Christian Birchinger <joker@netswarm.net>
date Mon, 15 Oct 2007 12:56:59 +0200
parents 05ed0e49cf47
children 2953048bceee
files src/audacious/dock.c src/audacious/dock.h src/audacious/plugin.h src/audacious/pluginenum.c
diffstat 4 files changed, 34 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/dock.c	Mon Oct 15 00:01:57 2007 -0500
+++ b/src/audacious/dock.c	Mon Oct 15 12:56:59 2007 +0200
@@ -565,3 +565,8 @@
 
     return list;
 }
+
+GList *
+get_dock_window_list() {
+    return dock_window_list;
+}
--- a/src/audacious/dock.h	Mon Oct 15 00:01:57 2007 -0500
+++ b/src/audacious/dock.h	Mon Oct 15 12:56:59 2007 +0200
@@ -44,4 +44,6 @@
                                  gboolean decorated);
 void dock_window_resize(GtkWindow * widget, gint new_w, gint new_h, gint w, gint h);
 
+GList *get_dock_window_list();
+
 #endif
--- a/src/audacious/plugin.h	Mon Oct 15 00:01:57 2007 -0500
+++ b/src/audacious/plugin.h	Mon Oct 15 12:56:59 2007 +0200
@@ -576,6 +576,16 @@
     void (*effect_flow)(FlowContext *context);
     void (*iir_flow)(FlowContext *context);
     void (*volumecontrol_flow)(FlowContext *context);
+    
+    /* Dock */
+    GList *(*get_dock_window_list)(void);
+    GList *(*dock_add_window)(GList * window_list, GtkWindow * window);
+    GList *(*dock_remove_window)(GList * window_list, GtkWindow * window);
+    void (*dock_move_press)(GList * window_list, GtkWindow * w,
+                         GdkEventButton * event, gboolean move_list);
+    void (*dock_move_motion)(GtkWindow * w, GdkEventMotion * event);
+    void (*dock_move_release)(GtkWindow * w);
+    gboolean (*dock_is_moving)(GtkWindow * w);
 };
 
 /* Convenience macros for accessing the public API. */
@@ -905,6 +915,14 @@
 
 #define audacious_menu_main_show		_audvt->util_menu_main_show
 
+#define aud_get_dock_window_list                _audvt->get_dock_window_list
+#define aud_dock_add_window                     _audvt->dock_add_window
+#define aud_dock_remove_window                  _audvt->dock_remove_window
+#define aud_dock_move_press                     _audvt->dock_move_press
+#define aud_dock_move_motion                    _audvt->dock_move_motion
+#define aud_dock_move_release                   _audvt->dock_move_release
+#define aud_dock_is_moving                      _audvt->dock_is_moving
+
 #include "audacious/auddrct.h"
 
 /* for multi-file plugins :( */
--- a/src/audacious/pluginenum.c	Mon Oct 15 00:01:57 2007 -0500
+++ b/src/audacious/pluginenum.c	Mon Oct 15 12:56:59 2007 +0200
@@ -37,6 +37,7 @@
 #include <string.h>
 
 #include "main.h"
+#include "dock.h"
 #include "ui_main.h"
 #include "playback.h"
 #include "playlist.h"
@@ -373,6 +374,14 @@
     .volumecontrol_flow = volumecontrol_flow,
 
     .util_menu_main_show = util_menu_main_show,
+    
+    .get_dock_window_list = get_dock_window_list,
+    .dock_add_window = dock_add_window,
+    .dock_remove_window = dock_remove_window,
+    .dock_move_press = dock_move_press,
+    .dock_move_motion = dock_move_motion,
+    .dock_move_release = dock_move_release,
+    .dock_is_moving = dock_is_moving,
 };
 
 /*****************************************************************/