[gtk-list] [patch] 2 small fixes
- From: Owen Taylor <owt1 cornell edu>
- To: gtk-list redhat com
- Subject: [gtk-list] [patch] 2 small fixes
- Date: 10 May 1997 22:09:27 -0400
Here's a couple of things I found recently.
Considering the small amount of my code in gtk, I probably should
be embarrassed that the first one is a patch to a line I wrote. But
I copied it from somewhere else that was later fixed ...
The second one fixes the case when gtk_list_insert_items is called
with an empty list.
Owen
diff -cr ../gimp-0.99.9-orig/gtk+/gtk/gtkframe.c ./gtk+/gtk/gtkframe.c
*** ../gimp-0.99.9-orig/gtk+/gtk/gtkframe.c Thu Apr 17 20:20:38 1997
--- ./gtk+/gtk/gtkframe.c Sun May 4 17:46:26 1997
***************
*** 173,179 ****
{
frame->shadow_type = type;
! if (GTK_WIDGET_VISIBLE (frame))
{
gdk_window_clear_area (GTK_WIDGET (frame)->window,
GTK_WIDGET (frame)->allocation.x,
--- 173,179 ----
{
frame->shadow_type = type;
! if (GTK_WIDGET_MAPPED (frame))
{
gdk_window_clear_area (GTK_WIDGET (frame)->window,
GTK_WIDGET (frame)->allocation.x,
Only in ./gtk+/gtk: gtkframe.c.orig
diff -cr ../gimp-0.99.9-orig/gtk+/gtk/gtklist.c ./gtk+/gtk/gtklist.c
*** ../gimp-0.99.9-orig/gtk+/gtk/gtklist.c Fri Apr 18 18:55:58 1997
--- ./gtk+/gtk/gtklist.c Mon May 5 14:55:50 1997
***************
*** 187,192 ****
--- 187,195 ----
g_return_if_fail (list != NULL);
g_return_if_fail (GTK_IS_LIST (list));
+ if (items == NULL)
+ return;
+
tmp_list = items;
while (tmp_list)
{
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]