diff src/aosd/aosd_trigger.c @ 623:443de962d0a0 trunk

[svn] - aosd: revert window type setting
author giacomo
date Thu, 08 Feb 2007 16:20:27 -0800
parents 9b73eb35f4ff
children a1687bd302ce
line wrap: on
line diff
--- a/src/aosd/aosd_trigger.c	Thu Feb 08 09:10:38 2007 -0800
+++ b/src/aosd/aosd_trigger.c	Thu Feb 08 16:20:27 2007 -0800
@@ -35,24 +35,28 @@
 enum
 {
   AOSD_TRIGGER_PB_START = 0,
-  AOSD_TRIGGER_PB_TITLECHANGE = 1
+  AOSD_TRIGGER_PB_TITLECHANGE = 1,
+  AOSD_TRIGGER_VOL_CHANGE = 2
 };
 
 /* trigger codes array size */
-#define AOSD_TRIGGER_CODES_ARRAY_SIZE 2
+#define AOSD_TRIGGER_CODES_ARRAY_SIZE 3
 
 /* trigger codes array */
 gint aosd_trigger_codes[] =
 {
   AOSD_TRIGGER_PB_START,
-  AOSD_TRIGGER_PB_TITLECHANGE
+  AOSD_TRIGGER_PB_TITLECHANGE,
+  AOSD_TRIGGER_VOL_CHANGE
 };
 
 /* prototypes of trigger functions */
 static void aosd_trigger_func_pb_start_onoff ( gboolean );
 static void aosd_trigger_func_pb_start_cb ( gpointer , gpointer );
-static void aosd_trigger_func_pb_titlechange_onff ( gboolean );
+static void aosd_trigger_func_pb_titlechange_onoff ( gboolean );
 static void aosd_trigger_func_pb_titlechange_cb ( gpointer , gpointer );
+static void aosd_trigger_func_vol_change_onoff ( gboolean );
+static void aosd_trigger_func_vol_change_cb ( gpointer , gpointer );
 
 /* map trigger codes to trigger objects */
 aosd_trigger_t aosd_triggers[] =
@@ -66,8 +70,13 @@
                                     N_("Trigger OSD when, during playback, the song title changes "
                                        "but the filename is the same. This is mostly useful to display "
                                        "title changes in internet streams.") ,
-                                    aosd_trigger_func_pb_titlechange_onff ,
-                                    aosd_trigger_func_pb_titlechange_cb }
+                                    aosd_trigger_func_pb_titlechange_onoff ,
+                                    aosd_trigger_func_pb_titlechange_cb },
+
+  [AOSD_TRIGGER_VOL_CHANGE] = { N_("Volume Change") ,
+                                N_("Volume blah blah.") ,
+                                aosd_trigger_func_vol_change_onoff ,
+                                aosd_trigger_func_vol_change_cb }
 };
 
 
@@ -176,7 +185,7 @@
 
 
 static void
-aosd_trigger_func_pb_titlechange_onff ( gboolean turn_on )
+aosd_trigger_func_pb_titlechange_onoff ( gboolean turn_on )
 {
   static aosd_pb_titlechange_prevs_t *prevs = NULL;
 
@@ -249,3 +258,16 @@
     }
   }
 }
+
+
+static void
+aosd_trigger_func_vol_change_onoff ( gboolean turn_on )
+{
+  return;
+}
+
+static void
+aosd_trigger_func_vol_change_cb ( gpointer plentry_gp , gpointer prevs_gp )
+{
+  return;
+}