a patch for gnome-dock.c



I suspect the following patch would fix bug #58294:

http://bugzilla.gnome.org/show_bug.cgi?id=58294

I haven't tested it though, as I can't reproduce the bug.

Is it OK to commit?

regards,
	jaKa

--

email: jaka gnu org
w3:    http://pluton.ijs.si/~jaka
Index: gnome-dock.c
===================================================================
RCS file: /cvs/gnome/gnome-libs/libgnomeui/Attic/gnome-dock.c,v
retrieving revision 1.28.4.2
diff -u -r1.28.4.2 gnome-dock.c
--- gnome-dock.c	2001/02/12 15:11:54	1.28.4.2
+++ gnome-dock.c	2001/07/30 18:21:28
@@ -1103,7 +1103,10 @@
   g_list_foreach (dock->right_bands, (GFunc) gnome_dock_band_drag_begin, item);
   g_list_foreach (dock->left_bands, (GFunc) gnome_dock_band_drag_begin, item);
 
-  dock->client_rect = dock->client_area->allocation;
+  if(dock->client_area != NULL)
+    dock->client_rect = dock->client_area->allocation;
+  else
+    memset(&dock->client_rect, 0, sizeof(dock->client_rect));
 }
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]