[77] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] [patch] 2 small fixes

daemon@ATHENA.MIT.EDU (Owen Taylor)
Sat May 10 22:08:37 1997

To: gtk-list@redhat.com
From: Owen Taylor <owt1@cornell.edu>
Date: 10 May 1997 22:09:27 -0400
In-Reply-To: Raph Levien's message of Sat, 10 May 1997 18:43:34 -0700
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com


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


home help back first fref pref prev next nref lref last post