mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 23:10:22 +00:00
5830bf89b5
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.
25 lines
562 B
C
25 lines
562 B
C
#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
|