summaryrefslogtreecommitdiffstats
path: root/src/Applet/CCApplet.h
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-08-04 01:59:57 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-08-04 01:59:57 +0200
commit497a6ecd71745f28ec4dda3bfc1d1d6efddc3e18 (patch)
treed86f90ad9015b1dff67d9a3bd8234a0cd62c9d03 /src/Applet/CCApplet.h
parent1404fbfe4bf90d7f9dfe36deda484fe3e91b4472 (diff)
abrt-applet: set SIGCHLD to SIG_IGN to prevent zombies from gui
Also, running abrt-gui via popen is definiely wrong. We were leaking a FILE! fixed now. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'src/Applet/CCApplet.h')
-rw-r--r--src/Applet/CCApplet.h50
1 files changed, 23 insertions, 27 deletions
diff --git a/src/Applet/CCApplet.h b/src/Applet/CCApplet.h
index b2ce0a2..ff65b03 100644
--- a/src/Applet/CCApplet.h
+++ b/src/Applet/CCApplet.h
@@ -1,22 +1,22 @@
-/*
- Copyright (C) 2009 Jiri Moskovcak (jmoskovc@redhat.com)
- Copyright (C) 2009 RedHat inc.
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along
- with this program; if not, write to the Free Software Foundation, Inc.,
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+/*
+ Copyright (C) 2009 Jiri Moskovcak (jmoskovc@redhat.com)
+ Copyright (C) 2009 RedHat inc.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-
+
#ifndef CC_APPLET_H_
#define CC_APPLET_H_
@@ -26,10 +26,6 @@
#include <DBusClientProxy.h>
#include<libnotify/notify.h>
-#ifndef BIN_DIR
- #define BIN_DIR "/usr/bin"
-#endif
-
class CApplet
: public CDBusClient_proxy,
public DBus::IntrospectableProxy,
@@ -41,7 +37,7 @@ class CApplet
std::map<int, std::string > m_mapEvents;
DaemonWatcher *m_pDaemonWatcher;
bool m_bDaemonRunning;
- public:
+ public:
CApplet(DBus::Connection &connection, const char *path, const char *name);
~CApplet();
void ShowIcon();
@@ -59,7 +55,7 @@ class CApplet
int RemoveEvent(int pUUID);
void ConnectCrashHandler(void (*pCrashHandler)(const char *progname));
static void DaemonStateChange_cb(bool running, void* data);
-
+
protected:
//@@TODO applet menus
static void OnAppletActivate_CB(GtkStatusIcon *status_icon,gpointer user_data);
@@ -68,11 +64,11 @@ class CApplet
guint activate_time,
gpointer user_data);
private:
- /* dbus stuff */
+ /* dbus stuff */
void Crash(std::string &value);
- /* the real signal handler called to handle the signal */
- void (*m_pCrashHandler)(const char *progname);
+ /* the real signal handler called to handle the signal */
+ void (*m_pCrashHandler)(const char *progname);
};
#endif /*CC_APPLET_H_*/