continue preparation of 0.6
[simple-launcher] / launcher-item.cc
index 28825a2..55227f3 100644 (file)
@@ -19,7 +19,7 @@ inline std::string getStringWrapper(GKeyFile *keyFile, const gchar *group, const
   std::string result;
 
   if (tempo != 0) {
-    result = tempo;
+    result.assign(tempo);
 
     g_free(tempo);
   }
@@ -32,7 +32,7 @@ inline std::string getLocaleStringWrapper(GKeyFile *keyFile, const gchar *group,
   std::string result;
 
   if (tempo != 0) {
-    result = tempo;
+    result.assign(tempo);
 
     g_free(tempo);
   }
@@ -101,3 +101,7 @@ GdkPixbuf *LauncherItem::getIcon(int icon_size) const {
 
   return pixbuf;
 }
+
+bool LauncherItem::activate(osso_context_t *context) {
+  return osso_application_top(context, myService.c_str(), 0) == OSSO_OK;
+}