diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Applet/Applet.cpp | 2 | ||||
-rw-r--r-- | src/Applet/CCApplet.cpp | 18 | ||||
-rw-r--r-- | src/Applet/CCApplet.h | 2 | ||||
-rw-r--r-- | src/CLI/CLI.cpp | 2 | ||||
-rw-r--r-- | src/Daemon/CommLayerServerSocket.cpp | 2 | ||||
-rw-r--r-- | src/Daemon/Daemon.cpp | 2 | ||||
-rw-r--r-- | src/Daemon/RPM.cpp | 2 |
7 files changed, 15 insertions, 15 deletions
diff --git a/src/Applet/Applet.cpp b/src/Applet/Applet.cpp index 46278c62..14707697 100644 --- a/src/Applet/Applet.cpp +++ b/src/Applet/Applet.cpp @@ -135,7 +135,7 @@ static void NameOwnerChanged(DBusMessage* signal) } // hide icon if it's visible - as NM and don't show it, if it's not - if(!new_owner[0]) + if (!new_owner[0]) applet->HideIcon(); } diff --git a/src/Applet/CCApplet.cpp b/src/Applet/CCApplet.cpp index e6b89d2f..5d13ab87 100644 --- a/src/Applet/CCApplet.cpp +++ b/src/Applet/CCApplet.cpp @@ -114,7 +114,7 @@ CApplet::CApplet() m_iAnimationStage = ICON_DEFAULT; m_bIconsLoaded = load_icons(); /* - animation - */ - if(m_bIconsLoaded == true) + if (m_bIconsLoaded == true) { m_pStatusIcon = gtk_status_icon_new_from_pixbuf(icon_stages_buff[ICON_DEFAULT]); } @@ -244,7 +244,7 @@ void CApplet::ShowIcon() { gtk_status_icon_set_visible(m_pStatusIcon, true); /* only animate if all icons are loaded, use the "gtk-warning" instead */ - if(m_bIconsLoaded) + if (m_bIconsLoaded) animate_icon(); } @@ -300,13 +300,13 @@ void CApplet::Enable(const char *reason) gboolean CApplet::update_icon(void *user_data) { CApplet* applet = (CApplet*)user_data; - if(applet->m_pStatusIcon && applet->m_iAnimationStage < ICON_STAGE_LAST){ + if (applet->m_pStatusIcon && applet->m_iAnimationStage < ICON_STAGE_LAST) { gtk_status_icon_set_from_pixbuf(applet->m_pStatusIcon, applet->icon_stages_buff[applet->m_iAnimationStage++]); } else error_msg("icon is null"); - if(applet->m_iAnimationStage == ICON_STAGE_LAST){ + if (applet->m_iAnimationStage == ICON_STAGE_LAST) { applet->m_iAnimationStage = 0; } if (--applet->m_iAnimCountdown == 0) { @@ -317,7 +317,7 @@ gboolean CApplet::update_icon(void *user_data) void CApplet::animate_icon() { - if(m_iAnimator == 0) + if (m_iAnimator == 0) { m_iAnimator = g_timeout_add(100, update_icon, this); m_iAnimCountdown = 10 * 60; /* 60 sec */ @@ -327,7 +327,7 @@ void CApplet::animate_icon() void CApplet::stop_animate_icon() { /* animator should be 0 if icons are not loaded, so this should be safe */ - if(m_iAnimator != 0){ + if (m_iAnimator != 0) { g_source_remove(m_iAnimator); gtk_status_icon_set_from_pixbuf(m_pStatusIcon, icon_stages_buff[ICON_DEFAULT]); m_iAnimator = 0; @@ -337,13 +337,13 @@ void CApplet::stop_animate_icon() bool CApplet::load_icons() { int stage; - for(stage = ICON_DEFAULT; stage < ICON_STAGE_LAST; stage++) + for (stage = ICON_DEFAULT; stage < ICON_STAGE_LAST; stage++) { char name[sizeof(ICON_DIR"/abrt%02d.png")]; GError *error = NULL; - if(snprintf(name, sizeof(ICON_DIR"/abrt%02d.png"),ICON_DIR"/abrt%02d.png", stage) > 0){ + if (snprintf(name, sizeof(ICON_DIR"/abrt%02d.png"), ICON_DIR"/abrt%02d.png", stage) > 0) { icon_stages_buff[stage] = gdk_pixbuf_new_from_file(name, &error); - if(error != NULL){ + if (error != NULL) { error_msg("Can't load pixbuf from %s, animation is disabled!", name); return false; } diff --git a/src/Applet/CCApplet.h b/src/Applet/CCApplet.h index 15ac2f7f..48dbabcc 100644 --- a/src/Applet/CCApplet.h +++ b/src/Applet/CCApplet.h @@ -77,7 +77,7 @@ class CApplet protected: //@@TODO applet menus - static void OnAppletActivate_CB(GtkStatusIcon *status_icon,gpointer user_data); + static void OnAppletActivate_CB(GtkStatusIcon *status_icon, gpointer user_data); static void OnMenuPopup_cb(GtkStatusIcon *status_icon, guint button, guint activate_time, diff --git a/src/CLI/CLI.cpp b/src/CLI/CLI.cpp index 9f2db3f0..ac686ba3 100644 --- a/src/CLI/CLI.cpp +++ b/src/CLI/CLI.cpp @@ -131,7 +131,7 @@ int main(int argc, char** argv) char* uuid = NULL; int op = -1; - setlocale(LC_ALL,""); + setlocale(LC_ALL, ""); #if ENABLE_NLS bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE); diff --git a/src/Daemon/CommLayerServerSocket.cpp b/src/Daemon/CommLayerServerSocket.cpp index 80dabb71..0c5f2e31 100644 --- a/src/Daemon/CommLayerServerSocket.cpp +++ b/src/Daemon/CommLayerServerSocket.cpp @@ -219,7 +219,7 @@ vector_crash_infos_t CCommLayerServerSocket::GetCrashInfos(const std::string &pS } //reimplement as CreateReportThread(...)? -//map_crash_report_t CCommLayerServerSocket::CreateReport(const std::string &pUUID,const std::string &pSender) +//map_crash_report_t CCommLayerServerSocket::CreateReport(const std::string &pUUID, const std::string &pSender) //{ // map_crash_report_t crashReport; // crashReport = ::CreateReport(pUUID, pSender); diff --git a/src/Daemon/Daemon.cpp b/src/Daemon/Daemon.cpp index 1fa324fc..3f882306 100644 --- a/src/Daemon/Daemon.cpp +++ b/src/Daemon/Daemon.cpp @@ -667,7 +667,7 @@ int main(int argc, char** argv) int opt; int parent_pid = getpid(); - setlocale(LC_ALL,""); + setlocale(LC_ALL, ""); #if ENABLE_NLS bindtextdomain(PACKAGE, LOCALEDIR); diff --git a/src/Daemon/RPM.cpp b/src/Daemon/RPM.cpp index 4a819b5d..b3cf2c1c 100644 --- a/src/Daemon/RPM.cpp +++ b/src/Daemon/RPM.cpp @@ -146,7 +146,7 @@ std::string GetComponent(const char* pFileName) if (header != NULL) { rpmtd td = rpmtdNew(); - headerGet(header,RPMTAG_SOURCERPM, td, HEADERGET_DEFAULT); + headerGet(header, RPMTAG_SOURCERPM, td, HEADERGET_DEFAULT); const char * srpm = rpmtdGetString(td); if (srpm != NULL) { |