Blob Blame History Raw
Nur in gcolor2-0.4/po: potfiles.
diff -dur gcolor2-0.4.orig/src/callbacks.c gcolor2-0.4/src/callbacks.c
--- gcolor2-0.4.orig/src/callbacks.c	2005-07-12 20:06:12.000000000 +0200
+++ gcolor2-0.4/src/callbacks.c	2009-10-03 13:56:41.000000000 +0200
@@ -9,6 +9,8 @@
 #include "interface.h"
 #include "support.h"
 
+#include <string.h>
+#include <glib/gprintf.h>
 
 GtkWidget        *savedialog;
 gchar            *colorname;
diff -dur gcolor2-0.4.orig/src/main.c gcolor2-0.4/src/main.c
--- gcolor2-0.4.orig/src/main.c	2005-07-11 16:55:49.000000000 +0200
+++ gcolor2-0.4/src/main.c	2009-10-03 13:59:32.000000000 +0200
@@ -8,6 +8,9 @@
 #include "interface.h"
 #include "support.h"
 #include "callbacks.h"
+#include <stdlib.h>
+#include <string.h>
+#include <glib/gprintf.h>
 
 GtkListStore *liststore;
 GdkWindow    *gdkwin;
@@ -48,8 +51,6 @@
 
 void add_list_color (gchar *spec, gchar *name, gchar *type, gboolean is_new_color)
 {
-	GdkPixmap   *pixmap;
-	GdkBitmap   *mask;
 	GdkPixbuf   *buf;
 	GtkTreeIter  iter;
 	
@@ -103,7 +104,7 @@
 	gchar *name;
 	gchar  buffer[512];
 	gchar  spec[8];
-	gint   r, g, b, lr, lg, lb;
+	gint   r, g, b, lr=0, lg=0, lb=0;
 	
 	fp = fopen (filename, "r");
 	if (!fp)
@@ -140,7 +141,6 @@
 	GtkTreeViewColumn *column;
 	GtkWidget         *treeview;
 	GtkTreeSelection  *select;
-	gchar             *buf;
 	
 #ifdef ENABLE_NLS
 	bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);