cuikplay_support.h
Go to the documentation of this file.
1 #ifndef CUIKPLAYSUPPORTH
2 #define CUIKPLAYSUPPORTH
3 
13 #include <gtk/gtk.h>
14 
15 /*
16  * Standard gettext macros.
17  */
18 #ifdef ENABLE_NLS
19 # include <libintl.h>
20 # undef _
21 # define _(String) dgettext (PACKAGE, String)
22 # define Q_(String) g_strip_context ((String), gettext (String))
23 # ifdef gettext_noop
24 # define N_(String) gettext_noop (String)
25 # else
26 # define N_(String) (String)
27 # endif
28 #else
29 # define textdomain(String) (String)
30 # define gettext(String) (String)
31 # define dgettext(Domain,Message) (Message)
32 # define dcgettext(Domain,Message,Type) (Message)
33 # define bindtextdomain(Domain,Directory) (Domain)
34 # define _(String) (String)
35 # define Q_(String) g_strip_context ((String), (String))
36 # define N_(String) (String)
37 #endif
38 
39 
40 #define GLADE_HOOKUP_OBJECT(component,widget,name) \
41  g_object_set_data_full (G_OBJECT (component), name, \
42  gtk_widget_ref (widget), (GDestroyNotify) gtk_widget_unref)
43 
44 #define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \
45  g_object_set_data (G_OBJECT (component), name, widget)
46 
47 /*
48  * Public Functions.
49  */
50 
51 /*
52  * This function returns a widget in a component created by Glade.
53  * Call it with the toplevel widget in the component (i.e. a window/dialog),
54  * or alternatively any widget in the component, and the name of the widget
55  * you want returned.
56  */
57 GtkWidget* lookup_widget (GtkWidget *widget,
58  const gchar *widget_name);
59 
60 
61 /* Use this function to set the directory containing installed pixmaps. */
62 void add_pixmap_directory (const gchar *directory);
63 
64 
65 /*
66  * Private Functions.
67  */
68 
69 /* This is used to create the pixmaps used in the interface. */
70 GtkWidget* create_pixmap (GtkWidget *widget,
71  const gchar *filename);
72 
73 /* This is used to create the pixbufs used in the interface. */
74 GdkPixbuf* create_pixbuf (const gchar *filename);
75 
76 /* This is used to set ATK action descriptions. */
77 void glade_set_atk_action_description (AtkAction *action,
78  const gchar *action_name,
79  const gchar *description);
80 
82 #endif