jigdo API
Last update by Admin on 2010-05-23
gtk/support.hh
Go to the documentation of this file.00001 /* $Id: gtk-support.hh,v 1.4 2003/02/07 15:27:09 richard Exp $ 00002 00003 Originally created by glade, modified by Richard Atterer. 00004 00005 */ 00006 00007 #ifndef GTK_SUPPORT_HH 00008 #define GTK_SUPPORT_HH 00009 00010 #ifdef HAVE_CONFIG_H 00011 # include <config.h> 00012 #endif 00013 00014 #include <gtk/gtk.h> 00015 00016 /* 00017 * Standard gettext macros. 00018 */ 00019 #if ENABLE_NLS 00020 # include <libintl.h> 00021 # undef _ 00022 # define _(String) dgettext (PACKAGE, String) 00023 # ifdef gettext_noop 00024 # define N_(String) gettext_noop (String) 00025 # else 00026 # define N_(String) (String) 00027 # endif 00028 #else 00029 # define textdomain(String) (String) 00030 # define gettext(String) (String) 00031 # define dgettext(Domain,Message) (Message) 00032 # define dcgettext(Domain,Message,Type) (Message) 00033 # define bindtextdomain(Domain,Directory) (Domain) 00034 # define _(String) (String) 00035 # define N_(String) (String) 00036 #endif 00037 00038 00039 /* 00040 * Public Functions. 00041 */ 00042 00043 /* 00044 * This function returns a widget in a component created by Glade. 00045 * Call it with the toplevel widget in the component (i.e. a window/dialog), 00046 * or alternatively any widget in the component, and the name of the widget 00047 * you want returned. 00048 */ 00049 GtkWidget* lookup_widget (GtkWidget *widget, 00050 const gchar *widget_name); 00051 00052 00053 /* Use this function to set the directory containing installed pixmaps. */ 00054 void add_pixmap_directory (const gchar *directory); 00055 00056 00057 /* 00058 * Private Functions. 00059 */ 00060 00061 /* This is used to create the pixmaps used in the interface. */ 00062 GtkWidget* create_pixmap (GtkWidget *widget, 00063 const gchar *filename); 00064 00065 /* This is used to create the pixbufs used in the interface. */ 00066 GdkPixbuf* create_pixbuf (const gchar *filename); 00067 00068 /* This is used to set ATK action descriptions. */ 00069 void glade_set_atk_action_description (AtkAction *action, 00070 const gchar *action_name, 00071 const gchar *description); 00072 00073 #endif /* GTK_SUPPORT_HH */
Generated on Tue Sep 23 14:27:41 2008 for jigdo by
