]> Pileus Git - ~andy/gtk/commitdiff
gdk/gdkdraw.c #include gdkcairo.h for gdk_cairo_create() declaration.
authorManish Singh <yosh@gimp.org>
Sat, 14 May 2005 07:19:48 +0000 (07:19 +0000)
committerManish Singh <yosh@src.gnome.org>
Sat, 14 May 2005 07:19:48 +0000 (07:19 +0000)
Sat May 14 00:07:46 2005  Manish Singh  <yosh@gimp.org>

        * gdk/gdkdraw.c
        * gdk/gdkpango.c: #include gdkcairo.h for gdk_cairo_create()
        declaration.

        * gtk/gtkiconview.c (gtk_icon_view_create_drag_icon): actually
        call gdk_cairo_set_source_color() with a color.

        * gtk/gtkimage.c (gtk_image_expose): remove unused stock_id variable.

        * tests/testiconview.c (main): cast args of drag functions to the
        appropriate type.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-8
gdk/gdkdraw.c
gdk/gdkpango.c
gtk/gtkiconview.c
gtk/gtkimage.c
tests/testiconview.c

index f377a7a21f569a7f900e1845652106cc9b72fc6e..fc2c209148623aadaa83b635624379ced3a2844a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+Sat May 14 00:07:46 2005  Manish Singh  <yosh@gimp.org>
+
+       * gdk/gdkdraw.c
+       * gdk/gdkpango.c: #include gdkcairo.h for gdk_cairo_create()
+       declaration.
+
+       * gtk/gtkiconview.c (gtk_icon_view_create_drag_icon): actually
+       call gdk_cairo_set_source_color() with a color.
+
+       * gtk/gtkimage.c (gtk_image_expose): remove unused stock_id variable.
+
+       * tests/testiconview.c (main): cast args of drag functions to the
+       appropriate type.
+
 2005-05-13  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/x11/gdkdrawable-x11.c: Update for cairo-xlib API change.
index f377a7a21f569a7f900e1845652106cc9b72fc6e..fc2c209148623aadaa83b635624379ced3a2844a 100644 (file)
@@ -1,3 +1,17 @@
+Sat May 14 00:07:46 2005  Manish Singh  <yosh@gimp.org>
+
+       * gdk/gdkdraw.c
+       * gdk/gdkpango.c: #include gdkcairo.h for gdk_cairo_create()
+       declaration.
+
+       * gtk/gtkiconview.c (gtk_icon_view_create_drag_icon): actually
+       call gdk_cairo_set_source_color() with a color.
+
+       * gtk/gtkimage.c (gtk_image_expose): remove unused stock_id variable.
+
+       * tests/testiconview.c (main): cast args of drag functions to the
+       appropriate type.
+
 2005-05-13  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/x11/gdkdrawable-x11.c: Update for cairo-xlib API change.
index f377a7a21f569a7f900e1845652106cc9b72fc6e..fc2c209148623aadaa83b635624379ced3a2844a 100644 (file)
@@ -1,3 +1,17 @@
+Sat May 14 00:07:46 2005  Manish Singh  <yosh@gimp.org>
+
+       * gdk/gdkdraw.c
+       * gdk/gdkpango.c: #include gdkcairo.h for gdk_cairo_create()
+       declaration.
+
+       * gtk/gtkiconview.c (gtk_icon_view_create_drag_icon): actually
+       call gdk_cairo_set_source_color() with a color.
+
+       * gtk/gtkimage.c (gtk_image_expose): remove unused stock_id variable.
+
+       * tests/testiconview.c (main): cast args of drag functions to the
+       appropriate type.
+
 2005-05-13  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/x11/gdkdrawable-x11.c: Update for cairo-xlib API change.
index 93e3e9f8f34a2b2fed7af0a6477718598ea195a7..fd76de77ad830c60e055b5bb0ca00523be3ce63c 100644 (file)
@@ -27,6 +27,7 @@
 #include <config.h>
 #include <math.h>
 #include <pango/pangocairo.h>
+#include "gdkcairo.h"
 #include "gdkdrawable.h"
 #include "gdkinternals.h"
 #include "gdkwindow.h"
index a160511dc7f69dd0f6147c20520d70e1f094387a..8ade753e1bfc16fa34d101b9fbcba429dc8be62c 100644 (file)
@@ -20,6 +20,7 @@
 #include <config.h>
 #include <math.h>
 #include <pango/pangocairo.h>
+#include "gdkcairo.h"
 #include "gdkcolor.h"
 #include "gdkgc.h"
 #include "gdkinternals.h"
index 849410368260e774d456436e84270def847188f0..d2758313f83df6eecfee7c9ebbdb337ad02e886e 100644 (file)
@@ -6463,7 +6463,8 @@ gtk_icon_view_create_drag_icon (GtkIconView *icon_view,
          cr = gdk_cairo_create (drawable);
          cairo_set_line_width (cr, 1.);
 
-         gdk_cairo_set_source_color (cr, &widget->style->base_gc);
+         gdk_cairo_set_source_color
+           (cr, &widget->style->base[GTK_WIDGET_STATE (widget)]);
          cairo_rectangle (cr, 0, 0, item->width + 2, item->height + 2);
          cairo_fill (cr);
 
index c88ebbfcc1194f7466688f12211e8b62f7258b1c..3a0ecc9ef8ffdb9b4e5e66398ad789cac3759a18 100644 (file)
@@ -1547,9 +1547,7 @@ gtk_image_expose (GtkWidget      *widget,
       GdkBitmap *mask;
       GdkPixbuf *pixbuf;
       gboolean needs_state_transform;
-      gchar *stock_id;
-         
-      
+
       image = GTK_IMAGE (widget);
       misc = GTK_MISC (widget);
 
index e5e5b244eee106af11af2c08c9315552bfd2dd91..1ef1464cfef832072b8b89fbd691e245398571a6 100644 (file)
@@ -502,22 +502,22 @@ main (gint argc, gchar **argv)
 #endif
   /* Allow DND between the icon view and the tree view */
   
-  gtk_icon_view_enable_model_drag_source (icon_list,
+  gtk_icon_view_enable_model_drag_source (GTK_ICON_VIEW (icon_list),
                                          GDK_BUTTON1_MASK,
                                          item_targets,
                                          G_N_ELEMENTS (item_targets),
                                          GDK_ACTION_MOVE);
-  gtk_icon_view_enable_model_drag_dest (icon_list,
+  gtk_icon_view_enable_model_drag_dest (GTK_ICON_VIEW (icon_list),
                                        item_targets,
                                        G_N_ELEMENTS (item_targets),
                                        GDK_ACTION_MOVE);
 
-  gtk_tree_view_enable_model_drag_source (tv,
+  gtk_tree_view_enable_model_drag_source (GTK_TREE_VIEW (tv),
                                          GDK_BUTTON1_MASK,
                                          item_targets,
                                          G_N_ELEMENTS (item_targets),
                                          GDK_ACTION_MOVE);
-  gtk_tree_view_enable_model_drag_dest (tv,
+  gtk_tree_view_enable_model_drag_dest (GTK_TREE_VIEW (tv),
                                        item_targets,
                                        G_N_ELEMENTS (item_targets),
                                        GDK_ACTION_MOVE);