1 #ifdef HAVE_CONFIG_H 2 # include <config.h> 3 #endif 4 5 #include <gtk/gtk.h> 6 7 /* 8 * Standard gettext macros. 9 */ 10 #ifdef ENABLE_NLS 11 # include <libintl.h> 12 # undef _ 13 # define _(String) dgettext (PACKAGE, String) 14 # define Q_(String) g_strip_context ((String), gettext (String)) 15 # ifdef gettext_noop 16 # define N_(String) gettext_noop (String) 17 # else 18 # define N_(String) (String) 19 # endif 20 #else 21 # define textdomain(String) (String) 22 # define gettext(String) (String) 23 # define dgettext(Domain,Message) (Message) 24 # define dcgettext(Domain,Message,Type) (Message) 25 # define bindtextdomain(Domain,Directory) (Domain) 26 # define _(String) (String) 27 # define Q_(String) g_strip_context ((String), (String)) 28 # define N_(String) (String) 29 #endif 30 31 32 /* 33 * Public Functions. 34 */ 35 36 /* 37 * This function returns a widget in a component created by Glade. 38 * Call it with the toplevel widget in the component (i.e. a window/dialog), 39 * or alternatively any widget in the component, and the name of the widget 40 * you want returned. 41 */ 42 GtkWidget* lookup_widget (GtkWidget *widget, 43 const gchar *widget_name); 44 45 46 /* Use this function to set the directory containing installed pixmaps. */ 47 void add_pixmap_directory (const gchar *directory); 48 49 50 /* 51 * Private Functions. 52 */ 53 54 /* This is used to create the pixmaps used in the interface. */ 55 GtkWidget* create_pixmap (GtkWidget *widget, 56 const gchar *filename); 57 58 /* This is used to create the pixbufs used in the interface. */ 59 GdkPixbuf* create_pixbuf (const gchar *filename); 60 61 /* This is used to set ATK action descriptions. */ 62 void glade_set_atk_action_description (AtkAction *action, 63 const gchar *action_name, 64 const gchar *description); 65 66