don't cast a PIXTEXT cell to a PIXMAP cell (fixes crash when using PIXTEXT
2001-10-22 jacob berkman <jacob@ximian.com> * gtk/gtkclist.c (cell_size_request): don't cast a PIXTEXT cell to a PIXMAP cell (fixes crash when using PIXTEXT cells)
This commit is contained in:
parent
0c6a8f530b
commit
eb037279db
8 changed files with 40 additions and 0 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2001-10-22 jacob berkman <jacob@ximian.com>
|
||||
|
||||
* gtk/gtkclist.c (cell_size_request): don't cast a PIXTEXT cell to
|
||||
a PIXMAP cell (fixes crash when using PIXTEXT cells)
|
||||
|
||||
Sat Oct 20 18:58:25 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkentry.h: Deprecate gtk_entry_set_editable.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
2001-10-22 jacob berkman <jacob@ximian.com>
|
||||
|
||||
* gtk/gtkclist.c (cell_size_request): don't cast a PIXTEXT cell to
|
||||
a PIXMAP cell (fixes crash when using PIXTEXT cells)
|
||||
|
||||
Sat Oct 20 18:58:25 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkentry.h: Deprecate gtk_entry_set_editable.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
2001-10-22 jacob berkman <jacob@ximian.com>
|
||||
|
||||
* gtk/gtkclist.c (cell_size_request): don't cast a PIXTEXT cell to
|
||||
a PIXMAP cell (fixes crash when using PIXTEXT cells)
|
||||
|
||||
Sat Oct 20 18:58:25 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkentry.h: Deprecate gtk_entry_set_editable.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
2001-10-22 jacob berkman <jacob@ximian.com>
|
||||
|
||||
* gtk/gtkclist.c (cell_size_request): don't cast a PIXTEXT cell to
|
||||
a PIXMAP cell (fixes crash when using PIXTEXT cells)
|
||||
|
||||
Sat Oct 20 18:58:25 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkentry.h: Deprecate gtk_entry_set_editable.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
2001-10-22 jacob berkman <jacob@ximian.com>
|
||||
|
||||
* gtk/gtkclist.c (cell_size_request): don't cast a PIXTEXT cell to
|
||||
a PIXMAP cell (fixes crash when using PIXTEXT cells)
|
||||
|
||||
Sat Oct 20 18:58:25 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkentry.h: Deprecate gtk_entry_set_editable.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
2001-10-22 jacob berkman <jacob@ximian.com>
|
||||
|
||||
* gtk/gtkclist.c (cell_size_request): don't cast a PIXTEXT cell to
|
||||
a PIXMAP cell (fixes crash when using PIXTEXT cells)
|
||||
|
||||
Sat Oct 20 18:58:25 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkentry.h: Deprecate gtk_entry_set_editable.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
2001-10-22 jacob berkman <jacob@ximian.com>
|
||||
|
||||
* gtk/gtkclist.c (cell_size_request): don't cast a PIXTEXT cell to
|
||||
a PIXMAP cell (fixes crash when using PIXTEXT cells)
|
||||
|
||||
Sat Oct 20 18:58:25 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkentry.h: Deprecate gtk_entry_set_editable.
|
||||
|
|
|
|||
|
|
@ -2618,6 +2618,11 @@ cell_size_request (GtkCList *clist,
|
|||
switch (clist_row->cell[column].type)
|
||||
{
|
||||
case GTK_CELL_PIXTEXT:
|
||||
gdk_window_get_size (GTK_CELL_PIXTEXT (clist_row->cell[column])->pixmap,
|
||||
&width, &height);
|
||||
requisition->width += width;
|
||||
requisition->height = MAX (requisition->height, height);
|
||||
break;
|
||||
case GTK_CELL_PIXMAP:
|
||||
gdk_window_get_size (GTK_CELL_PIXMAP (clist_row->cell[column])->pixmap,
|
||||
&width, &height);
|
||||
|
|
|
|||
Loading…
Reference in a new issue