[gnome-photos/wip/rishi/edit-mode: 27/30] tool: draw



commit 57db7cd8258bd668bba39a23d21ed007209438cd
Author: Debarshi Ray <debarshir gnome org>
Date:   Sat Jun 13 01:17:46 2015 +0200

    tool: draw

 src/photos-tool.c |    6 +++---
 src/photos-tool.h |    6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/photos-tool.c b/src/photos-tool.c
index 9cd8a01..c7452fb 100644
--- a/src/photos-tool.c
+++ b/src/photos-tool.c
@@ -38,7 +38,7 @@ G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE (PhotosTool, photos_tool, G_TYPE_OBJECT);
 
 
 static void
-photos_tool_default_draw (PhotosTool *self, cairo_t *cr)
+photos_tool_default_draw (PhotosTool *self, cairo_t *cr, GdkRectangle *rect)
 {
 }
 
@@ -92,9 +92,9 @@ photos_tool_class_init (PhotosToolClass *class)
 
 
 void
-photos_tool_draw (PhotosTool *self, cairo_t *cr)
+photos_tool_draw (PhotosTool *self, cairo_t *cr, GdkRectangle *rect)
 {
-  return PHOTOS_TOOL_GET_CLASS (self)->draw (self, cr);
+  return PHOTOS_TOOL_GET_CLASS (self)->draw (self, cr, rect);
 }
 
 
diff --git a/src/photos-tool.h b/src/photos-tool.h
index b542335..c645eb5 100644
--- a/src/photos-tool.h
+++ b/src/photos-tool.h
@@ -22,7 +22,7 @@
 #define PHOTOS_TOOL_H
 
 #include <cairo.h>
-#include <glib-object.h>
+#include <gdk/gdk.h>
 #include <gtk/gtk.h>
 
 G_BEGIN_DECLS
@@ -64,7 +64,7 @@ struct _PhotosToolClass
   GObjectClass parent_class;
 
   /* virtual methods */
-  void          (*draw)                       (PhotosTool *self, cairo_t *cr);
+  void          (*draw)                       (PhotosTool *self, cairo_t *cr, GdkRectangle *rect);
   const gchar  *(*get_icon_name)              (PhotosTool *self);
   const gchar  *(*get_name)                   (PhotosTool *self);
   GtkWidget    *(*get_widget)                 (PhotosTool *self);
@@ -75,7 +75,7 @@ struct _PhotosToolClass
 
 GType               photos_tool_get_type                (void) G_GNUC_CONST;
 
-void                photos_tool_draw                    (PhotosTool *self, cairo_t *cr);
+void                photos_tool_draw                    (PhotosTool *self, cairo_t *cr, GdkRectangle *rect);
 
 const gchar        *photos_tool_get_icon_name           (PhotosTool *self);
 


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