[goffice] Canvas Widgets: yet another signal fix.



commit daca197a84612c2d4e6f285a00a4c5b793aac3f8
Author: Morten Welinder <terra gnome org>
Date:   Wed Mar 27 16:26:21 2013 -0400

    Canvas Widgets: yet another signal fix.

 goffice/canvas/goc-widget.c |    4 ++--
 goffice/utils/go-pattern.c  |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/goffice/canvas/goc-widget.c b/goffice/canvas/goc-widget.c
index eacdf7a..7a2657c 100644
--- a/goffice/canvas/goc-widget.c
+++ b/goffice/canvas/goc-widget.c
@@ -596,9 +596,9 @@ goc_widget_connect_signals (GtkWidget *widget, GocWidget *item,
                                          G_CALLBACK (button_press_cb), item);
                } else {
                        g_signal_handlers_disconnect_by_func
-                               (item->ofbox, G_CALLBACK (enter_notify_cb), item);
+                               (widget, G_CALLBACK (enter_notify_cb), item);
                        g_signal_handlers_disconnect_by_func
-                               (item->ofbox, G_CALLBACK (button_press_cb), item);
+                               (widget, G_CALLBACK (button_press_cb), item);
                }
 }
 
diff --git a/goffice/utils/go-pattern.c b/goffice/utils/go-pattern.c
index 1db6152..67f619c 100644
--- a/goffice/utils/go-pattern.c
+++ b/goffice/utils/go-pattern.c
@@ -274,7 +274,7 @@ go_pattern_create_cairo_pattern (GOPattern const *pattern, cairo_t *cr)
        if (go_pattern_is_solid (pattern, &color)) {
                cr_pattern = cairo_pattern_create_rgba (GO_COLOR_TO_CAIRO (color));
 
-#if 0
+#if 1
                /* This code is disabled for now. Cairo export of vector pattern
                 * to PDF or PS looks terrible, and even SVG export is not properly rendered
                 * with Inkscape. */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]