tomboy r2053 - in trunk: . Tomboy
- From: sharm svn gnome org
- To: svn-commits-list gnome org
- Subject: tomboy r2053 - in trunk: . Tomboy
- Date: Sat, 2 Aug 2008 15:25:06 +0000 (UTC)
Author: sharm
Date: Sat Aug 2 15:25:06 2008
New Revision: 2053
URL: http://svn.gnome.org/viewvc/tomboy?rev=2053&view=rev
Log:
* Tomboy/Utils.cs: Prevent crash when activating notebook tool button
in the case that the window was not wide enough to show it.
Unfortunately, when this case occurs, menu appears at 0,0, which is
non-optimal. Still better than crashing. Fixes bug #523035.
Modified:
trunk/ChangeLog
trunk/Tomboy/Utils.cs
Modified: trunk/Tomboy/Utils.cs
==============================================================================
--- trunk/Tomboy/Utils.cs (original)
+++ trunk/Tomboy/Utils.cs Sat Aug 2 15:25:06 2008
@@ -18,7 +18,8 @@
out int y,
out bool push_in)
{
- if (menu.AttachWidget == null) {
+ if (menu.AttachWidget == null ||
+ menu.AttachWidget.GdkWindow == null) {
// Prevent null exception in weird cases
x = 0;
y = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]