--- source/sugar/shell/StartPage.py 2006-07-25 11:42:01.000000000 -0400 +++ build/share/sugar/shell/StartPage.py 2006-07-05 00:24:08.000000000 -0400 @@ -204,6 +204,11 @@ vbox.pack_start(search_box, False, True) search_box.show() + abi_button = gtk.Button("AbiWord") + abi_button.connect('clicked', self._abi_button_clicked_cb) + vbox.pack_start(abi_button, False) + abi_button.show() + exp_space = gtk.Label('') vbox.pack_start(exp_space) exp_space.show() @@ -290,6 +295,13 @@ self._search() self._search_entry.set_text('') + def _abi_button_clicked_cb(self, button): + bus = dbus.SessionBus() + proxy_obj = bus.get_object('com.redhat.Sugar.WordProcessor', '/com/redhat/Sugar/WordProcessor') + wordprocessor_shell = dbus.Interface(proxy_obj, 'com.redhat.Sugar.WordProcessorShell') + + wordprocessor_shell.open_new_document() + def _search(self, text = None): if text == None: text = self._search_entry.get_text()