~ubuntu-branches/debian/wheezy/vlc/wheezy

« back to all changes in this revision

Viewing changes to modules/gui/gtk/modules.c

Tags: upstream-0.7.2.final
Import upstream version 0.7.2.final

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*****************************************************************************
 
2
 * gtk_modules.c : functions to build modules configuration boxes.
 
3
 *****************************************************************************
 
4
 * Copyright (C) 2000, 2001 VideoLAN
 
5
 * $Id: modules.c 6961 2004-03-05 17:34:23Z sam $
 
6
 *
 
7
 * Authors: Samuel Hocevar <sam@zoy.org>
 
8
 *          St�phane Borel <stef@via.ecp.fr>
 
9
 *      
 
10
 * This program is free software; you can redistribute it and/or modify
 
11
 * it under the terms of the GNU General Public License as published by
 
12
 * the Free Software Foundation; either version 2 of the License, or
 
13
 * (at your option) any later version.
 
14
 * 
 
15
 * This program is distributed in the hope that it will be useful,
 
16
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
17
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
18
 * GNU General Public License for more details.
 
19
 *
 
20
 * You should have received a copy of the GNU General Public License
 
21
 * along with this program; if not, write to the Free Software
 
22
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
 
23
 *****************************************************************************/
 
24
 
 
25
/*****************************************************************************
 
26
 * Preamble
 
27
 *****************************************************************************/
 
28
#include <sys/types.h>                                              /* off_t */
 
29
#include <stdlib.h>
 
30
 
 
31
#include <vlc/vlc.h>
 
32
#include <vlc/intf.h>
 
33
 
 
34
#ifdef MODULE_NAME_IS_gnome
 
35
#   include <gnome.h>
 
36
#else
 
37
#   include <gtk/gtk.h>
 
38
#endif
 
39
 
 
40
#include <string.h>
 
41
 
 
42
#include "gtk_callbacks.h"
 
43
#include "gtk_interface.h"
 
44
#include "gtk_support.h"
 
45
 
 
46
#include "playlist.h"
 
47
#include "common.h"
 
48
 
 
49
gboolean GtkModulesShow( GtkWidget       *widget,
 
50
                         gpointer         user_data )
 
51
{
 
52
    intf_thread_t *p_intf = GtkGetIntf( widget );
 
53
 
 
54
    if( !GTK_IS_WIDGET( p_intf->p_sys->p_modules ) )
 
55
    {
 
56
/*        p_intf->p_sys->p_modules = create_intf_modules(); */
 
57
        gtk_object_set_data( GTK_OBJECT( p_intf->p_sys->p_modules ),
 
58
                             "p_intf", p_intf );
 
59
    }
 
60
    gtk_widget_show( p_intf->p_sys->p_modules );
 
61
    gdk_window_raise( p_intf->p_sys->p_modules->window );
 
62
 
 
63
    return FALSE;
 
64
}
 
65
 
 
66
void GtkModulesCancel( GtkButton * button, gpointer user_data )
 
67
{
 
68
    intf_thread_t *p_intf = GtkGetIntf( button );
 
69
 
 
70
    gtk_widget_hide( p_intf->p_sys->p_modules );
 
71
}
 
72