~ubuntu-branches/ubuntu/jaunty/xvidcap/jaunty-proposed

« back to all changes in this revision

Viewing changes to src/gtk2_support.h

  • Committer: Bazaar Package Importer
  • Author(s): Christian Marillat
  • Date: 2004-08-29 10:53:42 UTC
  • Revision ID: james.westby@ubuntu.com-20040829105342-qgmnry37eadfkoxx
Tags: upstream-1.1.3
ImportĀ upstreamĀ versionĀ 1.1.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * gtk2_support.h
 
3
 *
 
4
 * Copyright (C) 1997 Rasca Gmelch, Berlin
 
5
 *
 
6
 * This program is free software; you can redistribute it and/or modify
 
7
 * it under the terms of the GNU General Public License as published by
 
8
 * the Free Software Foundation; either version 2 of the License, or
 
9
 * (at your option) any later version.
 
10
 *
 
11
 * This program is distributed in the hope that it will be useful,
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
 * GNU General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU General Public License
 
17
 * along with this program; if not, write to the Free Software
 
18
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
19
 */
 
20
 
 
21
 
 
22
 
 
23
#include "../config.h"
 
24
 
 
25
#include <gtk/gtk.h>
 
26
 
 
27
/*
 
28
 * Standard gettext macros.
 
29
 */
 
30
#ifdef ENABLE_NLS
 
31
#  include <libintl.h>
 
32
#  undef _
 
33
#  define _(String) dgettext (PACKAGE, String)
 
34
#  ifdef gettext_noop
 
35
#    define N_(String) gettext_noop (String)
 
36
#  else
 
37
#    define N_(String) (String)
 
38
#  endif
 
39
#else
 
40
#  define textdomain(String) (String)
 
41
#  define gettext(String) (String)
 
42
#  define dgettext(Domain,Message) (Message)
 
43
#  define dcgettext(Domain,Message,Type) (Message)
 
44
#  define bindtextdomain(Domain,Directory) (Domain)
 
45
#  define _(String) (String)
 
46
#  define N_(String) (String)
 
47
#endif
 
48
 
 
49
 
 
50
/*
 
51
 * Public Functions.
 
52
 */
 
53
 
 
54
/*
 
55
 * This function returns a widget in a component created by Glade.
 
56
 * Call it with the toplevel widget in the component (i.e. a window/dialog),
 
57
 * or alternatively any widget in the component, and the name of the widget
 
58
 * you want returned.
 
59
 */
 
60
GtkWidget*  lookup_widget              (GtkWidget       *widget,
 
61
                                        const gchar     *widget_name);
 
62
 
 
63
 
 
64
/* Use this function to set the directory containing installed pixmaps. */
 
65
void        add_pixmap_directory       (const gchar     *directory);
 
66
 
 
67
 
 
68
/*
 
69
 * Private Functions.
 
70
 */
 
71
 
 
72
/* This is used to create the pixmaps used in the interface. */
 
73
GtkWidget*  create_pixmap              (GtkWidget       *widget,
 
74
                                        const gchar     *filename);
 
75
 
 
76
/* This is used to create the pixbufs used in the interface. */
 
77
GdkPixbuf*  create_pixbuf              (const gchar     *filename);
 
78
 
 
79
/* This is used to set ATK action descriptions. */
 
80
void        glade_set_atk_action_description (AtkAction       *action,
 
81
                                              const gchar     *action_name,
 
82
                                              const gchar     *description);
 
83
 
 
84