gyrus r351 - trunk/src



Author: csaavedra
Date: Sat Oct 11 15:08:35 2008
New Revision: 351
URL: http://svn.gnome.org/viewvc/gyrus?rev=351&view=rev

Log:
2008-10-11  Claudio Saavedra  <csaavedra igalia com>

	* src/gyrus-report.c: Mark private methods static.
	* src/gyrus-report.h: No need to expose private methods or structures,
	move to gyrus-report.c. Remove unused includes.



Modified:
   trunk/src/gyrus-report.c
   trunk/src/gyrus-report.h

Modified: trunk/src/gyrus-report.c
==============================================================================
--- trunk/src/gyrus-report.c	(original)
+++ trunk/src/gyrus-report.c	Sat Oct 11 15:08:35 2008
@@ -41,6 +41,27 @@
 #define	YINI 740		/* initial value Y */
 #define	XLIN 550		/* width of line */
 
+typedef struct _GyrusReportData {
+        GyrusAdmin *admin;
+
+        gdouble n_percen;
+	gchar *mailbox_temp;
+
+	GtkWidget *button_print;
+	GtkWidget *window_report;
+        GtkWidget *spin_report;
+        GtkTreeView *treeview_report;
+
+	GnomePrintContext *gpc;
+	GnomeFont *font;
+	gint xini;
+	gint yini;
+	gint xlin;
+	gint nlin;
+	gint page;
+
+} GyrusReportData;
+
 typedef enum {
 	COLUMN_FOLDER = 0,
 	COLUMN_MAILBOX,
@@ -50,6 +71,17 @@
 	NUM_COLUMN
 } GyrusReportColumn;
 
+static void gyrus_report_on_button_cancel_clicked (GtkWidget *widget, GyrusReportData *report);
+static void gyrus_report_on_button_update_clicked (GtkWidget *widget, GyrusReportData *report);
+static gboolean gyrus_report_evaluate_quota (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data);
+static GtkTreeView * gyrus_report_initialize_tree_view (GtkTreeView *treeview_report);
+static void gyrus_report_on_delete_event_window_report (GtkWidget *widget, GdkEvent *event, GyrusReportData *report);
+static void gyrus_report_on_button_print_clicked(GtkWidget *widget, GyrusReportData *report);
+static void gyrus_report_create_print (GnomePrintJob *job, gboolean preview, GyrusReportData *report);
+static void gyrus_report_create_data_page (GyrusReportData *report);
+static gboolean gyrus_report_print_quota (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data);
+static void gyrus_report_draw_begin (GyrusReportData *report);
+
 /* read glade file, connect signal and show window */
 void
 gyrus_report_show_report (GyrusAdmin *admin)
@@ -136,7 +168,7 @@
 }
 
 /* initialize treeview report*/
-GtkTreeView *
+static GtkTreeView *
 gyrus_report_initialize_tree_view (GtkTreeView *treeview_report)
 {
         GtkTreeViewColumn* column;
@@ -215,7 +247,7 @@
 }
 
 /* close window */
-void
+static void
 gyrus_report_on_delete_event_window_report (GtkWidget *widget, 
 					    GdkEvent *event, 
 					    GyrusReportData *report)
@@ -224,7 +256,7 @@
 }
 
 /* close window */
-void
+static void
 gyrus_report_on_button_cancel_clicked (GtkWidget *widget, 
 				       GyrusReportData *report)
 {
@@ -233,7 +265,7 @@
 }
 
 /* compare each mailbox */
-void
+static void
 gyrus_report_on_button_update_clicked (GtkWidget *widget, 
 				       GyrusReportData *report)
 {
@@ -281,7 +313,7 @@
 }
 
 /* evaluate percentage */
-gboolean  
+static gboolean  
 gyrus_report_evaluate_quota (GtkTreeModel *model, 
 			     GtkTreePath *path, 
 			     GtkTreeIter *iter, 
@@ -376,7 +408,7 @@
 }
 
 /* show print dialog */
-void
+static void
 gyrus_report_on_button_print_clicked(GtkWidget *widget, GyrusReportData *report)
 {
 	GnomePrintJob *job;
@@ -413,7 +445,7 @@
 
 
 /* create job to print */
-void
+static void
 gyrus_report_create_print (GnomePrintJob *job, gboolean preview, GyrusReportData *report)
 {
 	report->gpc = gnome_print_job_get_context (job);
@@ -435,7 +467,7 @@
 }
 
 /* print top data */
-void
+static void
 gyrus_report_draw_begin (GyrusReportData *report)
 {
         guchar *page_name;
@@ -477,7 +509,7 @@
 
 
 /* sent to print each user, initialize number of page, number of line. */
-void
+static void
 gyrus_report_create_data_page (GyrusReportData *report)
 {
 	GtkTreeModel *model;
@@ -502,7 +534,7 @@
 }
 
 /* print quota and other data  */
-gboolean
+static gboolean
 gyrus_report_print_quota (GtkTreeModel *model, GtkTreePath *path, 
 			  GtkTreeIter *iter, gpointer data)
 {

Modified: trunk/src/gyrus-report.h
==============================================================================
--- trunk/src/gyrus-report.h	(original)
+++ trunk/src/gyrus-report.h	Sat Oct 11 15:08:35 2008
@@ -26,52 +26,7 @@
 #define GYRUS_REPORT_H
 
 #include "gyrus-admin.h"
-#include <libgnomeprint/gnome-print.h>
-#include <libgnomeprint/gnome-print-job.h>
-#include <libgnomeprintui/gnome-print-dialog.h>
 
-typedef struct _GyrusReportData {
-        GyrusAdmin *admin;
+void gyrus_report_show_report (GyrusAdmin *admin);
 
-        gdouble n_percen;
-	gchar *mailbox_temp;
-
-	GtkWidget *button_print;
-	GtkWidget *window_report;
-        GtkWidget *spin_report;
-        GtkTreeView *treeview_report;
-
-	GnomePrintContext *gpc;
-	GnomeFont *font;
-	gint xini;
-	gint yini;
-	gint xlin;
-	gint nlin;
-	gint page;
-
-} GyrusReportData;
-
-
-void
-gyrus_report_show_report (GyrusAdmin *admin);
-void 
-gyrus_report_on_button_cancel_clicked (GtkWidget *widget, GyrusReportData *report);
-void 
-gyrus_report_on_button_update_clicked (GtkWidget *widget, GyrusReportData *report);
-gboolean
-gyrus_report_evaluate_quota (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data);
-GtkTreeView *
-gyrus_report_initialize_tree_view (GtkTreeView *treeview_report);
-void
-gyrus_report_on_delete_event_window_report (GtkWidget *widget, GdkEvent *event, GyrusReportData *report);
-void
-gyrus_report_on_button_print_clicked(GtkWidget *widget, GyrusReportData *report);
-void
-gyrus_report_create_print (GnomePrintJob *job, gboolean preview, GyrusReportData *report);
-void
-gyrus_report_create_data_page (GyrusReportData *report);
-gboolean
-gyrus_report_print_quota (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data);
-void
-gyrus_report_draw_begin (GyrusReportData *report);
 #endif /* GYRUS_REPORT_H */



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