summaryrefslogtreecommitdiffstats
path: root/deskutils/gnome-utils/files
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2006-04-19 12:33:06 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2006-04-19 12:33:06 +0800
commit51cf5bdc83c7ee18e11e110f930c89fb7bc56d34 (patch)
tree1fdc417878e9acacf40f812580f2731355a36736 /deskutils/gnome-utils/files
parentd67a25da6bc504a55b4e3b6e9176a6d0af97cd4b (diff)
downloadmarcuscom-ports-51cf5bdc83c7ee18e11e110f930c89fb7bc56d34.tar
marcuscom-ports-51cf5bdc83c7ee18e11e110f930c89fb7bc56d34.tar.gz
marcuscom-ports-51cf5bdc83c7ee18e11e110f930c89fb7bc56d34.tar.bz2
marcuscom-ports-51cf5bdc83c7ee18e11e110f930c89fb7bc56d34.tar.lz
marcuscom-ports-51cf5bdc83c7ee18e11e110f930c89fb7bc56d34.tar.xz
marcuscom-ports-51cf5bdc83c7ee18e11e110f930c89fb7bc56d34.tar.zst
marcuscom-ports-51cf5bdc83c7ee18e11e110f930c89fb7bc56d34.zip
Fix more missing prototypes, and correct some instances of return without
value. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@6090 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'deskutils/gnome-utils/files')
-rw-r--r--deskutils/gnome-utils/files/patch-logview_loglist.h10
-rw-r--r--deskutils/gnome-utils/files/patch-logview_logrtns.c52
-rw-r--r--deskutils/gnome-utils/files/patch-logview_logview-findbar.h10
3 files changed, 72 insertions, 0 deletions
diff --git a/deskutils/gnome-utils/files/patch-logview_loglist.h b/deskutils/gnome-utils/files/patch-logview_loglist.h
new file mode 100644
index 000000000..149e04a59
--- /dev/null
+++ b/deskutils/gnome-utils/files/patch-logview_loglist.h
@@ -0,0 +1,10 @@
+--- logview/loglist.h.orig Wed Apr 19 00:30:12 2006
++++ logview/loglist.h Wed Apr 19 00:30:23 2006
+@@ -39,6 +39,7 @@ typedef struct LogListClass
+ GtkTreeViewClass parent_class;
+ }LogListClass;
+
++GType loglist_get_type (void);
+ GtkWidget *loglist_new (void);
+ void loglist_connect (LogList *list, LogviewWindow *window);
+ void loglist_add_log (LogList *list, Log *log);
diff --git a/deskutils/gnome-utils/files/patch-logview_logrtns.c b/deskutils/gnome-utils/files/patch-logview_logrtns.c
new file mode 100644
index 000000000..85333d2fe
--- /dev/null
+++ b/deskutils/gnome-utils/files/patch-logview_logrtns.c
@@ -0,0 +1,52 @@
+--- logview/logrtns.c.orig Wed Apr 19 00:28:00 2006
++++ logview/logrtns.c Wed Apr 19 00:29:24 2006
+@@ -48,7 +48,7 @@ file_exist (char *filename, gboolean sho
+ char *secondary = NULL;
+
+ if (filename == NULL)
+- return;
++ return FALSE;
+
+ result = gnome_vfs_open (&handle, filename, GNOME_VFS_OPEN_READ);
+ if (result != GNOME_VFS_OK) {
+@@ -83,7 +83,7 @@ file_is_zipped (char *filename)
+ char *mime_type;
+
+ if (filename == NULL)
+- return;
++ return FALSE;
+
+ mime_type = gnome_vfs_get_mime_type (filename);
+ if (mime_type == NULL)
+@@ -106,7 +106,7 @@ file_is_log (char *filename, gboolean sh
+ LogStats *stats;
+
+ if (filename == NULL)
+- return;
++ return FALSE;
+
+ stats = log_stats_new (filename, show_error);
+ if (stats==NULL)
+@@ -134,11 +134,11 @@ string_get_date_string (gchar *line)
+ int i=0;
+
+ if (line == NULL || line[0] == 0)
+- return;
++ return NULL;
+
+ split = g_strsplit (line, " ", 4);
+ if (split == NULL)
+- return;
++ return NULL;
+
+ while ((day == NULL || month == NULL) && split[i]!=NULL && i<4) {
+ if (g_str_equal (split[i], "")) {
+@@ -531,7 +531,7 @@ log_unbold (gpointer data)
+ LogList *list;
+ Log *log = data;
+
+- g_return_if_fail (log != NULL);
++ g_return_val_if_fail (log != NULL, FALSE);
+
+ logview = log->window;
+
diff --git a/deskutils/gnome-utils/files/patch-logview_logview-findbar.h b/deskutils/gnome-utils/files/patch-logview_logview-findbar.h
new file mode 100644
index 000000000..1e6acd101
--- /dev/null
+++ b/deskutils/gnome-utils/files/patch-logview_logview-findbar.h
@@ -0,0 +1,10 @@
+--- logview/logview-findbar.h.orig Wed Apr 19 00:27:03 2006
++++ logview/logview-findbar.h Wed Apr 19 00:27:17 2006
+@@ -44,6 +44,7 @@ typedef struct LogviewFindBarClass
+ GtkHBoxClass parent_class;
+ }LogviewFindBarClass;
+
++GType logview_findbar_get_type (void);
+ GtkWidget *logview_findbar_new (void);
+ void logview_findbar_connect (LogviewFindBar *findbar, LogviewWindow *logview);
+ void logview_findbar_update_visibility (LogviewFindBar *findbar, LogviewWindow *logview);