From afb8fddb7b832cfc536fdf9540a58e3db4f11503 Mon Sep 17 00:00:00 2001 From: mss Date: Mon, 27 Nov 2006 20:33:37 +0000 Subject: [PATCH] moved widget initialization into a separate method git-svn-id: file:///svnroot/simple-launcher/trunk@4 3ba93dab-e023-0410-b42a-de7732cf370a --- simple-launcher.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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; -- 1.7.9.5