[packages/gcolor2] Rel 3

arekm arekm at pld-linux.org
Thu May 21 16:01:01 CEST 2026


commit 598be1da57f83f6e716aa2a22f2dd4c795d62a0e
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu May 21 16:00:45 2026 +0200

    Rel 3

 gcolor2-missing-includes.patch | 54 +++++++++++++++++++++++++++++++++---------
 gcolor2.spec                   |  2 +-
 2 files changed, 44 insertions(+), 12 deletions(-)
---
diff --git a/gcolor2.spec b/gcolor2.spec
index 9043673..eb571bc 100644
--- a/gcolor2.spec
+++ b/gcolor2.spec
@@ -4,7 +4,7 @@
 Summary:	gcolor2 is a simple color selector
 Name:		gcolor2
 Version:	0.4
-Release:	2
+Release:	3
 License:	GPL v2
 Group:		X11/Applications/Graphics
 Source0:	http://dl.sourceforge.net/project/gcolor2/gcolor2/0.4/%{name}-%{version}.tar.bz2
diff --git a/gcolor2-missing-includes.patch b/gcolor2-missing-includes.patch
index a70e2ee..08ecb64 100644
--- a/gcolor2-missing-includes.patch
+++ b/gcolor2-missing-includes.patch
@@ -1,7 +1,5 @@
-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
+--- gcolor2-0.4.orig/src/callbacks.c	2026-05-21 01:35:47.042541678 +0200
++++ gcolor2-0.4/src/callbacks.c	2026-05-21 01:35:47.046792016 +0200
 @@ -9,6 +9,8 @@
  #include "interface.h"
  #include "support.h"
@@ -11,10 +9,36 @@ diff -dur gcolor2-0.4.orig/src/callbacks.c gcolor2-0.4/src/callbacks.c
  
  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 @@
+--- gcolor2-0.4.orig/src/callbacks.h	2026-05-21 01:35:47.042513447 +0200
++++ gcolor2-0.4/src/callbacks.h	2026-05-21 01:37:07.086219023 +0200
+@@ -41,9 +41,9 @@
+                            "\302\267 Usability / user interface enhancements\n" \
+                            "\302\267 Code cleanup"
+ 
+-GtkWidget *gcolor2;
+-GtkWidget *menu;
+-GdkColor   colorvalue;
++extern GtkWidget *gcolor2;
++extern GtkWidget *menu;
++extern GdkColor   colorvalue;
+ 
+ enum
+ {
+@@ -55,6 +55,11 @@
+ };
+ 
+ gchar* get_user_file();
++gchar* get_system_file();
++
++void add_rgb_file (gchar *filename, gchar *type);
++
++void add_list_color (gchar *spec, gchar *name, gchar *type, gboolean is_new_color);
+ 
+ void show_file_error (gchar* message);
+ 
+--- gcolor2-0.4.orig/src/main.c	2026-05-21 01:35:47.042373544 +0200
++++ gcolor2-0.4/src/main.c	2026-05-21 01:37:18.907509060 +0200
+@@ -8,11 +8,17 @@
  #include "interface.h"
  #include "support.h"
  #include "callbacks.h"
@@ -24,7 +48,15 @@ diff -dur gcolor2-0.4.orig/src/main.c gcolor2-0.4/src/main.c
  
  GtkListStore *liststore;
  GdkWindow    *gdkwin;
-@@ -48,8 +51,6 @@
+ gchar        *user_filename;
+ gchar        *sys_filename;
++GtkWidget    *gcolor2;
++GtkWidget    *menu;
++GdkColor      colorvalue;
+ 
+ 
+ void set_user_file ()
+@@ -48,8 +54,6 @@
  
  void add_list_color (gchar *spec, gchar *name, gchar *type, gboolean is_new_color)
  {
@@ -33,7 +65,7 @@ diff -dur gcolor2-0.4.orig/src/main.c gcolor2-0.4/src/main.c
  	GdkPixbuf   *buf;
  	GtkTreeIter  iter;
  	
-@@ -103,7 +104,7 @@
+@@ -103,7 +107,7 @@
  	gchar *name;
  	gchar  buffer[512];
  	gchar  spec[8];
@@ -42,7 +74,7 @@ diff -dur gcolor2-0.4.orig/src/main.c gcolor2-0.4/src/main.c
  	
  	fp = fopen (filename, "r");
  	if (!fp)
-@@ -140,7 +141,6 @@
+@@ -140,7 +144,6 @@
  	GtkTreeViewColumn *column;
  	GtkWidget         *treeview;
  	GtkTreeSelection  *select;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gcolor2.git/commitdiff/598be1da57f83f6e716aa2a22f2dd4c795d62a0e



More information about the pld-cvs-commit mailing list