diff options
author | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-02-25 10:48:48 +0100 |
---|---|---|
committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-02-25 10:48:48 +0100 |
commit | 030fc47b77ca83f43cc39907bd52def9a292e818 (patch) | |
tree | adf816fd9220e63e017d3e46e5e80d2bb0d40ce7 /src/Applet/CCApplet.cpp | |
parent | 40bde496865534611271e66ff04eec2cbd7678c3 (diff) | |
download | abrt-030fc47b77ca83f43cc39907bd52def9a292e818.tar.gz abrt-030fc47b77ca83f43cc39907bd52def9a292e818.tar.xz abrt-030fc47b77ca83f43cc39907bd52def9a292e818.zip |
Fixed applet to reflect new gui script
Diffstat (limited to 'src/Applet/CCApplet.cpp')
-rw-r--r-- | src/Applet/CCApplet.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/Applet/CCApplet.cpp b/src/Applet/CCApplet.cpp index d6de1eef..6f72bf51 100644 --- a/src/Applet/CCApplet.cpp +++ b/src/Applet/CCApplet.cpp @@ -80,7 +80,7 @@ void CApplet::SetIconTooltip(const char *format, ...) } else { - gtk_status_icon_set_tooltip(m_pStatusIcon,"Error while setting tooltip!"); + gtk_status_icon_set_tooltip(m_pStatusIcon,"Error while setting the tooltip!"); } delete[] buf; @@ -103,12 +103,15 @@ void CApplet::OnAppletActivate_CB(GtkStatusIcon *status_icon,gpointer user_data) case GTK_RESPONSE_YES: //FIXME - use fork+exec and absolute paths? getcwd(cwd,1024); - if(chdir("../Gui") != -1){ - popen("./mainwindow.py","r"); - chdir(cwd); + if(chdir("../bin") != -1){ + popen("./cc-gui","r"); + if(chdir(cwd) == -1) + { + std::cerr << "error changing the directory" << std::endl; + } } else{ - std::cerr << "error changing directory" << std::endl; + std::cerr << "error changing the directory" << std::endl; } gtk_status_icon_set_visible(applet->m_pStatusIcon,false); break; |