~ubuntu-branches/ubuntu/oneiric/gnome-system-monitor/oneiric-proposed

« back to all changes in this revision

Viewing changes to src/util.h

  • Committer: Bazaar Package Importer
  • Author(s): Loic Minier
  • Date: 2005-08-26 18:38:24 UTC
  • Revision ID: james.westby@ubuntu.com-20050826183824-zh2978nxikpkfxyd
Tags: upstream-2.8.1
ImportĀ upstreamĀ versionĀ 2.8.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
#ifndef _PROCMAN_UTIL_H_
 
3
#define _PROCAMN_UTIL_H_
 
4
 
 
5
#include <gnome.h>
 
6
#include <stddef.h>
 
7
 
 
8
/* -1 means wrong password, 0 means another error, 1 means great */
 
9
gint            su_run_with_password (gchar *exec_path, gchar *password);
 
10
 
 
11
 
 
12
#define PROCMAN_GETTEXT_ARRAY_INIT(A) G_STMT_START { \
 
13
static gboolean is_init = FALSE; \
 
14
if(!is_init) { \
 
15
  size_t i; \
 
16
  for(i = 0; i < G_N_ELEMENTS(A); ++i) if((A)[i]) ((A)[i]) = _(((A)[i])); \
 
17
  is_init = TRUE; \
 
18
 } \
 
19
} G_STMT_END
 
20
 
 
21
#endif /* _PROCAMN_UTIL_H_ */