📄 modules.c
字号:
/***************************************************************************** * gtk_modules.c : functions to build modules configuration boxes. ***************************************************************************** * Copyright (C) 2000, 2001 VideoLAN * $Id: modules.c 10101 2005-03-02 16:47:31Z robux4 $ * * 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 );}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -