1
/* GDK - The GIMP Drawing Kit
2
* Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
4
* This library is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU Lesser General Public
6
* License as published by the Free Software Foundation; either
7
* version 2 of the License, or (at your option) any later version.
9
* This library is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
* Lesser General Public License for more details.
14
* You should have received a copy of the GNU Lesser General Public
15
* License along with this library; if not, write to the
16
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17
* Boston, MA 02111-1307, USA.
21
* Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
22
* file for a list of people on the GTK+ Team. See the ChangeLog
23
* files for a list of changes. These files are distributed with
24
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
29
#include "gdkprivate-fb.h"
32
gdk_display_open (const gchar *display_name)
34
if (gdk_display == NULL || _gdk_display != NULL)
35
return NULL; /* single display only */
37
_gdk_display = g_object_new (GDK_TYPE_DISPLAY, NULL);
38
_gdk_screen = g_object_new (GDK_TYPE_SCREEN, NULL);
41
gdk_screen_set_default_colormap (_gdk_screen,
42
gdk_screen_get_system_colormap (_gdk_screen));
43
_gdk_windowing_window_init ();
44
_gdk_windowing_image_init ();
49
g_signal_emit_by_name (gdk_display_manager_get (),
50
"display_opened", _gdk_display);
55
G_CONST_RETURN gchar *
56
gdk_display_get_name (GdkDisplay *display)
58
return gdk_get_display_arg_name ();
62
gdk_display_get_n_screens (GdkDisplay *display)
68
gdk_display_get_screen (GdkDisplay *display,
75
gdk_display_get_default_screen (GdkDisplay *display)