patches/gegl-01-build.diff
author simonzheng
Fri, 14 Dec 2007 10:05:30 +0000
changeset 722 bbe11876aec0
permissions -rw-r--r--
2007-12-14 simon.zheng <[email protected]> * SFEbabl.spec: * base-specs/babl.spec: * patches/babl-01-build.diff: Add this because gegl depends on it. * SFEgegl.spec: * base-specs/gegl.spec: * patches/gegl-01-build.diff: Add this, because latest gnome-scan depends on it. * SFEgnome-scan.spec: * base-specs/gnome-scan.spec: Rename SFEgnomescan to SFEgnome-scan. Add dependency on gegl library. * base-specs/xsane.spec: Bump to 0.995.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
722
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
     1
--- gegl/buffer/gegl-provider.c.org	2007-12-13 17:51:26.520649000 +0800
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
     2
+++ gegl/buffer/gegl-provider.c	2007-12-13 17:51:46.914633000 +0800
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
     3
@@ -27,7 +27,7 @@
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
     4
           gint           y,
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
     5
           gint           z)
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
     6
 {
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
     7
-  g_warning ("implementationless %s called", __FUNCTION__);
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
     8
+  g_warning ("implementationless %s called", G_GNUC_FUNCTION);
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
     9
   return NULL;
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    10
 }
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    11
 
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    12
--- gegl/graph/gegl-node.c.org	2007-12-13 17:52:51.951240000 +0800
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    13
+++ gegl/graph/gegl-node.c	2007-12-13 17:53:22.372993000 +0800
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    14
@@ -1596,7 +1596,7 @@
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    15
 
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    16
   if (!node)
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    17
     {
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    18
-      g_warning ("%s node==NULL", __FUNCTION__);
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    19
+      g_warning ("%s node==NULL", G_GNUC_FUNCTION);
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    20
       return 0;
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    21
     }
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    22
 
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    23
@@ -1604,7 +1604,7 @@
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    24
 
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    25
   if (!pad)
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    26
     {
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    27
-      g_warning ("%s: no such pad %s for %s", __FUNCTION__, output_pad, gegl_node_get_debug_name (node));
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    28
+      g_warning ("%s: no such pad %s for %s", G_GNUC_FUNCTION, output_pad, gegl_node_get_debug_name (node));
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    29
       return 0;
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    30
     }
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    31
 
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    32
--- operations/Makefile-operations.am.org	2007-12-13 18:02:23.244010000 +0800
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    33
+++ operations/Makefile-operations.am	2007-12-13 18:02:37.110018000 +0800
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    34
@@ -14,7 +14,7 @@
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    35
 
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    36
 CFLAGS  += @DEP_CFLAGS@ @BABL_CFLAGS@ @CPPFLAGS@ \
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    37
            -I$(srcdir) -I$(top_srcdir) -I$(top_srcdir)/gegl -I$(top_srcdir)/gegl/buffer -I. -fPIC
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    38
-LDFLAGS += -shared $(no_undefined)
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    39
+LDFLAGS += -G $(no_undefined)
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    40
 
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    41
 LDADD    = @DEP_LIBS@ @BABL_LIBS@ $(libgegldlla)
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    42
 
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    43
--- ./gegl/gegl-utils.h.org	2007-12-13 18:13:05.399141000 +0800
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    44
+++ ./gegl/gegl-utils.h	2007-12-13 18:21:34.055958000 +0800
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    45
@@ -73,8 +73,8 @@
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    46
 
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    47
 #define INT_MULT(a,b,t)  ((t) = (a) * (b) + 0x80, ((((t) >> 8) + (t)) >> 8))
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    48
 
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    49
-inline gint _gegl_float_epsilon_zero  (float     value);
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    50
-inline gint _gegl_float_epsilon_equal (float     v1,
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    51
+gint _gegl_float_epsilon_zero  (float     value);
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    52
+gint _gegl_float_epsilon_equal (float     v1,
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    53
                                        float     v2);
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    54
 
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    55
 
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    56
--- ./gegl/gegl-utils.c.org	2007-12-13 18:13:13.871133000 +0800
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    57
+++ ./gegl/gegl-utils.c	2007-12-13 18:21:23.184055000 +0800
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    58
@@ -46,13 +46,13 @@
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    59
                        va_list         args);
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    60
 
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    61
 
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    62
-inline gint
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    63
+gint
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    64
 _gegl_float_epsilon_zero (float value)
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    65
 {
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    66
   return value > -GEGL_FLOAT_EPSILON && value < GEGL_FLOAT_EPSILON;
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    67
 }
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    68
 
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    69
-inline gint
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    70
+gint
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    71
 _gegl_float_epsilon_equal (float v1, float v2)
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    72
 {
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    73
   register float diff = v1 - v2;
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    74
--- ./bin/editor.c.org	2007-12-13 18:56:40.556212000 +0800
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    75
+++ ./bin/editor.c	2007-12-13 18:57:37.297014000 +0800
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    76
@@ -35,6 +35,10 @@
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    77
 
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    78
 #define  KEY_ZOOM_FACTOR  2.0
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    79
 
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    80
+GtkWidget * StockIcon (const gchar *id, GtkIconSize size, GtkWidget *widget)
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    81
+{
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    82
+        return gtk_image_new_from_stock (id, size);
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    83
+}
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    84
 
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    85
 static gchar *blank_composition =
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    86
     "<gegl>"
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    87
--- ./docs/Makefile.am.org	2007-12-13 18:59:16.841023000 +0800
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    88
+++ ./docs/Makefile.am	2007-12-13 18:59:27.515387000 +0800
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    89
@@ -7,7 +7,6 @@
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    90
 #
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    91
 #
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    92
 HTML_FILES = index-static.html 	\
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    93
-	index.html		\
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    94
 	operations.html		\
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    95
 	class-hierarchy.html	\
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    96
 	gegl.h.html
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    97
--- docs/Makefile.am.org	2007-12-13 19:14:32.526943000 +0800
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    98
+++ docs/Makefile.am	2007-12-13 19:14:44.209468000 +0800
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
    99
@@ -83,7 +83,7 @@
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
   100
 install-exec-local: all-local
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
   101
 	$(INSTALL) -d $(help_dir)
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
   102
 	$(INSTALL) $(srcdir)/api.html $(srcdir)/gegl.devhelp $(help_dir)
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
   103
-	$(INSTALL) -T $(srcdir)/devhelp.css $(help_dir)/gegl.css
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
   104
+	$(INSTALL) $(srcdir)/devhelp.css $(help_dir)/gegl.css
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
   105
 
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
   106
 uninstall-local:
bbe11876aec0 2007-12-14 simon.zheng <[email protected]>
simonzheng
parents:
diff changeset
   107
 	rm -f $(help_dir)/api.html $(help_dir)/gegl.devhelp