[gnome-utils] Rename application struct



commit 485a6f9b77cde9d435480179a28017a985dc3510
Author: Paolo Borelli <pborelli gnome org>
Date:   Sat Jul 24 21:25:35 2010 +0200

    Rename application struct

 baobab/src/baobab.h |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/baobab/src/baobab.h b/baobab/src/baobab.h
index b737609..2dca5ce 100644
--- a/baobab/src/baobab.h
+++ b/baobab/src/baobab.h
@@ -58,7 +58,9 @@ struct _BaobabChartMenu {
 	GtkWidget *set_root_item;
 };
 
-struct _baobab_application {
+typedef struct _BaobabApplication BaobabApplication;
+
+struct _BaobabApplication {
 	GtkBuilder *main_ui;
 	GtkWidget *window;
 	GtkWidget *tree_view;
@@ -85,6 +87,9 @@ struct _baobab_application {
 	gint model_max_depth;
 };
 
+/* Application singleton */
+BaobabApplication baobab;
+
 struct _baobab_fs {
 	guint64 total;
 	guint64 used;
@@ -103,7 +108,6 @@ struct chan_data {
 
 /* globals */
 gboolean g_noactivescans;
-baobab_application baobab;
 baobab_fs g_fs;
 
 void baobab_set_busy (gboolean busy);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]