Delete the gdk_DC when exiting, just to be sure.
1999-09-21 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting, just to be sure. * gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of unused variables, leftovers from the X11 version. * gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd. * gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only downcase fields on X11.
13
ChangeLog
@ -1,3 +1,16 @@
|
||||
1999-09-21 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
|
||||
just to be sure.
|
||||
|
||||
* gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
|
||||
unused variables, leftovers from the X11 version.
|
||||
|
||||
* gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
|
||||
|
||||
* gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
|
||||
downcase fields on X11.
|
||||
|
||||
Mon Sep 20 13:17:39 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
|
||||
|
||||
* configure.in,po/pt_BR.po: added Portuguese Brazilian file from
|
||||
|
@ -1,3 +1,16 @@
|
||||
1999-09-21 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
|
||||
just to be sure.
|
||||
|
||||
* gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
|
||||
unused variables, leftovers from the X11 version.
|
||||
|
||||
* gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
|
||||
|
||||
* gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
|
||||
downcase fields on X11.
|
||||
|
||||
Mon Sep 20 13:17:39 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
|
||||
|
||||
* configure.in,po/pt_BR.po: added Portuguese Brazilian file from
|
||||
|
@ -1,3 +1,16 @@
|
||||
1999-09-21 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
|
||||
just to be sure.
|
||||
|
||||
* gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
|
||||
unused variables, leftovers from the X11 version.
|
||||
|
||||
* gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
|
||||
|
||||
* gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
|
||||
downcase fields on X11.
|
||||
|
||||
Mon Sep 20 13:17:39 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
|
||||
|
||||
* configure.in,po/pt_BR.po: added Portuguese Brazilian file from
|
||||
|
@ -1,3 +1,16 @@
|
||||
1999-09-21 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
|
||||
just to be sure.
|
||||
|
||||
* gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
|
||||
unused variables, leftovers from the X11 version.
|
||||
|
||||
* gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
|
||||
|
||||
* gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
|
||||
downcase fields on X11.
|
||||
|
||||
Mon Sep 20 13:17:39 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
|
||||
|
||||
* configure.in,po/pt_BR.po: added Portuguese Brazilian file from
|
||||
|
@ -1,3 +1,16 @@
|
||||
1999-09-21 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
|
||||
just to be sure.
|
||||
|
||||
* gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
|
||||
unused variables, leftovers from the X11 version.
|
||||
|
||||
* gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
|
||||
|
||||
* gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
|
||||
downcase fields on X11.
|
||||
|
||||
Mon Sep 20 13:17:39 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
|
||||
|
||||
* configure.in,po/pt_BR.po: added Portuguese Brazilian file from
|
||||
|
@ -1,3 +1,16 @@
|
||||
1999-09-21 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
|
||||
just to be sure.
|
||||
|
||||
* gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
|
||||
unused variables, leftovers from the X11 version.
|
||||
|
||||
* gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
|
||||
|
||||
* gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
|
||||
downcase fields on X11.
|
||||
|
||||
Mon Sep 20 13:17:39 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
|
||||
|
||||
* configure.in,po/pt_BR.po: added Portuguese Brazilian file from
|
||||
|
@ -1,3 +1,16 @@
|
||||
1999-09-21 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* gdk/win32/gdk.c (gdk_exit_func): Delete the gdk_DC when exiting,
|
||||
just to be sure.
|
||||
|
||||
* gdk/win32/gdkvisual.c (gdk_visual_init): Remove a couple of
|
||||
unused variables, leftovers from the X11 version.
|
||||
|
||||
* gdk/win32/rc/*.cur: Better cursors provided by Bernd Herd.
|
||||
|
||||
* gtk/gtkfontsel.c (gtk_font_selection_get_xlfd_field): Only
|
||||
downcase fields on X11.
|
||||
|
||||
Mon Sep 20 13:17:39 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
|
||||
|
||||
* configure.in,po/pt_BR.po: added Portuguese Brazilian file from
|
||||
|
@ -617,6 +617,8 @@ gdk_exit_func (void)
|
||||
gdk_input_exit ();
|
||||
gdk_key_repeat_restore ();
|
||||
gdk_dnd_exit ();
|
||||
DeleteDC (gdk_DC);
|
||||
gdk_DC = NULL;
|
||||
gdk_initialized = 0;
|
||||
}
|
||||
}
|
||||
|
@ -617,6 +617,8 @@ gdk_exit_func (void)
|
||||
gdk_input_exit ();
|
||||
gdk_key_repeat_restore ();
|
||||
gdk_dnd_exit ();
|
||||
DeleteDC (gdk_DC);
|
||||
gdk_DC = NULL;
|
||||
gdk_initialized = 0;
|
||||
}
|
||||
}
|
||||
|
@ -67,29 +67,13 @@ gdk_visual_init (void)
|
||||
} bmi;
|
||||
HBITMAP hbm;
|
||||
|
||||
static const gint possible_depths[7] = { 32, 24, 16, 15, 8, 4, 1 };
|
||||
static const GdkVisualType possible_types[6] =
|
||||
{
|
||||
GDK_VISUAL_DIRECT_COLOR,
|
||||
GDK_VISUAL_TRUE_COLOR,
|
||||
GDK_VISUAL_PSEUDO_COLOR,
|
||||
GDK_VISUAL_STATIC_COLOR,
|
||||
GDK_VISUAL_GRAYSCALE,
|
||||
GDK_VISUAL_STATIC_GRAY
|
||||
};
|
||||
|
||||
static const gint npossible_depths = sizeof(possible_depths)/sizeof(gint);
|
||||
static const gint npossible_types = sizeof(possible_types)/sizeof(GdkVisualType);
|
||||
|
||||
int rastercaps, numcolors, sizepalette, colorres, bitspixel;
|
||||
Visual *default_xvisual;
|
||||
int rastercaps, numcolors, sizepalette, bitspixel;
|
||||
|
||||
system_visual = g_new (GdkVisualPrivate, 1);
|
||||
|
||||
bitspixel = GetDeviceCaps (gdk_DC, BITSPIXEL);
|
||||
rastercaps = GetDeviceCaps (gdk_DC, RASTERCAPS);
|
||||
default_xvisual = g_new (Visual, 1);
|
||||
system_visual->xvisual = default_xvisual;
|
||||
system_visual->xvisual = g_new (Visual, 1);
|
||||
system_visual->xvisual->visualid = 0;
|
||||
system_visual->xvisual->bitspixel = bitspixel;
|
||||
|
||||
@ -98,7 +82,6 @@ gdk_visual_init (void)
|
||||
system_visual->visual.type = GDK_VISUAL_PSEUDO_COLOR;
|
||||
numcolors = GetDeviceCaps (gdk_DC, NUMCOLORS);
|
||||
sizepalette = GetDeviceCaps (gdk_DC, SIZEPALETTE);
|
||||
colorres = GetDeviceCaps (gdk_DC, COLORRES);
|
||||
system_visual->xvisual->map_entries = sizepalette;
|
||||
}
|
||||
else if (bitspixel == 1)
|
||||
|
@ -67,29 +67,13 @@ gdk_visual_init (void)
|
||||
} bmi;
|
||||
HBITMAP hbm;
|
||||
|
||||
static const gint possible_depths[7] = { 32, 24, 16, 15, 8, 4, 1 };
|
||||
static const GdkVisualType possible_types[6] =
|
||||
{
|
||||
GDK_VISUAL_DIRECT_COLOR,
|
||||
GDK_VISUAL_TRUE_COLOR,
|
||||
GDK_VISUAL_PSEUDO_COLOR,
|
||||
GDK_VISUAL_STATIC_COLOR,
|
||||
GDK_VISUAL_GRAYSCALE,
|
||||
GDK_VISUAL_STATIC_GRAY
|
||||
};
|
||||
|
||||
static const gint npossible_depths = sizeof(possible_depths)/sizeof(gint);
|
||||
static const gint npossible_types = sizeof(possible_types)/sizeof(GdkVisualType);
|
||||
|
||||
int rastercaps, numcolors, sizepalette, colorres, bitspixel;
|
||||
Visual *default_xvisual;
|
||||
int rastercaps, numcolors, sizepalette, bitspixel;
|
||||
|
||||
system_visual = g_new (GdkVisualPrivate, 1);
|
||||
|
||||
bitspixel = GetDeviceCaps (gdk_DC, BITSPIXEL);
|
||||
rastercaps = GetDeviceCaps (gdk_DC, RASTERCAPS);
|
||||
default_xvisual = g_new (Visual, 1);
|
||||
system_visual->xvisual = default_xvisual;
|
||||
system_visual->xvisual = g_new (Visual, 1);
|
||||
system_visual->xvisual->visualid = 0;
|
||||
system_visual->xvisual->bitspixel = bitspixel;
|
||||
|
||||
@ -98,7 +82,6 @@ gdk_visual_init (void)
|
||||
system_visual->visual.type = GDK_VISUAL_PSEUDO_COLOR;
|
||||
numcolors = GetDeviceCaps (gdk_DC, NUMCOLORS);
|
||||
sizepalette = GetDeviceCaps (gdk_DC, SIZEPALETTE);
|
||||
colorres = GetDeviceCaps (gdk_DC, COLORRES);
|
||||
system_visual->xvisual->map_entries = sizepalette;
|
||||
}
|
||||
else if (bitspixel == 1)
|
||||
|
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
@ -3602,9 +3602,10 @@ gtk_font_selection_get_xlfd_field (const gchar *fontname,
|
||||
return NULL;
|
||||
strncpy (buffer, t1, len);
|
||||
buffer[len] = 0;
|
||||
|
||||
#if GDK_WINDOWING == GDK_WINDOWING_X11
|
||||
/* Convert to lower case. */
|
||||
g_strdown (buffer);
|
||||
#endif
|
||||
}
|
||||
else
|
||||
strcpy(buffer, "(nil)");
|
||||
|