diff options
author | slakmagik <jsun@freeshell.org> | 2010-05-13 00:34:14 +0200 |
---|---|---|
committer | Michiel van Wessem <michiel@slackbuilds.org> | 2010-05-13 00:34:14 +0200 |
commit | cc668d47353026580c3344ea5e93a47ae97cf7fc (patch) | |
tree | c29652b9590c9d1567cb4e0025672d2a32772da8 /misc/gcolor2/main.c.patch | |
parent | 1fffc279db497caf1ba3e351cc157948c0041f5d (diff) | |
download | slackbuilds-cc668d47353026580c3344ea5e93a47ae97cf7fc.tar.gz slackbuilds-cc668d47353026580c3344ea5e93a47ae97cf7fc.tar.xz |
misc/gcolor2: Updated for version 0.4
Diffstat (limited to 'misc/gcolor2/main.c.patch')
-rw-r--r-- | misc/gcolor2/main.c.patch | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/misc/gcolor2/main.c.patch b/misc/gcolor2/main.c.patch new file mode 100644 index 0000000000..f8ce79feea --- /dev/null +++ b/misc/gcolor2/main.c.patch @@ -0,0 +1,51 @@ + +--- gcolor2-0.4.orig/src/main.c ++++ gcolor2-0.4/src/main.c +@@ -4,11 +4,15 @@ + + #include <gtk/gtk.h> + #include <stdio.h> +- + #include "interface.h" + #include "support.h" + #include "callbacks.h" + ++/* missing headers on original file */ ++#include <stdlib.h> ++#include <string.h> ++#include <glib/gprintf.h> ++ + GtkListStore *liststore; + GdkWindow *gdkwin; + gchar *user_filename; +@@ -48,8 +52,9 @@ + + void add_list_color (gchar *spec, gchar *name, gchar *type, gboolean is_new_color) + { ++/* pixmap and mask don't used + GdkPixmap *pixmap; +- GdkBitmap *mask; ++ GdkBitmap *mask; */ + GdkPixbuf *buf; + GtkTreeIter iter; + +@@ -103,7 +108,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 +145,8 @@ + GtkTreeViewColumn *column; + GtkWidget *treeview; + GtkTreeSelection *select; +- gchar *buf; ++/* dont used ++ gchar *buf; */ + + #ifdef ENABLE_NLS + bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR); + |