forked from AuroraMiddleware/gtk
added gdkdisplay and gdkscreen
2002-06-10 Hans Breuer <hans@breuer.org> * gdk/makefile.msc : added gdkdisplay and gdkscreen * gdk/win32/gdkdisplay-win32.c (gdk_open_display) : need to gdk_screen_set_default_colormap(). Also un-static some exported gdk_display_*() functions * gdk/win32/gdkdrawable-win32.c : added "gdkscreen.h" * gdk/win32/gdkscreen-win32.c : implement gdk_screen_get_number, fixed typo, added rewuired headers [merge from 2.0.x branch, should we really manifest GtkPlug as being an X11 only thing this way? See #58541] * gtk/gtkwindow.c (gtk_window_show): Conditionalize GTK_IS_PLUG() check on GDK_WINDOWING_X11. (Problem reported by Sven Neumann)
This commit is contained in:
parent
663ec013a4
commit
6539a7d34c
19
ChangeLog
19
ChangeLog
@ -1,3 +1,22 @@
|
|||||||
|
2002-06-10 Hans Breuer <hans@breuer.org>
|
||||||
|
|
||||||
|
* gdk/makefile.msc : added gdkdisplay and gdkscreen
|
||||||
|
|
||||||
|
* gdk/win32/gdkdisplay-win32.c (gdk_open_display) :
|
||||||
|
need to gdk_screen_set_default_colormap(). Also un-static
|
||||||
|
some exported gdk_display_*() functions
|
||||||
|
|
||||||
|
* gdk/win32/gdkdrawable-win32.c : added "gdkscreen.h"
|
||||||
|
|
||||||
|
* gdk/win32/gdkscreen-win32.c : implement
|
||||||
|
gdk_screen_get_number, fixed typo, added rewuired headers
|
||||||
|
|
||||||
|
[merge from 2.0.x branch, should we really manifest
|
||||||
|
GtkPlug as being an X11 only thing this way? See #58541]
|
||||||
|
* gtk/gtkwindow.c (gtk_window_show): Conditionalize
|
||||||
|
GTK_IS_PLUG() check on GDK_WINDOWING_X11. (Problem
|
||||||
|
reported by Sven Neumann)
|
||||||
|
|
||||||
2002-06-10 Tor Lillqvist <tml@iki.fi>
|
2002-06-10 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
[ merge from stable ]
|
[ merge from stable ]
|
||||||
|
@ -1,3 +1,22 @@
|
|||||||
|
2002-06-10 Hans Breuer <hans@breuer.org>
|
||||||
|
|
||||||
|
* gdk/makefile.msc : added gdkdisplay and gdkscreen
|
||||||
|
|
||||||
|
* gdk/win32/gdkdisplay-win32.c (gdk_open_display) :
|
||||||
|
need to gdk_screen_set_default_colormap(). Also un-static
|
||||||
|
some exported gdk_display_*() functions
|
||||||
|
|
||||||
|
* gdk/win32/gdkdrawable-win32.c : added "gdkscreen.h"
|
||||||
|
|
||||||
|
* gdk/win32/gdkscreen-win32.c : implement
|
||||||
|
gdk_screen_get_number, fixed typo, added rewuired headers
|
||||||
|
|
||||||
|
[merge from 2.0.x branch, should we really manifest
|
||||||
|
GtkPlug as being an X11 only thing this way? See #58541]
|
||||||
|
* gtk/gtkwindow.c (gtk_window_show): Conditionalize
|
||||||
|
GTK_IS_PLUG() check on GDK_WINDOWING_X11. (Problem
|
||||||
|
reported by Sven Neumann)
|
||||||
|
|
||||||
2002-06-10 Tor Lillqvist <tml@iki.fi>
|
2002-06-10 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
[ merge from stable ]
|
[ merge from stable ]
|
||||||
|
@ -1,3 +1,22 @@
|
|||||||
|
2002-06-10 Hans Breuer <hans@breuer.org>
|
||||||
|
|
||||||
|
* gdk/makefile.msc : added gdkdisplay and gdkscreen
|
||||||
|
|
||||||
|
* gdk/win32/gdkdisplay-win32.c (gdk_open_display) :
|
||||||
|
need to gdk_screen_set_default_colormap(). Also un-static
|
||||||
|
some exported gdk_display_*() functions
|
||||||
|
|
||||||
|
* gdk/win32/gdkdrawable-win32.c : added "gdkscreen.h"
|
||||||
|
|
||||||
|
* gdk/win32/gdkscreen-win32.c : implement
|
||||||
|
gdk_screen_get_number, fixed typo, added rewuired headers
|
||||||
|
|
||||||
|
[merge from 2.0.x branch, should we really manifest
|
||||||
|
GtkPlug as being an X11 only thing this way? See #58541]
|
||||||
|
* gtk/gtkwindow.c (gtk_window_show): Conditionalize
|
||||||
|
GTK_IS_PLUG() check on GDK_WINDOWING_X11. (Problem
|
||||||
|
reported by Sven Neumann)
|
||||||
|
|
||||||
2002-06-10 Tor Lillqvist <tml@iki.fi>
|
2002-06-10 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
[ merge from stable ]
|
[ merge from stable ]
|
||||||
|
@ -1,3 +1,22 @@
|
|||||||
|
2002-06-10 Hans Breuer <hans@breuer.org>
|
||||||
|
|
||||||
|
* gdk/makefile.msc : added gdkdisplay and gdkscreen
|
||||||
|
|
||||||
|
* gdk/win32/gdkdisplay-win32.c (gdk_open_display) :
|
||||||
|
need to gdk_screen_set_default_colormap(). Also un-static
|
||||||
|
some exported gdk_display_*() functions
|
||||||
|
|
||||||
|
* gdk/win32/gdkdrawable-win32.c : added "gdkscreen.h"
|
||||||
|
|
||||||
|
* gdk/win32/gdkscreen-win32.c : implement
|
||||||
|
gdk_screen_get_number, fixed typo, added rewuired headers
|
||||||
|
|
||||||
|
[merge from 2.0.x branch, should we really manifest
|
||||||
|
GtkPlug as being an X11 only thing this way? See #58541]
|
||||||
|
* gtk/gtkwindow.c (gtk_window_show): Conditionalize
|
||||||
|
GTK_IS_PLUG() check on GDK_WINDOWING_X11. (Problem
|
||||||
|
reported by Sven Neumann)
|
||||||
|
|
||||||
2002-06-10 Tor Lillqvist <tml@iki.fi>
|
2002-06-10 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
[ merge from stable ]
|
[ merge from stable ]
|
||||||
|
@ -1,3 +1,22 @@
|
|||||||
|
2002-06-10 Hans Breuer <hans@breuer.org>
|
||||||
|
|
||||||
|
* gdk/makefile.msc : added gdkdisplay and gdkscreen
|
||||||
|
|
||||||
|
* gdk/win32/gdkdisplay-win32.c (gdk_open_display) :
|
||||||
|
need to gdk_screen_set_default_colormap(). Also un-static
|
||||||
|
some exported gdk_display_*() functions
|
||||||
|
|
||||||
|
* gdk/win32/gdkdrawable-win32.c : added "gdkscreen.h"
|
||||||
|
|
||||||
|
* gdk/win32/gdkscreen-win32.c : implement
|
||||||
|
gdk_screen_get_number, fixed typo, added rewuired headers
|
||||||
|
|
||||||
|
[merge from 2.0.x branch, should we really manifest
|
||||||
|
GtkPlug as being an X11 only thing this way? See #58541]
|
||||||
|
* gtk/gtkwindow.c (gtk_window_show): Conditionalize
|
||||||
|
GTK_IS_PLUG() check on GDK_WINDOWING_X11. (Problem
|
||||||
|
reported by Sven Neumann)
|
||||||
|
|
||||||
2002-06-10 Tor Lillqvist <tml@iki.fi>
|
2002-06-10 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
[ merge from stable ]
|
[ merge from stable ]
|
||||||
|
@ -1,3 +1,22 @@
|
|||||||
|
2002-06-10 Hans Breuer <hans@breuer.org>
|
||||||
|
|
||||||
|
* gdk/makefile.msc : added gdkdisplay and gdkscreen
|
||||||
|
|
||||||
|
* gdk/win32/gdkdisplay-win32.c (gdk_open_display) :
|
||||||
|
need to gdk_screen_set_default_colormap(). Also un-static
|
||||||
|
some exported gdk_display_*() functions
|
||||||
|
|
||||||
|
* gdk/win32/gdkdrawable-win32.c : added "gdkscreen.h"
|
||||||
|
|
||||||
|
* gdk/win32/gdkscreen-win32.c : implement
|
||||||
|
gdk_screen_get_number, fixed typo, added rewuired headers
|
||||||
|
|
||||||
|
[merge from 2.0.x branch, should we really manifest
|
||||||
|
GtkPlug as being an X11 only thing this way? See #58541]
|
||||||
|
* gtk/gtkwindow.c (gtk_window_show): Conditionalize
|
||||||
|
GTK_IS_PLUG() check on GDK_WINDOWING_X11. (Problem
|
||||||
|
reported by Sven Neumann)
|
||||||
|
|
||||||
2002-06-10 Tor Lillqvist <tml@iki.fi>
|
2002-06-10 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
[ merge from stable ]
|
[ merge from stable ]
|
||||||
|
@ -66,6 +66,7 @@ gdk_OBJECTS = \
|
|||||||
gdk.obj \
|
gdk.obj \
|
||||||
gdkcolor.obj \
|
gdkcolor.obj \
|
||||||
gdkcursor.obj \
|
gdkcursor.obj \
|
||||||
|
gdkdisplay.obj \
|
||||||
gdkdraw.obj \
|
gdkdraw.obj \
|
||||||
gdkenumtypes.obj \
|
gdkenumtypes.obj \
|
||||||
gdkevents.obj \
|
gdkevents.obj \
|
||||||
@ -83,6 +84,7 @@ gdk_OBJECTS = \
|
|||||||
gdkrectangle.obj \
|
gdkrectangle.obj \
|
||||||
gdkregion-generic.obj \
|
gdkregion-generic.obj \
|
||||||
gdkrgb.obj \
|
gdkrgb.obj \
|
||||||
|
gdkscreen.obj \
|
||||||
gdkselection.obj \
|
gdkselection.obj \
|
||||||
gdkvisual.obj \
|
gdkvisual.obj \
|
||||||
gdkwindow.obj
|
gdkwindow.obj
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
* Boston, MA 02111-1307, USA.
|
* Boston, MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "gdk.h" /* gdk_get_display_arg_name() */
|
||||||
#include "gdkdisplay.h"
|
#include "gdkdisplay.h"
|
||||||
#include "gdkscreen.h"
|
#include "gdkscreen.h"
|
||||||
#include "gdkprivate-win32.h"
|
#include "gdkprivate-win32.h"
|
||||||
@ -42,6 +43,8 @@ gdk_open_display (const gchar *display_name)
|
|||||||
gdk_set_default_display (_gdk_display);
|
gdk_set_default_display (_gdk_display);
|
||||||
|
|
||||||
_gdk_visual_init ();
|
_gdk_visual_init ();
|
||||||
|
gdk_screen_set_default_colormap (_gdk_screen,
|
||||||
|
gdk_screen_get_system_colormap (_gdk_screen));
|
||||||
_gdk_windowing_window_init ();
|
_gdk_windowing_window_init ();
|
||||||
_gdk_windowing_image_init ();
|
_gdk_windowing_image_init ();
|
||||||
_gdk_events_init ();
|
_gdk_events_init ();
|
||||||
@ -57,22 +60,22 @@ gdk_display_get_display_name (GdkDisplay *display)
|
|||||||
return gdk_get_display_arg_name ();
|
return gdk_get_display_arg_name ();
|
||||||
}
|
}
|
||||||
|
|
||||||
static gint
|
gint
|
||||||
gdk_display_get_n_screens (GdkDisplay * display)
|
gdk_display_get_n_screens (GdkDisplay * display)
|
||||||
{
|
{
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static GdkScreen *
|
GdkScreen *
|
||||||
gdk_display_get_screen (GdkDisplay *display,
|
gdk_display_get_screen (GdkDisplay *display,
|
||||||
gint screen_num)
|
gint screen_num)
|
||||||
{
|
{
|
||||||
g_return_if_fail (screen_num == 0);
|
g_return_val_if_fail (screen_num == 0, _gdk_screen);
|
||||||
|
|
||||||
return _gdk_screen;
|
return _gdk_screen;
|
||||||
}
|
}
|
||||||
|
|
||||||
static GdkScreen *
|
GdkScreen *
|
||||||
gdk_display_get_default_screen (GdkDisplay * display)
|
gdk_display_get_default_screen (GdkDisplay * display)
|
||||||
{
|
{
|
||||||
return _gdk_screen;
|
return _gdk_screen;
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
|
|
||||||
#include <pango/pangowin32.h>
|
#include <pango/pangowin32.h>
|
||||||
|
|
||||||
|
#include "gdkscreen.h" /* gdk_get_default_screen() */
|
||||||
#include "gdkprivate-win32.h"
|
#include "gdkprivate-win32.h"
|
||||||
|
|
||||||
static void gdk_win32_draw_rectangle (GdkDrawable *drawable,
|
static void gdk_win32_draw_rectangle (GdkDrawable *drawable,
|
||||||
|
@ -18,8 +18,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <gdkscreen.h>
|
#include <gdkscreen.h>
|
||||||
|
#include "gdkprivate-win32.h" /* _gdk_parent_root */
|
||||||
|
#include "gdk.h" /* gdk_screen_width(), ... */
|
||||||
|
|
||||||
static GdkColormap *default_colormap;
|
static GdkColormap *default_colormap = NULL;
|
||||||
|
|
||||||
GdkDisplay *
|
GdkDisplay *
|
||||||
gdk_screen_get_display (GdkScreen *screen)
|
gdk_screen_get_display (GdkScreen *screen)
|
||||||
@ -49,7 +51,7 @@ void
|
|||||||
gdk_screen_set_default_colormap (GdkScreen *screen,
|
gdk_screen_set_default_colormap (GdkScreen *screen,
|
||||||
GdkColormap *colormap)
|
GdkColormap *colormap)
|
||||||
{
|
{
|
||||||
default_coloramp = colormap;
|
default_colormap = colormap;
|
||||||
}
|
}
|
||||||
|
|
||||||
gint
|
gint
|
||||||
@ -70,3 +72,11 @@ gdk_screen_get_monitor_geometry (GdkScreen *screen,
|
|||||||
dest->width = gdk_screen_width ();
|
dest->width = gdk_screen_width ();
|
||||||
dest->height = gdk_screen_height ();
|
dest->height = gdk_screen_height ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gint
|
||||||
|
gdk_screen_get_number (GdkScreen *screen)
|
||||||
|
{
|
||||||
|
g_return_val_if_fail (GDK_IS_SCREEN (screen), 0);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
@ -3164,7 +3164,11 @@ gtk_window_show (GtkWidget *widget)
|
|||||||
|
|
||||||
/* Try to make sure that we have some focused widget
|
/* Try to make sure that we have some focused widget
|
||||||
*/
|
*/
|
||||||
|
#ifdef GDK_WINDOWING_X11
|
||||||
if (!window->focus_widget && !GTK_IS_PLUG (window))
|
if (!window->focus_widget && !GTK_IS_PLUG (window))
|
||||||
|
#else
|
||||||
|
if (!window->focus_widget)
|
||||||
|
#endif
|
||||||
gtk_window_move_focus (window, GTK_DIR_TAB_FORWARD);
|
gtk_window_move_focus (window, GTK_DIR_TAB_FORWARD);
|
||||||
|
|
||||||
if (window->modal)
|
if (window->modal)
|
||||||
|
Loading…
Reference in New Issue
Block a user