[Xfce4-commits] [apps/xfce4-taskmanager] 02/05: declarations at the beginning of functions (ISO C90 forbids mixed declarations and code)
noreply at xfce.org
noreply at xfce.org
Mon May 28 21:16:48 CEST 2018
This is an automated email from the git hooks/post-receive script.
l a n d r y p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/xfce4-taskmanager.
commit 6f9d95d1f5e64fd51ac4af70908e9d82a2f24f68
Author: Landry Breuil <landry at xfce.org>
Date: Mon May 28 21:04:45 2018 +0200
declarations at the beginning of functions (ISO C90 forbids mixed declarations and code)
---
src/app-manager.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/app-manager.c b/src/app-manager.c
index c32bb3d..7066e6f 100644
--- a/src/app-manager.c
+++ b/src/app-manager.c
@@ -60,6 +60,7 @@ xtm_app_manager_class_init (XtmAppManagerClass *klass)
static void
xtm_app_manager_init (XtmAppManager *manager)
{
+ WnckApplication *application;
WnckScreen *screen = wnck_screen_get_default ();
GList *windows, *l;
@@ -75,7 +76,7 @@ xtm_app_manager_init (XtmAppManager *manager)
if (wnck_window_get_window_type (window) != WNCK_WINDOW_NORMAL)
continue;
- WnckApplication *application = wnck_window_get_application (window);
+ application = wnck_window_get_application (window);
apps_add_application (manager->apps, application, app_get_pid (application));
}
@@ -95,9 +96,10 @@ xtm_app_manager_finalize (GObject *object)
static gint
app_get_pid(WnckApplication *application)
{
+ gint pid;
if (NULL == application)
return (0);
- gint pid = wnck_application_get_pid (application);
+ pid = wnck_application_get_pid (application);
if (pid != 0)
return (pid);
return (wnck_window_get_pid (WNCK_WINDOW (wnck_application_get_windows (application)->data)));
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list