~ubuntu-branches/ubuntu/maverick/zapping/maverick

« back to all changes in this revision

Viewing changes to src/interface.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2005-03-08 23:19:08 UTC
  • mfrom: (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20050308231908-oip7rfv6lcmo8c0e
Tags: 0.9.2-2ubuntu1
Rebuilt for Python transition (2.3 -> 2.4)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef __INTERFACE_H__
2
 
#define __INTERFACE_H__
3
 
 
4
 
/**
5
 
 * Finds in the tree the given widget, returns a pointer to it or NULL
6
 
 * if not found
7
 
 */
8
 
GtkWidget *
9
 
find_widget (GtkWidget * parent, const gchar * name);
10
 
 
11
 
/*
12
 
 * Tries to find a widget, that is accesible though parent, named
13
 
 * name. IMHO this should be called glade_lookup_widget and go into
14
 
 * libglade, but anyway...
15
 
 * If the widget isn't found, a message is printed and the program
16
 
 * quits, it always returns a valid widget.
17
 
 */
18
 
GtkWidget *
19
 
lookup_widget (GtkWidget * parent, const gchar * name);
20
 
 
21
 
/**
22
 
 * Registers a widget created by the app so lookup_widget finds it.
23
 
 */
24
 
void
25
 
register_widget(GtkWidget * widget, const char * name);
26
 
 
27
 
/*
28
 
 * Change toolbar style of main window. Pass widget == NULL.
29
 
 */
30
 
void
31
 
change_toolbar_style (GtkWidget *widget, int style);
32
 
 
33
 
extern GtkWidget *
34
 
build_widget(const gchar* name, const gchar* file);
35
 
GtkWidget* create_zapping (void);
36
 
//GtkWidget* create_zapping_properties (void);
37
 
GtkWidget* create_about2 (void);
38
 
//GtkWidget* create_plugin_properties (void);
39
 
GtkWidget* create_popup_menu1 (void);
40
 
//GtkWidget* create_searching (void);
41
 
//GtkWidget* create_txtcontrols (void);
42
 
#endif
 
1
/*
 
2
 *  Zapping (TV viewer for the Gnome Desktop)
 
3
 *
 
4
 * Copyright (C) 2001 I�aki Garc�a Etxebarria
 
5
 * Copyright (C) 2003 Michael H. Schimek
 
6
 *
 
7
 * This program is free software; you can redistribute it and/or modify
 
8
 * it under the terms of the GNU General Public License as published by
 
9
 * the Free Software Foundation; either version 2 of the License, or
 
10
 * (at your option) any later version.
 
11
 *
 
12
 * This program is distributed in the hope that it will be useful,
 
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
 * GNU General Public License for more details.
 
16
 *
 
17
 * You should have received a copy of the GNU General Public License
 
18
 * along with this program; if not, write to the Free Software
 
19
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
20
 */
 
21
 
 
22
/* $Id: interface.h,v 1.19 2005/01/08 14:54:28 mschimek Exp $ */
 
23
 
 
24
#ifndef INTERFACE_H
 
25
#define INTERFACE_H
 
26
 
 
27
#include <gtk/gtk.h>
 
28
 
 
29
extern GtkWidget *
 
30
find_widget                     (GtkWidget *            parent,
 
31
                                 const gchar *          name);
 
32
extern GtkWidget *
 
33
lookup_widget                   (GtkWidget *            parent,
 
34
                                 const gchar *          name);
 
35
extern void
 
36
register_widget                 (GtkWidget *            parent,
 
37
                                 GtkWidget *            widget,
 
38
                                 const char *           name);
 
39
extern GtkWidget *
 
40
build_widget                    (const gchar *          name,
 
41
                                 const gchar *          file);
 
42
 
 
43
#endif /* INTERFACE_H */