1*1023804eSchristos 2*1023804eSchristos /* 3*1023804eSchristos * Licensed Materials - Property of IBM 4*1023804eSchristos * 5*1023804eSchristos * trousers - An open source TCG Software Stack 6*1023804eSchristos * 7*1023804eSchristos * (C) Copyright International Business Machines Corp. 2004 8*1023804eSchristos * 9*1023804eSchristos */ 10*1023804eSchristos 11*1023804eSchristos #ifndef _SUPPORT_H_ 12*1023804eSchristos #define _SUPPOR_H_ 13*1023804eSchristos 14*1023804eSchristos /* 15*1023804eSchristos * DO NOT EDIT THIS FILE - it is generated by Glade. 16*1023804eSchristos */ 17*1023804eSchristos 18*1023804eSchristos #ifdef HAVE_CONFIG_H 19*1023804eSchristos # include <config.h> 20*1023804eSchristos #endif 21*1023804eSchristos 22*1023804eSchristos #include <gtk/gtk.h> 23*1023804eSchristos 24*1023804eSchristos /* 25*1023804eSchristos * Standard gettext macros. 26*1023804eSchristos */ 27*1023804eSchristos #ifdef ENABLE_NLS 28*1023804eSchristos # include <libintl.h> 29*1023804eSchristos # undef _ 30*1023804eSchristos # define _(String) dgettext (PACKAGE, String) 31*1023804eSchristos # ifdef gettext_noop 32*1023804eSchristos # define N_(String) gettext_noop (String) 33*1023804eSchristos # else 34*1023804eSchristos # define N_(String) (String) 35*1023804eSchristos # endif 36*1023804eSchristos #else 37*1023804eSchristos # define textdomain(String) (String) 38*1023804eSchristos # define gettext(String) (String) 39*1023804eSchristos # define dgettext(Domain,Message) (Message) 40*1023804eSchristos # define dcgettext(Domain,Message,Type) (Message) 41*1023804eSchristos # define bindtextdomain(Domain,Directory) (Domain) 42*1023804eSchristos # define _(String) (String) 43*1023804eSchristos # define N_(String) (String) 44*1023804eSchristos #endif 45*1023804eSchristos 46*1023804eSchristos 47*1023804eSchristos /* 48*1023804eSchristos * Public Functions. 49*1023804eSchristos */ 50*1023804eSchristos 51*1023804eSchristos /* 52*1023804eSchristos * This function returns a widget in a component created by Glade. 53*1023804eSchristos * Call it with the toplevel widget in the component (i.e. a window/dialog), 54*1023804eSchristos * or alternatively any widget in the component, and the name of the widget 55*1023804eSchristos * you want returned. 56*1023804eSchristos */ 57*1023804eSchristos GtkWidget* lookup_widget (GtkWidget *widget, 58*1023804eSchristos const gchar *widget_name); 59*1023804eSchristos 60*1023804eSchristos 61*1023804eSchristos /* Use this function to set the directory containing installed pixmaps. */ 62*1023804eSchristos void __tspi_add_pixmap_directory (const gchar *directory); 63*1023804eSchristos 64*1023804eSchristos 65*1023804eSchristos /* 66*1023804eSchristos * Private Functions. 67*1023804eSchristos */ 68*1023804eSchristos 69*1023804eSchristos /* This is used to create the pixmaps used in the interface. */ 70*1023804eSchristos GtkWidget* create_pixmap (GtkWidget *widget, 71*1023804eSchristos const gchar *filename); 72*1023804eSchristos 73*1023804eSchristos /* This is used to create the pixbufs used in the interface. */ 74*1023804eSchristos GdkPixbuf* create_pixbuf (const gchar *filename); 75*1023804eSchristos 76*1023804eSchristos /* This is used to set ATK action descriptions. */ 77*1023804eSchristos void glade_set_atk_action_description (AtkAction *action, 78*1023804eSchristos const gchar *action_name, 79*1023804eSchristos const gchar *description); 80*1023804eSchristos 81*1023804eSchristos #endif 82