[gtk+/rendering-cleanup] textview: Replace GdkGC * argument with gpointer



commit 708c7815db2b62048e45d0e7c6800f3cac50e287
Author: Benjamin Otte <otte redhat com>
Date:   Thu Jul 22 02:30:08 2010 +0200

    textview: Replace GdkGC * argument with gpointer
    
    The argument is unused.
    That's also the reason why we can pass NULL instead of the real GC in
    the caller.

 gtk/gtktextdisplay.c |    2 +-
 gtk/gtktextdisplay.h |    2 +-
 gtk/gtktextutil.c    |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtktextdisplay.c b/gtk/gtktextdisplay.c
index a62880a..20a7f5c 100644
--- a/gtk/gtktextdisplay.c
+++ b/gtk/gtktextdisplay.c
@@ -800,7 +800,7 @@ void
 gtk_text_layout_draw (GtkTextLayout *layout,
                       GtkWidget *widget,
                       GdkDrawable *drawable,
-		      GdkGC       *cursor_gc,
+		      gpointer     cursor_gc,
                       /* Location of the drawable
                          in layout coordinates */
                       gint x_offset,
diff --git a/gtk/gtktextdisplay.h b/gtk/gtktextdisplay.h
index b93a84c..3b6e96c 100644
--- a/gtk/gtktextdisplay.h
+++ b/gtk/gtktextdisplay.h
@@ -97,7 +97,7 @@ G_BEGIN_DECLS
 void gtk_text_layout_draw (GtkTextLayout        *layout,
                            GtkWidget            *widget,
                            GdkDrawable          *drawable,
-			   GdkGC                *cursor_gc,
+			   gpointer              cursor_gc,
                            gint                  x_offset,
                            gint                  y_offset,
                            gint                  x,
diff --git a/gtk/gtktextutil.c b/gtk/gtktextutil.c
index 32898fa..d335120 100644
--- a/gtk/gtktextutil.c
+++ b/gtk/gtktextutil.c
@@ -357,7 +357,7 @@ _gtk_text_util_create_rich_drag_icon (GtkWidget     *widget,
    cairo_paint (cr);
 
    gtk_text_layout_draw (layout, widget, drawable,
-                         widget->style->text_gc [gtk_widget_get_state (widget)],
+                         NULL,
                          - (1 + DRAG_ICON_LAYOUT_BORDER),
                          - (1 + DRAG_ICON_LAYOUT_BORDER),
                          0, 0,



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