]> git.sesse.net Git - vlc/blobdiff - plugins/gtk/gtk_preferences.c
* Fixed the BeOS compile typo.
[vlc] / plugins / gtk / gtk_preferences.c
index 3f567fe37a11b12ed8edffafdb5e77c55cc00ba8..647c907b95626ab3622526235cef7e07b3102400 100644 (file)
@@ -2,7 +2,7 @@
  * gtk_control.c : functions to handle stream control buttons.
  *****************************************************************************
  * Copyright (C) 2000, 2001 VideoLAN
- * $Id: gtk_preferences.c,v 1.1 2001/05/15 01:01:44 stef Exp $
+ * $Id: gtk_preferences.c,v 1.5 2001/05/30 17:03:12 sam Exp $
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
  *          Stéphane Borel <stef@via.ecp.fr>
@@ -22,9 +22,6 @@
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
  *****************************************************************************/
 
-#define MODULE_NAME gtk
-#include "modules_inner.h"
-
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
@@ -56,6 +53,8 @@
 
 #include "main.h"
 
+#include "modules_export.h"
+
 /****************************************************************************
  * GtkPreferencesShow: display interface window after initialization
  * if necessary
@@ -111,7 +110,7 @@ gboolean GtkPreferencesShow( GtkWidget       *widget,
                           "preferences_network_port_spinbutton" );
     
         /* Broadcast address */
-        ASSIGN_PSZ_ENTRY( INPUT_BCAST_ADRR_VAR, INPUT_BCAST_ADDR_DEFAULT,
+        ASSIGN_PSZ_ENTRY( INPUT_BCAST_ADDR_VAR, INPUT_BCAST_ADDR_DEFAULT,
                           "preferences_network_broadcast_entry" );
     
         /* Broadcast stream by default ? */
@@ -236,7 +235,7 @@ void GtkPreferencesApply( GtkButton * button, gpointer user_data )
     ASSIGN_INT_VALUE( INPUT_PORT_VAR, "preferences_network_port_spinbutton" );
 
     /* Broadcast address */
-    ASSIGN_PSZ_ENTRY( INPUT_BCAST_ADRR_VAR,
+    ASSIGN_PSZ_ENTRY( INPUT_BCAST_ADDR_VAR,
                       "preferences_network_broadcast_entry" );
 
     /* Broadcast stream by default ? */
@@ -318,3 +317,11 @@ void GtkPreferencesCancel( GtkButton * button, gpointer user_data )
 {
     gtk_widget_hide( gtk_widget_get_toplevel( GTK_WIDGET (button) ) );
 }
+
+/****************************************************************************
+ * Callbacks for menuitems
+ ****************************************************************************/
+void GtkPreferencesActivate( GtkMenuItem * menuitem, gpointer user_data )
+{
+    GtkPreferencesShow( GTK_WIDGET( menuitem ), NULL, user_data );
+}