modules.c
上传用户:riyaled888
上传日期:2009-03-27
资源大小:7338k
文件大小:2k
- /*****************************************************************************
- * gtk_modules.c : functions to build modules configuration boxes.
- *****************************************************************************
- * Copyright (C) 2000, 2001 VideoLAN
- * $Id: modules.c 6961 2004-03-05 17:34:23Z sam $
- *
- * Authors: Samuel Hocevar <sam@zoy.org>
- * St閜hane Borel <stef@via.ecp.fr>
- *
- * This program 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 of the License, or
- * (at your option) any later version.
- *
- * This program 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 this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
- *****************************************************************************/
- /*****************************************************************************
- * Preamble
- *****************************************************************************/
- #include <sys/types.h> /* off_t */
- #include <stdlib.h>
- #include <vlc/vlc.h>
- #include <vlc/intf.h>
- #ifdef MODULE_NAME_IS_gnome
- # include <gnome.h>
- #else
- # include <gtk/gtk.h>
- #endif
- #include <string.h>
- #include "gtk_callbacks.h"
- #include "gtk_interface.h"
- #include "gtk_support.h"
- #include "playlist.h"
- #include "common.h"
- gboolean GtkModulesShow( GtkWidget *widget,
- gpointer user_data )
- {
- intf_thread_t *p_intf = GtkGetIntf( widget );
- if( !GTK_IS_WIDGET( p_intf->p_sys->p_modules ) )
- {
- /* p_intf->p_sys->p_modules = create_intf_modules(); */
- gtk_object_set_data( GTK_OBJECT( p_intf->p_sys->p_modules ),
- "p_intf", p_intf );
- }
- gtk_widget_show( p_intf->p_sys->p_modules );
- gdk_window_raise( p_intf->p_sys->p_modules->window );
- return FALSE;
- }
- void GtkModulesCancel( GtkButton * button, gpointer user_data )
- {
- intf_thread_t *p_intf = GtkGetIntf( button );
- gtk_widget_hide( p_intf->p_sys->p_modules );
- }