diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-06-20 23:29:19 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-06-20 23:29:19 +0000 |
commit | 5830bf89b5bb3eb48fa84ed690a726be3a82e129 (patch) | |
tree | ffccd98b302bb7b4e18bc2acca6500d5f4cfe648 /gdk/gdkintl.h | |
parent | 4251a51edc15c41799d87d3e26761c2064507df6 (diff) | |
download | gdk-pixbuf-5830bf89b5bb3eb48fa84ed690a726be3a82e129.tar.gz |
Add a singleton object that we can use to get notification when displays
Thu Jun 20 16:49:00 2002 Owen Taylor <otaylor@redhat.com>
* gdk/gdkdisplaymanager.[ch] gdk/gdk.[ch] gdk/gdkdisplay.c
gdk/gdkinternals.h gdk/x11/gdkdisplay-x11.c
gdk/win32/gdkdisplay-win32.c: Add a singleton object that
we can use to get notification when displays
appear / disappear or the default display changes.
gdk_set_default_display() => gdk_display_manager_set_default_display()
gdk_list_displays() => gdk_display_manager_list_displays().
(#85696)
* gdk/Makefile.am gdk/gdkmarshalers.list: Add marshaler
generation.
* gdk/gdkintl.h: Add this.
* gtk/gtkmain.c: Add gtk_parse_args() that initializes
GTK+ without opening a display.
* gtk/gtkmain.c: Set things up so if a module
exports gtk_module_init() and gtk_module_display_init(),
then we treat it as multihead aware, otherwise,
we only initialize it after the default display is set.
Diffstat (limited to 'gdk/gdkintl.h')
-rw-r--r-- | gdk/gdkintl.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/gdk/gdkintl.h b/gdk/gdkintl.h new file mode 100644 index 000000000..7cb426e9c --- /dev/null +++ b/gdk/gdkintl.h @@ -0,0 +1,24 @@ +#ifndef __GDKINTL_H__ +#define __GDKINTL_H__ + +#include "config.h" + +#ifdef ENABLE_NLS +#include<libintl.h> +#define _(String) dgettext(GETTEXT_PACKAGE,String) +#ifdef gettext_noop +#define N_(String) gettext_noop(String) +#else +#define N_(String) (String) +#endif +#else /* NLS is disabled */ +#define _(String) (String) +#define N_(String) (String) +#define textdomain(String) (String) +#define gettext(String) (String) +#define dgettext(Domain,String) (String) +#define dcgettext(Domain,String,Type) (String) +#define bindtextdomain(Domain,Directory) (Domain) +#endif + +#endif |