[gnote] Fix a crash when requesting help in the "Search All" in applet mode. (Closes #588489)
- From: Hubert Figuière <hub src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnote] Fix a crash when requesting help in the "Search All" in applet mode. (Closes #588489)
- Date: Mon, 13 Jul 2009 22:18:00 +0000 (UTC)
commit c863c8be4b8085f88d9a5b0e02d689c788ff0cc9
Author: Hubert Figuiere <hub figuiere net>
Date: Mon Jul 13 16:56:25 2009 -0400
Fix a crash when requesting help in the "Search All" in applet mode. (Closes #588489)
src/gnote.cpp | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/gnote.cpp b/src/gnote.cpp
index 984343c..8166856 100644
--- a/src/gnote.cpp
+++ b/src/gnote.cpp
@@ -274,10 +274,12 @@ namespace gnote {
void Gnote::on_show_help_action()
{
- GdkScreen *cscreen;
- Gdk::Rectangle area;
- GtkOrientation orientation;
- gtk_status_icon_get_geometry(m_tray_icon->gobj(), &cscreen, area.gobj(), &orientation);
+ GdkScreen *cscreen = NULL;
+ if(m_tray_icon) {
+ Gdk::Rectangle area;
+ GtkOrientation orientation;
+ gtk_status_icon_get_geometry(m_tray_icon->gobj(), &cscreen, area.gobj(), &orientation);
+ }
utils::show_help("gnote", "", cscreen, NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]