From 2a7b2b30d7860607c41072a07bd794fdf67ceb71 Mon Sep 17 00:00:00 2001 From: Geert Janssens Date: Fri, 28 Oct 2011 12:26:38 +0000 Subject: [PATCH] Some small whitespace fixes and comment improvements. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21497 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/gnome-utils/dialog-query-list.c | 16 ++++++++-------- src/gnome-utils/dialog-reset-warnings.c | 25 ++++++++++++------------- 2 files changed, 20 insertions(+), 21 deletions(-) diff --git a/src/gnome-utils/dialog-query-list.c b/src/gnome-utils/dialog-query-list.c index d338d28fe7..fea7c3b5b9 100644 --- a/src/gnome-utils/dialog-query-list.c +++ b/src/gnome-utils/dialog-query-list.c @@ -37,14 +37,14 @@ struct _DialogQueryList { - GtkWidget * dialog; - GtkWidget * label; - GtkWidget * qlist; - GtkWidget * button_box; - GNCDisplayListButton * buttons; - gpointer user_data; - GList * books; - gint component_id; + GtkWidget * dialog; + GtkWidget * label; + GtkWidget * qlist; + GtkWidget * button_box; + GNCDisplayListButton * buttons; + gpointer user_data; + GList * books; + gint component_id; }; static void diff --git a/src/gnome-utils/dialog-reset-warnings.c b/src/gnome-utils/dialog-reset-warnings.c index 72b8ff92a0..f7396dca80 100644 --- a/src/gnome-utils/dialog-reset-warnings.c +++ b/src/gnome-utils/dialog-reset-warnings.c @@ -36,14 +36,14 @@ /* This static indicates the debugging module that this .o belongs to. */ static QofLogModule log_module = GNC_MOD_PREFS; -#define GCONF_SECTION "dialogs/reset_warnings" -#define DIALOG_RESET_WARNINGS_CM_CLASS "reset-warnings" -#define GCONF_ENTRY_LIST "gconf_entries" +#define GCONF_SECTION "dialogs/reset_warnings" +#define DIALOG_RESET_WARNINGS_CM_CLASS "reset-warnings" +#define GCONF_ENTRY_LIST "gconf_entries" #define TIPS_STRING "tips" typedef struct { - GtkWidget *dialog; + GtkWidget *dialog; GtkWidget *perm_vbox_label; GtkWidget *perm_vbox; GtkWidget *temp_vbox_label; @@ -57,11 +57,11 @@ void gnc_reset_warnings_select_all_cb (GtkButton *button, gpointer user_data); void gnc_reset_warnings_unselect_all_cb (GtkButton *button, gpointer user_data); void gnc_reset_warnings_response_cb (GtkDialog *dialog, gint response, gpointer user_data); static GSList *gnc_reset_warnings_add_section (RWDialog *rw_dialog, - const gchar *section, GtkWidget *box); + const gchar *section, GtkWidget *box); static void gnc_reset_warnings_release_entries (GSList *entries); static void gnc_reset_warnings_update_widgets (RWDialog *rw_dialog); static void gnc_reset_warnings_gconf_changed (GConfClient *client, guint cnxn_id, - GConfEntry *entry, gpointer user_data); + GConfEntry *entry, gpointer user_data); /**************************************************** @@ -269,8 +269,8 @@ gnc_reset_warnings_unselect_all_cb (GtkButton *button, } -/************************************************************************** - * This is the call back function adds an entry to the correct dialog box. +/*********************************************************************** + * This call back function adds an entry to the correct dialog box. * * @internal * @param rw_dialog, the data structure @@ -325,7 +325,7 @@ gnc_reset_warnings_add_one (RWDialog *rw_dialog, GConfEntry *entry, GtkWidget *b /******************************************************************** - * This is the call back function adds the gconf section + * This call back function adds the gconf section * to the dialog box. * * @internal @@ -389,8 +389,9 @@ gnc_reset_warnings_find_remove (GtkWidget *widget, } -/************************************************************************* - * This is the call back function when warning gconf entries are changed. +/*********************************************************************** + * This call back function is triggered when warning gconf entries + * are changed. * * @internal * @param The gconf client unused. @@ -404,7 +405,6 @@ gnc_reset_warnings_gconf_changed (GConfClient *client, GConfEntry *entry, gpointer user_data) { - RWDialog *rw_dialog = g_object_get_data(G_OBJECT(user_data),"dialog-structure"); GtkWidget *box; @@ -502,7 +502,6 @@ close_handler (gpointer user_data) void gnc_reset_warnings_dialog (GtkWindow *parent) { - RWDialog *rw_dialog; GtkWidget *dialog; GtkBuilder *builder;