diff options
author | Zdenek Prikryl <zprikryl@redhat.com> | 2009-08-31 18:03:02 +0200 |
---|---|---|
committer | Zdenek Prikryl <zprikryl@redhat.com> | 2009-08-31 18:03:02 +0200 |
commit | aa0815199fa533a45d9a9d4b60b5e71f63737088 (patch) | |
tree | f31c54adb75860d4b345120546885d5093fde8bf /src | |
parent | 42ed1c57a75179629316e91d605689cf324477ac (diff) | |
parent | 60ff95f12d4f16a324ac8a86e14c69231705e522 (diff) | |
download | abrt-aa0815199fa533a45d9a9d4b60b5e71f63737088.tar.gz abrt-aa0815199fa533a45d9a9d4b60b5e71f63737088.tar.xz abrt-aa0815199fa533a45d9a9d4b60b5e71f63737088.zip |
Merge branch 'master' of git://git.fedorahosted.org/abrt
Diffstat (limited to 'src')
-rw-r--r-- | src/Daemon/CommLayerServer.h | 2 | ||||
-rw-r--r-- | src/Daemon/CommLayerServerDBus.h | 2 | ||||
-rw-r--r-- | src/Daemon/CommLayerServerSocket.h | 1 | ||||
-rw-r--r-- | src/Gui/CCMainWindow.py | 7 |
4 files changed, 9 insertions, 3 deletions
diff --git a/src/Daemon/CommLayerServer.h b/src/Daemon/CommLayerServer.h index 34700c4..0b105d3 100644 --- a/src/Daemon/CommLayerServer.h +++ b/src/Daemon/CommLayerServer.h @@ -18,7 +18,7 @@ class CCommLayerServer { virtual void Error(const std::string& arg1) {} virtual void Update(const std::string& pMessage, uint64_t pJobID) {}; virtual void Warning(const std::string& pMessage) {}; - virtual void JobDone(const std::string &pDest, uint64_t pJobID) {}; + virtual void JobDone(const std::string &pDest, uint64_t pJobID) = 0; virtual void JobStarted(const std::string &pDest, uint64_t pJobID) {}; virtual void Warning(const std::string& pMessage, uint64_t pJobID) {}; }; diff --git a/src/Daemon/CommLayerServerDBus.h b/src/Daemon/CommLayerServerDBus.h index eda2196..ff8cb0e 100644 --- a/src/Daemon/CommLayerServerDBus.h +++ b/src/Daemon/CommLayerServerDBus.h @@ -40,7 +40,7 @@ class CCommLayerServerDBus virtual void Update(const std::string& pMessage, uint64_t pJobID); //the job id should be enough in jobdone virtual void JobDone(const std::string& pDest, uint64_t pJobID); - virtual void JobStarted(const std::string& pDest, uint64_t pJobID); + virtual void JobStarted(const std::string &pDest, uint64_t pJobID); virtual void Warning(const std::string& pMessage); virtual void Warning(const std::string& pMessage, uint64_t pJobID); }; diff --git a/src/Daemon/CommLayerServerSocket.h b/src/Daemon/CommLayerServerSocket.h index e0b7478..078b713 100644 --- a/src/Daemon/CommLayerServerSocket.h +++ b/src/Daemon/CommLayerServerSocket.h @@ -33,4 +33,5 @@ class CCommLayerServerSocket : public CCommLayerServer virtual void Crash(const std::string& arg1); virtual void AnalyzeComplete(const map_crash_report_t& arg1); virtual void Error(const std::string& arg1); + virtual void JobStarted(const std::string &pDest, uint64_t pJobID) {}; }; diff --git a/src/Gui/CCMainWindow.py b/src/Gui/CCMainWindow.py index 2b1dc78..8c687d0 100644 --- a/src/Gui/CCMainWindow.py +++ b/src/Gui/CCMainWindow.py @@ -102,6 +102,7 @@ class MainWindow(): column.set_resizable(True) #connect signals self.dlist.connect("cursor-changed", self.on_tvDumps_cursor_changed) + self.dlist.connect("row-activated", self.on_dumpRowActivated) self.wTree.get_widget("bDelete").connect("clicked", self.on_bDelete_clicked, self.dlist) self.wTree.get_widget("bReport").connect("clicked", self.on_bReport_clicked) self.wTree.get_widget("miQuit").connect("activate", self.on_bQuit_clicked) @@ -284,8 +285,12 @@ class MainWindow(): #print "got another crash, refresh gui?" def on_bReport_clicked(self, button): - # FIXME don't duplicate the code, move to function dumpsListStore, path = self.dlist.get_selection().get_selected_rows() + self.on_dumpRowActivated(self.dlist, None, path, None) + + def on_dumpRowActivated(self, treeview, iter, path, user_data=None): + # FIXME don't duplicate the code, move to function + dumpsListStore, path = treeview.get_selection().get_selected_rows() if not path: return self.update_pBar = False |