File gcolor2-0.4.patch of Package gcolor2

--- ./src/callbacks.c.orig	2005-07-12 14:06:12.000000000 -0400
+++ ./src/callbacks.c	2007-02-17 19:19:38.000000000 -0500
@@ -4,6 +4,9 @@
 
 #include <gtk/gtk.h>
 #include <stdio.h>
+#include <string.h>
+#include <glib.h>
+#include <glib/gprintf.h>
 
 #include "callbacks.h"
 #include "interface.h"
@@ -172,6 +175,9 @@ void on_copy_color_to_clipboard_activate
 	gtk_clipboard_set_text (cb, hex, strlen (hex));
 }
 
+void add_rgb_file (gchar *filename, gchar *type);
+gchar* get_system_file (void);
+
 void on_show_system_colors_activate (GtkMenuItem *menuitem, gpointer user_data)
 {
 	if (gtk_check_menu_item_get_active (GTK_CHECK_MENU_ITEM (menuitem)))
@@ -266,6 +272,8 @@ void on_save_button_clicked (GtkButton *
 	gtk_widget_destroy (savedialog);
 }
 
+void add_list_color (gchar *spec, gchar *name, gchar *type, gboolean is_new_color);
+
 void add_color_to_treeview ()
 {
 	GtkTreeView      *treeview;
=============================================================================
--- ./src/main.c.orig	2005-07-11 10:55:49.000000000 -0400
+++ ./src/main.c	2007-02-17 19:18:23.000000000 -0500
@@ -4,6 +4,10 @@
 
 #include <gtk/gtk.h>
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <glib.h>
+#include <glib/gprintf.h>
 
 #include "interface.h"
 #include "support.h"
=============================================================================
--- ./po/POTFILES.in.orig	2005-07-07 16:12:45.000000000 +0200
+++ ./po/POTFILES.in	2006-04-11 13:24:26.000000000 +0200
@@ -1,3 +1,4 @@
+[encoding: UTF-8]
 # List of source files containing translatable strings.
 
 src/main.c
=============================================================================
--- ./src/main.c.orig	2005-07-11 16:55:49.000000000 +0200
+++ ./src/main.c	2006-04-11 13:19:30.000000000 +0200
@@ -164,7 +164,7 @@
 	gtk_tree_view_set_model (GTK_TREE_VIEW (treeview), GTK_TREE_MODEL (liststore));
 	
 	column = gtk_tree_view_column_new ();
-	gtk_tree_view_column_set_title (column, "Color");
+	gtk_tree_view_column_set_title (column, _("Color"));
 	
 	renderer = gtk_cell_renderer_pixbuf_new ();
 	gtk_tree_view_column_pack_start (column, renderer, FALSE);
@@ -179,7 +179,7 @@
 	
 	
 	renderer = gtk_cell_renderer_text_new ();
-	column = gtk_tree_view_column_new_with_attributes ("Name", renderer,
+	column = gtk_tree_view_column_new_with_attributes (_("Name"), renderer,
 													   "text", COLOR_NAME, NULL);
 	gtk_tree_view_column_set_sort_column_id (column, COLOR_NAME);
 	gtk_tree_view_append_column (GTK_TREE_VIEW (treeview), column);