[baobab] Add modelines to c files
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [baobab] Add modelines to c files
- Date: Sat, 15 Oct 2011 16:26:18 +0000 (UTC)
commit 9b4b1a9efabed27ea695f837e32b7f4b1ef89dea
Author: Paolo Borelli <pborelli gnome org>
Date: Sat Oct 15 18:29:09 2011 +0200
Add modelines to c files
src/baobab-cell-renderer-progress.c | 8 ++++++--
src/baobab-chart.c | 8 ++++++--
src/baobab-prefs.c | 4 +++-
src/baobab-remote-connect-dialog.c | 7 ++++---
src/baobab-ringschart.c | 6 +++---
src/baobab-scan.c | 7 +++----
src/baobab-treemap.c | 3 ++-
src/baobab-treeview.c | 9 ++++++---
src/baobab-utils.c | 9 ++++++---
src/baobab.c | 16 ++++++++--------
src/callbacks.c | 6 +++---
11 files changed, 50 insertions(+), 33 deletions(-)
---
diff --git a/src/baobab-cell-renderer-progress.c b/src/baobab-cell-renderer-progress.c
index 195f2a1..2706a6d 100644
--- a/src/baobab-cell-renderer-progress.c
+++ b/src/baobab-cell-renderer-progress.c
@@ -18,9 +18,11 @@
* Boston, MA 02111-1307, USA.
*/
-#include "config.h"
-#include <stdlib.h>
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+#include <stdlib.h>
#include "baobab-cell-renderer-progress.h"
#define BAOBAB_CELL_RENDERER_PROGRESS_GET_PRIVATE(object) (G_TYPE_INSTANCE_GET_PRIVATE ((object), \
@@ -258,3 +260,5 @@ baobab_cell_renderer_progress_class_init (BaobabCellRendererProgressClass *klass
g_type_class_add_private (object_class,
sizeof (BaobabCellRendererProgressPrivate));
}
+
+/* ex:set ts=8 noet: */
diff --git a/src/baobab-chart.c b/src/baobab-chart.c
index 9142eb4..6f49b06 100644
--- a/src/baobab-chart.c
+++ b/src/baobab-chart.c
@@ -31,10 +31,12 @@
* Alejandro Garcia <alex igalia com>
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
-#include <gtk/gtk.h>
-#include <glib/gi18n.h>
+#endif
+#include <glib/gi18n.h>
+#include <gtk/gtk.h>
#include "baobab-chart.h"
#define BAOBAB_CHART_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), \
@@ -1852,3 +1854,5 @@ baobab_chart_can_zoom_out (GtkWidget *chart)
else
return (priv->max_depth < BAOBAB_CHART_MAX_DEPTH);
}
+
+/* ex:set ts=8 noet: */
diff --git a/src/baobab-prefs.c b/src/baobab-prefs.c
index 742e3fd..cc7946e 100644
--- a/src/baobab-prefs.c
+++ b/src/baobab-prefs.c
@@ -20,8 +20,9 @@
* Boston, MA 02110-1301 USA
*/
-
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
#include <string.h>
#include <sys/stat.h>
@@ -325,3 +326,4 @@ baobab_prefs_dialog (void)
gtk_widget_show_all (dlg);
}
+/* ex:set ts=8 noet: */
diff --git a/src/baobab-remote-connect-dialog.c b/src/baobab-remote-connect-dialog.c
index fff2571..7440575 100644
--- a/src/baobab-remote-connect-dialog.c
+++ b/src/baobab-remote-connect-dialog.c
@@ -26,16 +26,16 @@
* Boston, MA 02111-1307, USA.
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
-#include "baobab-remote-connect-dialog.h"
+#endif
#include <string.h>
#include <glib/gi18n.h>
#include <gio/gio.h>
#include <gtk/gtk.h>
-
#include "baobab.h"
-
+#include "baobab-remote-connect-dialog.h"
/* Translators: all the strings in this file are meant to map the
similar strings inside nautilus-connect-server and should be
@@ -800,3 +800,4 @@ baobab_remote_connect_dialog_new (GtkWindow *window, GFile *location)
return dialog;
}
+/* ex:set ts=8 noet: */
diff --git a/src/baobab-ringschart.c b/src/baobab-ringschart.c
index 1794432..ab604f5 100644
--- a/src/baobab-ringschart.c
+++ b/src/baobab-ringschart.c
@@ -37,10 +37,8 @@
#include <math.h>
#include <string.h>
-
-#include <gtk/gtk.h>
#include <pango/pangocairo.h>
-
+#include <gtk/gtk.h>
#include "baobab-chart.h"
#include "baobab-ringschart.h"
@@ -677,3 +675,5 @@ baobab_ringschart_set_subfoldertips_enabled (GtkWidget *chart, gboolean enabled)
baobab_ringschart_clean_subforlder_tips_state (chart);
}
}
+
+/* ex:set ts=8 noet: */
diff --git a/src/baobab-scan.c b/src/baobab-scan.c
index 8c85d85..e9f6dbc 100644
--- a/src/baobab-scan.c
+++ b/src/baobab-scan.c
@@ -20,19 +20,17 @@
* Boston, MA 02110-1301 USA
*/
-
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
#include <string.h>
-
#include <glib.h>
#include <gtk/gtk.h>
#include <gio/gio.h>
-
#include "baobab.h"
#include "baobab-utils.h"
-
/*
Hardlinks handling.
@@ -379,3 +377,4 @@ baobab_scan_execute (GFile *location)
g_object_unref (info);
}
+/* ex:set ts=8 noet: */
diff --git a/src/baobab-treemap.c b/src/baobab-treemap.c
index 3acbf83..30fd446 100644
--- a/src/baobab-treemap.c
+++ b/src/baobab-treemap.c
@@ -32,7 +32,6 @@
#include <math.h>
#include <string.h>
#include <gtk/gtk.h>
-
#include "baobab-chart.h"
#include "baobab-treemap.h"
@@ -344,3 +343,5 @@ baobab_treemap_new (void)
{
return g_object_new (BAOBAB_TREEMAP_TYPE, NULL);
}
+
+/* ex:set ts=8 noet: */
diff --git a/src/baobab-treeview.c b/src/baobab-treeview.c
index 2a3aad3..d6cf166 100644
--- a/src/baobab-treeview.c
+++ b/src/baobab-treeview.c
@@ -20,14 +20,15 @@
* Boston, MA 02110-1301 USA
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
-#include <gtk/gtk.h>
+#include <string.h>
#include <glib.h>
#include <glib/gprintf.h>
#include <glib/gi18n.h>
-#include <string.h>
-
+#include <gtk/gtk.h>
#include "baobab.h"
#include "baobab-treeview.h"
#include "baobab-cell-renderer-progress.h"
@@ -334,3 +335,5 @@ baobab_treeview_show_allocated_size (GtkWidget *tv,
new_sort_id, order);
}
}
+
+/* ex:set ts=8 noet: */
diff --git a/src/baobab-utils.c b/src/baobab-utils.c
index 8103197..f5a02be 100644
--- a/src/baobab-utils.c
+++ b/src/baobab-utils.c
@@ -20,18 +20,19 @@
* Boston, MA 02110-1301 USA
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
-#include <glib.h>
-#include <glib/gstdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <string.h>
+#include <glib.h>
+#include <glib/gstdio.h>
#include <glib/gi18n.h>
#include <glib/gprintf.h>
#include <gtk/gtk.h>
#include <gio/gio.h>
-
#include "baobab.h"
#include "baobab-treeview.h"
#include "baobab-utils.h"
@@ -511,3 +512,5 @@ is_virtual_filesystem (GFile *file)
return ret;
}
+
+/* ex:set ts=8 noet: */
diff --git a/src/baobab.c b/src/baobab.c
index 02e8ddb..5a095d8 100644
--- a/src/baobab.c
+++ b/src/baobab.c
@@ -20,21 +20,21 @@
* Boston, MA 02110-1301 USA
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
-#include <gtk/gtk.h>
#include <glib/gi18n.h>
#include <gio/gio.h>
#include <glibtop/mountlist.h>
#include <glibtop/fsusage.h>
-
+#include <gtk/gtk.h>
#include "baobab.h"
#include "baobab-scan.h"
#include "baobab-treeview.h"
#include "baobab-utils.h"
#include "callbacks.h"
#include "baobab-prefs.h"
-
#include "baobab-treemap.h"
#include "baobab-ringschart.h"
@@ -57,15 +57,13 @@ static GtkTargetEntry dnd_target_list[] = {
};
static gboolean
-scan_is_local (GFile *file)
+scan_is_local (GFile *file)
{
gchar *uri_scheme;
- gboolean ret = FALSE;
+ gboolean ret;
uri_scheme = g_file_get_uri_scheme (file);
- if (g_ascii_strcasecmp(uri_scheme,"file") == 0)
- ret = TRUE;
-
+ ret = (g_ascii_strcasecmp(uri_scheme, "file") == 0);
g_free (uri_scheme);
return ret;
@@ -1350,3 +1348,5 @@ main (int argc, char *argv[])
return 0;
}
+
+/* ex:set ts=8 noet: */
diff --git a/src/callbacks.c b/src/callbacks.c
index 64c1cd6..9cdd05f 100644
--- a/src/callbacks.c
+++ b/src/callbacks.c
@@ -21,14 +21,13 @@
*/
#ifdef HAVE_CONFIG_H
-# include <config.h>
+#include <config.h>
#endif
#include <string.h>
-#include <gtk/gtk.h>
#include <glib/gi18n.h>
#include <gio/gio.h>
-
+#include <gtk/gtk.h>
#include "baobab.h"
#include "baobab-treeview.h"
#include "baobab-utils.h"
@@ -334,3 +333,4 @@ on_chart_snapshot_cb (GtkCheckMenuItem *checkmenuitem, gpointer user_data)
baobab_chart_save_snapshot (baobab.current_chart);
}
+/* ex:set ts=8 noet: */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]