moved widget initialization into a separate method
authormss <noemail>
Mon, 27 Nov 2006 20:33:37 +0000 (20:33 +0000)
committermss <noemail>
Mon, 27 Nov 2006 20:33:37 +0000 (20:33 +0000)
git-svn-id: file:///svnroot/simple-launcher/trunk@4 3ba93dab-e023-0410-b42a-de7732cf370a

simple-launcher.cc

index 643d788..e82b19d 100644 (file)
@@ -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;