remove unnecessary method: startApplication; method was moved to LauncherItem
[simple-launcher] / simple-launcher.cc
index 643d788..fcc5ff4 100644 (file)
@@ -35,7 +35,8 @@ public:
 
   GtkWidget *getWidget() { return myWidget; }
 
-  bool startApplication(const std::string& application);
+private:
+  bool initWidget();
 
 private:
   osso_context_t *myContext;
@@ -48,7 +49,7 @@ private:
 
 // Hildon home applet interface functions
 
-void *hildon_home_applet_lib_initialize (void *state_data, int *state_size, GtkWidget **widget) {
+void *hildon_home_applet_lib_initialize(void *state_data, int *state_size, GtkWidget **widget) {
   SimpleLauncherApplet *applet = new SimpleLauncherApplet();
 
   if (applet != 0) {
@@ -100,8 +101,7 @@ bool SimpleLauncherApplet::doInit(void *state_data, int *state_size) {
     return false;
   }
 
-  // myWidget = mis_widget_new_with_engines_and_history();
-  if (myWidget == 0) {
+  if (!initWidget()) {
     return false;
   }
 
@@ -143,6 +143,10 @@ SimpleLauncherApplet::~SimpleLauncherApplet() {
   }
 }
 
+bool SimpleLauncherApplet::initWidget() {
+  return false;
+}
+
 int SimpleLauncherApplet::saveState(void **state_data, int *state_size) {
   if (state_data != 0) {
     *state_data = 0;
@@ -162,7 +166,3 @@ GtkWidget *SimpleLauncherApplet::settings(GtkWindow *parent) {
   // corresponding dialog appears.
   return 0;
 }
-
-bool SimpleLauncherApplet::startApplication(const std::string& application) {
-  return osso_application_top(myContext, application.c_str(), 0) == OSSO_OK;
-}