From: mss Date: Mon, 27 Nov 2006 20:33:37 +0000 (+0000) Subject: moved widget initialization into a separate method X-Git-Url: http://vcs.maemo.org/git/?a=commitdiff_plain;h=afb8fddb7b832cfc536fdf9540a58e3db4f11503;p=simple-launcher moved widget initialization into a separate method git-svn-id: file:///svnroot/simple-launcher/trunk@4 3ba93dab-e023-0410-b42a-de7732cf370a --- diff --git a/simple-launcher.cc b/simple-launcher.cc index 643d788..e82b19d 100644 --- a/simple-launcher.cc +++ b/simple-launcher.cc @@ -35,6 +35,9 @@ public: GtkWidget *getWidget() { return myWidget; } +private: + bool initWidget(); + bool startApplication(const std::string& application); private: @@ -100,8 +103,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 +145,10 @@ SimpleLauncherApplet::~SimpleLauncherApplet() { } } +bool SimpleLauncherApplet::initWidget() { + return false; +} + int SimpleLauncherApplet::saveState(void **state_data, int *state_size) { if (state_data != 0) { *state_data = 0;