separated the code that checks/creates/adds a new item in the list
[simple-launcher] / launchable-item.cc
index b8cae0a..cf17f2c 100644 (file)
@@ -1,6 +1,6 @@
 // This file is a part of Simple Launcher
 //
-// Copyright (C) 2006, Mikhail Sobolev
+// Copyright (C) 2006, 2007, Mikhail Sobolev
 //
 // Simple Launcher is free software; you can redistribute it and/or modify it
 // under the terms of the GNU General Public License version 2 as published by
@@ -18,7 +18,7 @@
 #include "launchable-item.h"
 
 bool LaunchableItem::activate(osso_context_t *context) {
-  return osso_application_top(context, getService().c_str(), 0) == OSSO_OK;
+  return osso_application_top(context, getService().c_str(), NULL) == OSSO_OK;
 }
 
 // vim:ts=2:sw=2:et