[gnome-system-monitor] Uniformize include guards
- From: Stefano Facchini <sfacchini src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-system-monitor] Uniformize include guards
- Date: Wed, 7 Aug 2013 19:03:03 +0000 (UTC)
commit 1b998cf764902701db8609645e96806e22c285f1
Author: Stefano Facchini <stefano facchini gmail com>
Date: Wed Aug 7 21:01:47 2013 +0200
Uniformize include guards
src/application.h | 6 +++---
src/argv.h | 6 +++---
src/cgroups.h | 6 +++---
src/defaulttable.h | 6 +++---
src/disks.h | 7 ++++---
src/e_date.h | 6 +++---
src/gsm_color_button.h | 6 +++---
src/gsm_gksu.h | 6 +++---
src/gsm_gnomesu.h | 6 +++---
src/gsm_pkexec.h | 6 +++---
src/iconthemewrapper.h | 6 +++---
src/interface.h | 6 +++---
src/load-graph.h | 6 +++---
src/lsof.h | 6 +++---
src/memmaps.h | 6 +++---
src/openfiles.h | 6 +++---
src/prefsdialog.h | 4 ++++
src/prettytable.h | 6 +++---
src/procactions.h | 7 +++----
src/procdialogs.h | 7 +++----
src/procproperties.h | 7 +++----
src/proctable.h | 6 +++---
src/selinux.h | 6 +++---
src/settings-keys.h | 6 +++---
src/smooth_refresh.h | 6 +++---
src/util.h | 6 +++---
26 files changed, 80 insertions(+), 78 deletions(-)
---
diff --git a/src/application.h b/src/application.h
index e9a257c..0780edd 100644
--- a/src/application.h
+++ b/src/application.h
@@ -1,6 +1,6 @@
/* -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-#ifndef _PROCMAN_PROCMAN_APP_H_
-#define _PROCMAN_PROCMAN_APP_H_
+#ifndef _GSM_APPLICATION_H_
+#define _GSM_APPLICATION_H_
#include <gtkmm.h>
#include <glibtop/cpu.h>
@@ -217,4 +217,4 @@ gboolean procman_get_tree_state (GSettings *settings, GtkWidget *tree, co
-#endif /* _PROCMAN_PROCMAN_APP_H_ */
+#endif /* _GSM_APPLICATION_H_ */
diff --git a/src/argv.h b/src/argv.h
index f8e8adf..a1a8dd2 100644
--- a/src/argv.h
+++ b/src/argv.h
@@ -1,6 +1,6 @@
/* -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-#ifndef H_PROCMAN_ARGV_1205873424
-#define H_PROCMAN_ARGV_1205873424
+#ifndef _GSM_ARGV_H_
+#define _GSM_ARGV_H_
#include <glibmm/optiongroup.h>
@@ -20,4 +20,4 @@ namespace procman
};
}
-#endif // H_PROCMAN_ARGV_1205873424
+#endif /* _GSM_ARGV_H_ */
diff --git a/src/cgroups.h b/src/cgroups.h
index 806ee50..0c2d9f9 100644
--- a/src/cgroups.h
+++ b/src/cgroups.h
@@ -1,6 +1,6 @@
/* -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-#ifndef PROCMAN_CGROUP_H_20111103
-#define PROCMAN_CGROUP_H_20111103
+#ifndef _GSM_CGROUPS_H_
+#define _GSM_CGROUPS_H_
#include <glib.h>
@@ -12,4 +12,4 @@ get_process_cgroup_info (ProcInfo *info);
gboolean
cgroups_enabled (void);
-#endif /* PROCMAN_CGROUP_H_20111103 */
+#endif /* _GSM_CGROUPS_H_ */
diff --git a/src/defaulttable.h b/src/defaulttable.h
index 9dbfd54..9328212 100644
--- a/src/defaulttable.h
+++ b/src/defaulttable.h
@@ -1,6 +1,6 @@
/* -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-#ifndef _PROCMAN_DEFAULTTABLE_H_
-#define _PROCMAN_DEFAULTTABLE_H_
+#ifndef _GSM_DEFAULT_TABLE_H_
+#define _GSM_DEFAULT_TABLE_H_
#include <string>
#include <glibmm/refptr.h>
@@ -50,4 +50,4 @@ static const PrettyTableItem default_table[] = {
#undef ITEM
-#endif /* _PROCMAN_DEFAULTTABLE_H_ */
+#endif /* _GSM_DEFAULT_TABLE_H_ */
diff --git a/src/disks.h b/src/disks.h
index 5bf60d8..36feb1c 100644
--- a/src/disks.h
+++ b/src/disks.h
@@ -1,6 +1,6 @@
/* -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-#ifndef H_GNOME_SYSTEM_MONITOR_DISKS_1123719137
-#define H_GNOME_SYSTEM_MONITOR_DISKS_1123719137
+#ifndef _GSM_DISKS_H_
+#define _GSM_DISKS_H_
#include "application.h"
@@ -10,4 +10,5 @@ void disks_update (GsmApplication *app);
void disks_freeze (GsmApplication *app);
void disks_thaw (GsmApplication *app);
void disks_reset_timeout (GsmApplication *app);
-#endif /* H_GNOME_SYSTEM_MONITOR_DISKLIST_1123719137 */
+
+#endif /* _GSM_DISKS_H_ */
diff --git a/src/e_date.h b/src/e_date.h
index c2dcc1f..5e0d0a7 100644
--- a/src/e_date.h
+++ b/src/e_date.h
@@ -1,10 +1,10 @@
/* -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-#ifndef H_PROCMAN_E_DATE_1135695432
-#define H_PROCMAN_E_DATE_1135695432
+#ifndef _GSM_E_DATE_H_
+#define _GSM_E_DATE_H_
#include <time.h>
char *
procman_format_date_for_display(time_t d);
-#endif /* H_PROCMAN_E_DATE_1135695432 */
+#endif /* _GSM_E_DATE_H_ */
diff --git a/src/gsm_color_button.h b/src/gsm_color_button.h
index 6291323..7b4a796 100644
--- a/src/gsm_color_button.h
+++ b/src/gsm_color_button.h
@@ -20,8 +20,8 @@
* Boston, MA 02111-1307, USA.
*/
-#ifndef __GSM_COLOR_BUTTON_H__
-#define __GSM_COLOR_BUTTON_H__
+#ifndef _GSM_COLOR_BUTTON_H_
+#define _GSM_COLOR_BUTTON_H_
#include <glib.h>
#include <gdk/gdk.h>
@@ -89,4 +89,4 @@ void gsm_color_button_set_title (GSMColorButton * color_button, const gchar * ti
G_CONST_RETURN gchar *gsm_color_button_get_title (GSMColorButton * color_button);
G_END_DECLS
-#endif /* __GSM_COLOR_BUTTON_H__ */
+#endif /* _GSM_COLOR_BUTTON_H_ */
diff --git a/src/gsm_gksu.h b/src/gsm_gksu.h
index 3f63d82..d7c4787 100644
--- a/src/gsm_gksu.h
+++ b/src/gsm_gksu.h
@@ -1,6 +1,6 @@
/* -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-#ifndef H_GNOME_SYSTEM_MONITOR_GKSU_H_1132171928
-#define H_GNOME_SYSTEM_MONITOR_GKSU_H_1132171928
+#ifndef _GSM_GSM_GKSU_H_
+#define _GSM_GSM_GKSU_H_
#include <glib.h>
@@ -10,4 +10,4 @@ gsm_gksu_create_root_password_dialog(const char * command);
gboolean
procman_has_gksu(void) G_GNUC_CONST;
-#endif /* H_GNOME_SYSTEM_MONITOR_GKSU_H_1132171928 */
+#endif /* _GSM_GSM_GKSU_H_ */
diff --git a/src/gsm_gnomesu.h b/src/gsm_gnomesu.h
index a19e770..323059b 100644
--- a/src/gsm_gnomesu.h
+++ b/src/gsm_gnomesu.h
@@ -1,6 +1,6 @@
/* -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-#ifndef H_GNOME_SYSTEM_MONITOR_GNOMESU_H_1132171917
-#define H_GNOME_SYSTEM_MONITOR_GNOMESU_H_1132171917
+#ifndef _GSM_GSM_GNOMESU_H_
+#define _GSM_GSM_GNOMESU_H_
#include <glib.h>
@@ -10,4 +10,4 @@ gsm_gnomesu_create_root_password_dialog(const char * message);
gboolean
procman_has_gnomesu(void) G_GNUC_CONST;
-#endif /* H_GNOME_SYSTEM_MONITOR_GNOMESU_H_1132171917 */
+#endif /* _GSM_GSM_GNOMESU_H_ */
diff --git a/src/gsm_pkexec.h b/src/gsm_pkexec.h
index be4e4aa..0aec1a7 100644
--- a/src/gsm_pkexec.h
+++ b/src/gsm_pkexec.h
@@ -1,6 +1,6 @@
/* -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-#ifndef H_GNOME_SYSTEM_MONITOR_PKEXEC_H_
-#define H_GNOME_SYSTEM_MONITOR_PKEXEC_H_
+#ifndef _GSM_GSM_PKEXEC_H_
+#define _GSM_GSM_PKEXEC_H_
#include <glib.h>
@@ -10,4 +10,4 @@ gsm_pkexec_create_root_password_dialog(const char *command);
gboolean
procman_has_pkexec(void) G_GNUC_CONST;
-#endif /* H_GNOME_SYSTEM_MONITOR_PKEXEC_H_ */
+#endif /* _GSM_PKEXEC_H_ */
diff --git a/src/iconthemewrapper.h b/src/iconthemewrapper.h
index 2508dfa..5214b6a 100644
--- a/src/iconthemewrapper.h
+++ b/src/iconthemewrapper.h
@@ -1,6 +1,6 @@
/* -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-#ifndef H_PROCMAN_ICONTHEMEWRAPPER_H_1185707711
-#define H_PROCMAN_ICONTHEMEWRAPPER_H_1185707711
+#ifndef _GSM_ICON_THEME_WRAPPER_H_
+#define _GSM_ICON_THEME_WRAPPER_H_
#include <glibmm/refptr.h>
#include <glibmm/ustring.h>
@@ -23,4 +23,4 @@ namespace procman
};
}
-#endif // H_PROCMAN_ICONTHEMEWRAPPER_H_1185707711
+#endif /* _GSM_ICON_THEME_WRAPPER_H_ */
diff --git a/src/interface.h b/src/interface.h
index bae96cb..66cea96 100644
--- a/src/interface.h
+++ b/src/interface.h
@@ -18,8 +18,8 @@
*
*/
-#ifndef _PROCMAN_INTERFACE_H_
-#define _PROCMAN_INTERFACE_H_
+#ifndef _GSM_INTERFACE_H_
+#define _GSM_INTERFACE_H_
#include <glib.h>
#include <gtk/gtk.h>
@@ -28,4 +28,4 @@
void create_main_window (GsmApplication *app);
void update_sensitivity (GsmApplication *app);
-#endif /* _PROCMAN_INTERFACE_H_ */
+#endif /* _GSM_INTERFACE_H_ */
diff --git a/src/load-graph.h b/src/load-graph.h
index 6089b52..7d09f33 100644
--- a/src/load-graph.h
+++ b/src/load-graph.h
@@ -1,6 +1,6 @@
/* -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-#ifndef _PROCMAN_LOAD_GRAPH_H_
-#define _PROCMAN_LOAD_GRAPH_H_
+#ifndef _GSM_LOAD_GRAPH_H_
+#define _GSM_LOAD_GRAPH_H_
#include <glib.h>
#include <glibtop/cpu.h>
@@ -127,4 +127,4 @@ load_graph_get_mem_color_picker(LoadGraph *g) G_GNUC_CONST;
GtkWidget*
load_graph_get_swap_color_picker(LoadGraph *g) G_GNUC_CONST;
-#endif /* _PROCMAN_LOAD_GRAPH_H_ */
+#endif /* _GSM_LOAD_GRAPH_H_ */
diff --git a/src/lsof.h b/src/lsof.h
index 57b97a1..8b8111a 100644
--- a/src/lsof.h
+++ b/src/lsof.h
@@ -1,10 +1,10 @@
/* -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-#ifndef H_PROCMAN_LSOF_1161179202
-#define H_PROCMAN_LSOF_1161179202
+#ifndef _GSM_LSOF_H_
+#define _GSM_LSOF_H_
#include <glib.h>
#include "application.h"
void procman_lsof(GsmApplication *app);
-#endif /* H_PROCMAN_LSOF_1161179202 */
+#endif /* _GSM_LSOF_H_ */
diff --git a/src/memmaps.h b/src/memmaps.h
index 65dba7d..6a9bd72 100644
--- a/src/memmaps.h
+++ b/src/memmaps.h
@@ -1,10 +1,10 @@
/* -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-#ifndef _PROCMAN_MEMMAPS_H_
-#define _PROCMAN_MEMMAPS_H_
+#ifndef _GSM_MEMMAPS_H_
+#define _GSM_MEMMAPS_H_
#include <glib.h>
#include "application.h"
void create_memmaps_dialog (GsmApplication *app);
-#endif /* _PROCMAN_MEMMAPS_H_ */
+#endif /* _GSM_MEMMAPS_H_ */
diff --git a/src/openfiles.h b/src/openfiles.h
index 86158af..9595e8d 100644
--- a/src/openfiles.h
+++ b/src/openfiles.h
@@ -1,6 +1,6 @@
/* -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-#ifndef _OPENFILES_H_
-#define _OPENFILES_H_
+#ifndef _GSM_OPENFILES_H_
+#define _GSM_OPENFILES_H_
#include <glib.h>
@@ -8,4 +8,4 @@
void create_openfiles_dialog (GsmApplication *app);
-#endif
+#endif /* _GSM_OPENFILES_H_ */
diff --git a/src/prefsdialog.h b/src/prefsdialog.h
index d52dd76..5e3f833 100644
--- a/src/prefsdialog.h
+++ b/src/prefsdialog.h
@@ -1,5 +1,9 @@
/* -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+#ifndef _GSM_PREFS_DIALOG_H_
+#define _GSM_PREFS_DIALOG_H_
#include "application.h"
void create_preferences_dialog (GsmApplication *app);
+
+#endif /* _GSM_PREFS_DIALOG_H_ */
diff --git a/src/prettytable.h b/src/prettytable.h
index afd0915..a0eba1b 100644
--- a/src/prettytable.h
+++ b/src/prettytable.h
@@ -1,6 +1,6 @@
/* -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-#ifndef _PROCMAN_PRETTYTABLE_H_
-#define _PROCMAN_PRETTYTABLE_H_
+#ifndef _GSM_PRETTY_TABLE_H_
+#define _GSM_PRETTY_TABLE_H_
#include <glib.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
@@ -74,4 +74,4 @@ private:
};
-#endif /* _PROCMAN_PRETTYTABLE_H_ */
+#endif /* _GSM_PRETTY_TABLE_H_ */
diff --git a/src/procactions.h b/src/procactions.h
index 07a4643..4b16fb2 100644
--- a/src/procactions.h
+++ b/src/procactions.h
@@ -17,13 +17,12 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
*
*/
-#ifndef _PROCACTIONS_H_
-#define _PROCACTIONS_H_
+#ifndef _GSM_PROCACTIONS_H_
+#define _GSM_PROCACTIONS_H_
#include "application.h"
void renice (GsmApplication *app, int nice);
void kill_process (GsmApplication *app, int sig);
-#endif
-
+#endif /* _GSM_PROCACTIONS_H_ */
diff --git a/src/procdialogs.h b/src/procdialogs.h
index 2b43b95..e165d3a 100644
--- a/src/procdialogs.h
+++ b/src/procdialogs.h
@@ -17,8 +17,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
*
*/
-#ifndef _PROCDIALOGS_H_
-#define _PROCDIALOGS_H_
+#ifndef _GSM_PROCDIALOGS_H_
+#define _GSM_PROCDIALOGS_H_
#include <glib.h>
@@ -50,5 +50,4 @@ gboolean procdialog_create_root_password_dialog (ProcmanActionTyp
gint pid, gint extra_value);
void procdialog_create_memmaps_dialog (GsmApplication *app);
-#endif
-
+#endif /* _GSM_PROCDIALOGS_H_ */
diff --git a/src/procproperties.h b/src/procproperties.h
index a1f47b9..4502deb 100644
--- a/src/procproperties.h
+++ b/src/procproperties.h
@@ -19,8 +19,8 @@
*
*/
-#ifndef _PROCPROPERTIES_H_
-#define _PROCPROPERTIES_H_
+#ifndef _GSM_PROCPROPERTIES_H_
+#define _GSM_PROCPROPERTIES_H_
#include <glib.h>
@@ -28,5 +28,4 @@
void create_procproperties_dialog (GsmApplication *app);
-#endif
-
+#endif /* _GSM_PROCPROPERTIES_H_ */
diff --git a/src/proctable.h b/src/proctable.h
index 6446ea9..9b0cc6c 100644
--- a/src/proctable.h
+++ b/src/proctable.h
@@ -18,8 +18,8 @@
*
*/
-#ifndef _PROCMAN_PROCTABLE_H_
-#define _PROCMAN_PROCTABLE_H_
+#ifndef _GSM_PROCTABLE_H_
+#define _GSM_PROCTABLE_H_
#include <glib.h>
#include <gtk/gtk.h>
@@ -73,4 +73,4 @@ void get_process_memory_writable (ProcInfo *info);
void get_last_selected (GtkTreeModel *model, GtkTreePath *path,
GtkTreeIter *iter, gpointer data);
-#endif /* _PROCMAN_PROCTABLE_H_ */
+#endif /* _GSM_PROCTABLE_H_ */
diff --git a/src/selinux.h b/src/selinux.h
index be75af7..e30c7c0 100644
--- a/src/selinux.h
+++ b/src/selinux.h
@@ -1,6 +1,6 @@
/* -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-#ifndef PROCMAN_SELINUX_H_20050525
-#define PROCMAN_SELINUX_H_20050525
+#ifndef _GSM_SELINUX_H_
+#define _GSM_SELINUX_H_
#include <glib.h>
@@ -12,4 +12,4 @@ get_process_selinux_context (ProcInfo *info);
gboolean
can_show_security_context_column (void) G_GNUC_CONST;
-#endif /* PROCMAN_SELINUX_H_20050525 */
+#endif /* _GSM_SELINUX_H_ */
diff --git a/src/settings-keys.h b/src/settings-keys.h
index e94cbff..0b84144 100644
--- a/src/settings-keys.h
+++ b/src/settings-keys.h
@@ -1,6 +1,6 @@
/* -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-#ifndef H_PROCMAN_SETTINGS_KEYS_1177430397
-#define H_PROCMAN_SETTINGS_KEYS_1177430397
+#ifndef _GSM_SETTINGS_KEYS_H_
+#define _GSM_SETTINGS_KEYS_H_
#define GSM_GSETTINGS_SCHEMA "org.gnome.gnome-system-monitor"
@@ -32,4 +32,4 @@
#define GSM_SETTING_SHOW_ALL_FS "show-all-fs"
#define GSM_SETTING_SMOOTH_REFRESH "smooth-refresh"
-#endif // H_PROCMAN_SETTINGS_KEYS_1177430397
+#endif /* _GSM_SETTINGS_KEYS_H_ */
diff --git a/src/smooth_refresh.h b/src/smooth_refresh.h
index 100bd5a..dadba7b 100644
--- a/src/smooth_refresh.h
+++ b/src/smooth_refresh.h
@@ -1,6 +1,6 @@
/* -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-#ifndef _PROCMAN_SMOOTH_REFRESH
-#define _PROCMAN_SMOOTH_REFRESH
+#ifndef _GSM_SMOOTH_REFRESH_H
+#define _GSM_SMOOTH_REFRESH_H
#include <glib.h>
#include <gio/gio.h>
@@ -101,4 +101,4 @@ class SmoothRefresh
};
-#endif /* _PROCMAN_SMOOTH_REFRESH */
+#endif /* _GSM_SMOOTH_REFRESH_H */
diff --git a/src/util.h b/src/util.h
index 9d5bdab..28fdc62 100644
--- a/src/util.h
+++ b/src/util.h
@@ -1,6 +1,6 @@
/* -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-#ifndef H_GNOME_SYSTEM_MONITOR_UTIL_1123178725
-#define H_GNOME_SYSTEM_MONITOR_UTIL_1123178725
+#ifndef _GSM_UTIL_H_
+#define _GSM_UTIL_H_
#include <glib.h>
#include <gtk/gtk.h>
@@ -134,4 +134,4 @@ namespace procman
void bind_column_to_gsetting (GSettings *settings, GtkTreeViewColumn *column);
-#endif /* H_GNOME_SYSTEM_MONITOR_UTIL_1123178725 */
+#endif /* _GSM_UTIL_H_ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]