[xiph-cvs] r6592 - trunk/postfish
xiphmont at xiph.org
xiphmont at xiph.org
Tue May 4 21:26:54 PDT 2004
Author: xiphmont
Date: 2004-04-24 03:52:18 -0400 (Sat, 24 Apr 2004)
New Revision: 6592
Added:
trunk/postfish/mutedummy.c
Log:
Add missing file to repository
<p>Added: trunk/postfish/mutedummy.c
===================================================================
--- trunk/postfish/mutedummy.c 2004-04-24 07:51:36 UTC (rev 6591)
+++ trunk/postfish/mutedummy.c 2004-04-24 07:52:18 UTC (rev 6592)
@@ -0,0 +1,53 @@
+/*
+ *
+ * postfish
+ *
+ * Copyright (C) 2002-2004 Monty
+ *
+ * Postfish is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ *
+ * Postfish is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Postfish; see the file COPYING. If not, write to the
+ * Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+ *
+ *
+ */
+
+#include "postfish.h"
+#include <gtk/gtk.h>
+#include <gdk/gdkkeysyms.h>
+#include "readout.h"
+#include "multibar.h"
+#include "mainpanel.h"
+#include "mutedummy.h"
+
+extern sig_atomic_t *mute_active;
+extern int input_ch;
+
+static int activebutton_action(GtkWidget *widget,gpointer in){
+ int num=(int)in;
+ int active=gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget));
+ mute_active[num]=active;
+
+ return FALSE;
+}
+
+void mutedummy_create(postfish_mainpanel *mp,
+ GtkWidget **windowbutton,
+ GtkWidget **activebutton){
+ int i;
+
+ /* nothing to do here but slap an activation callback on each activebutton */
+ for(i=0;i<input_ch;i++)
+ g_signal_connect_after (G_OBJECT (activebutton[i]), "clicked",
+ G_CALLBACK (activebutton_action), (gpointer)i);
+
+}
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the commits
mailing list