[gimp/gtk3-port: 84/140] app: port to GtkWidget::draw() but disable the code inside with #if 0



commit 81848deef76d1a7ccaf34cd1273bf132ed2693b1
Author: Michael Natterer <mitch gimp org>
Date:   Tue Oct 19 20:09:22 2010 +0200

    app: port to GtkWidget::draw() but disable the code inside with #if 0

 app/widgets/gimpcombotagentry.c |   24 +++++++++++++-----------
 1 files changed, 13 insertions(+), 11 deletions(-)
---
diff --git a/app/widgets/gimpcombotagentry.c b/app/widgets/gimpcombotagentry.c
index 771ec60..0a3154f 100644
--- a/app/widgets/gimpcombotagentry.c
+++ b/app/widgets/gimpcombotagentry.c
@@ -43,8 +43,8 @@ static GObject* gimp_combo_tag_entry_constructor       (GType                  t
                                                         GObjectConstructParam *params);
 static void     gimp_combo_tag_entry_dispose           (GObject                *object);
 
-static gboolean gimp_combo_tag_entry_expose            (GtkWidget              *widget,
-                                                        GdkEventExpose         *event);
+static gboolean gimp_combo_tag_entry_draw              (GtkWidget              *widget,
+                                                        cairo_t                *cr);
 static void     gimp_combo_tag_entry_style_set         (GtkWidget              *widget,
                                                         GtkStyle               *previous_style);
 
@@ -53,7 +53,7 @@ static void     gimp_combo_tag_entry_icon_press        (GtkWidget              *
                                                         GdkEvent               *event,
                                                         gpointer                user_data);
 
-static void     gimp_combo_tag_entry_popup_destroy     (GtkObject              *object,
+static void     gimp_combo_tag_entry_popup_destroy     (GtkWidget              *widget,
                                                         GimpComboTagEntry      *entry);
 
 static void     gimp_combo_tag_entry_tag_count_changed (GimpFilteredContainer  *container,
@@ -72,11 +72,11 @@ gimp_combo_tag_entry_class_init (GimpComboTagEntryClass *klass)
   GObjectClass   *object_class = G_OBJECT_CLASS (klass);
   GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
 
-  object_class->constructor  = gimp_combo_tag_entry_constructor;
-  object_class->dispose      = gimp_combo_tag_entry_dispose;
+  object_class->constructor = gimp_combo_tag_entry_constructor;
+  object_class->dispose     = gimp_combo_tag_entry_dispose;
 
-  widget_class->expose_event = gimp_combo_tag_entry_expose;
-  widget_class->style_set    = gimp_combo_tag_entry_style_set;
+  widget_class->draw        = gimp_combo_tag_entry_draw;
+  widget_class->style_set   = gimp_combo_tag_entry_style_set;
 }
 
 static void
@@ -155,13 +155,14 @@ gimp_combo_tag_entry_dispose (GObject *object)
 }
 
 static gboolean
-gimp_combo_tag_entry_expose (GtkWidget      *widget,
-                             GdkEventExpose *event)
+gimp_combo_tag_entry_draw (GtkWidget *widget,
+                           cairo_t   *cr)
 {
   GimpComboTagEntry *entry = GIMP_COMBO_TAG_ENTRY (widget);
 
   if (! entry->arrow_pixbuf)
     {
+#if 0
       GtkStyle  *style = gtk_widget_get_style (widget);
       GdkPixmap *pixmap;
       cairo_t   *cr;
@@ -187,9 +188,10 @@ gimp_combo_tag_entry_expose (GtkWidget      *widget,
       gtk_entry_set_icon_from_pixbuf (GTK_ENTRY (entry),
                                       GTK_ENTRY_ICON_SECONDARY,
                                       entry->arrow_pixbuf);
+#endif
     }
 
-  return GTK_WIDGET_CLASS (parent_class)->expose_event (widget, event);
+  return GTK_WIDGET_CLASS (parent_class)->draw (widget, cr);
 }
 
 static void
@@ -301,7 +303,7 @@ gimp_combo_tag_entry_icon_press (GtkWidget            *widget,
 }
 
 static void
-gimp_combo_tag_entry_popup_destroy (GtkObject         *object,
+gimp_combo_tag_entry_popup_destroy (GtkWidget         *widget,
                                     GimpComboTagEntry *entry)
 {
   entry->popup = NULL;



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