mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
check if info->colormap != NULL before unref'ing it. It might have been
2001-08-06 Sven Neumann <sven@gimp.org> * gdk/gdkpango.c (gdk_pango_context_destroy): check if info->colormap != NULL before unref'ing it. It might have been set to NULL using gdk_pango_context_set_colormap().
This commit is contained in:
parent
727cdae769
commit
adca251bab
@ -1,3 +1,9 @@
|
||||
2001-08-06 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* gdk/gdkpango.c (gdk_pango_context_destroy):
|
||||
check if info->colormap != NULL before unref'ing it. It might have
|
||||
been set to NULL using gdk_pango_context_set_colormap().
|
||||
|
||||
Sun Aug 5 11:24:27 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkcolorsel.c (gtk_color_selection_set_current_alpha):
|
||||
|
@ -1,3 +1,9 @@
|
||||
2001-08-06 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* gdk/gdkpango.c (gdk_pango_context_destroy):
|
||||
check if info->colormap != NULL before unref'ing it. It might have
|
||||
been set to NULL using gdk_pango_context_set_colormap().
|
||||
|
||||
Sun Aug 5 11:24:27 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkcolorsel.c (gtk_color_selection_set_current_alpha):
|
||||
|
@ -1,3 +1,9 @@
|
||||
2001-08-06 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* gdk/gdkpango.c (gdk_pango_context_destroy):
|
||||
check if info->colormap != NULL before unref'ing it. It might have
|
||||
been set to NULL using gdk_pango_context_set_colormap().
|
||||
|
||||
Sun Aug 5 11:24:27 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkcolorsel.c (gtk_color_selection_set_current_alpha):
|
||||
|
@ -1,3 +1,9 @@
|
||||
2001-08-06 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* gdk/gdkpango.c (gdk_pango_context_destroy):
|
||||
check if info->colormap != NULL before unref'ing it. It might have
|
||||
been set to NULL using gdk_pango_context_set_colormap().
|
||||
|
||||
Sun Aug 5 11:24:27 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkcolorsel.c (gtk_color_selection_set_current_alpha):
|
||||
|
@ -1,3 +1,9 @@
|
||||
2001-08-06 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* gdk/gdkpango.c (gdk_pango_context_destroy):
|
||||
check if info->colormap != NULL before unref'ing it. It might have
|
||||
been set to NULL using gdk_pango_context_set_colormap().
|
||||
|
||||
Sun Aug 5 11:24:27 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkcolorsel.c (gtk_color_selection_set_current_alpha):
|
||||
|
@ -1,3 +1,9 @@
|
||||
2001-08-06 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* gdk/gdkpango.c (gdk_pango_context_destroy):
|
||||
check if info->colormap != NULL before unref'ing it. It might have
|
||||
been set to NULL using gdk_pango_context_set_colormap().
|
||||
|
||||
Sun Aug 5 11:24:27 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkcolorsel.c (gtk_color_selection_set_current_alpha):
|
||||
|
@ -1,3 +1,9 @@
|
||||
2001-08-06 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* gdk/gdkpango.c (gdk_pango_context_destroy):
|
||||
check if info->colormap != NULL before unref'ing it. It might have
|
||||
been set to NULL using gdk_pango_context_set_colormap().
|
||||
|
||||
Sun Aug 5 11:24:27 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkcolorsel.c (gtk_color_selection_set_current_alpha):
|
||||
|
@ -52,7 +52,8 @@ static void gdk_pango_get_item_properties (PangoItem *item,
|
||||
static void
|
||||
gdk_pango_context_destroy (GdkPangoContextInfo *info)
|
||||
{
|
||||
gdk_colormap_unref (info->colormap);
|
||||
if (info->colormap)
|
||||
gdk_colormap_unref (info->colormap);
|
||||
g_free (info);
|
||||
}
|
||||
|
||||
@ -336,7 +337,7 @@ gdk_draw_layout_line_with_colors (GdkDrawable *drawable,
|
||||
}
|
||||
|
||||
/**
|
||||
* gdk_draw_layout:
|
||||
* gdk_draw_layout_with_colors:
|
||||
* @drawable: the drawable on which to draw string
|
||||
* @gc: base graphics context to use
|
||||
* @x: the X position of the left of the layout (in pixels)
|
||||
|
Loading…
Reference in New Issue
Block a user