[gnome-bluetooth] Compile with sealed members



commit 6cdcc7a2591480d14a7b4f5d6fb99328a7354c4c
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Jun 17 18:01:21 2010 +0100

    Compile with sealed members
    
    Fix compilation with -DGSEAL_ENABLE.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=621909

 .../koto-cell-renderer-pixbuf.c                    |    2 +-
 moblin/moblin-copy-n-paste/mux-banner.c            |    6 ++++--
 .../moblin-copy-n-paste/mux-cell-renderer-text.c   |    2 +-
 3 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/moblin/moblin-copy-n-paste/koto-cell-renderer-pixbuf.c b/moblin/moblin-copy-n-paste/koto-cell-renderer-pixbuf.c
index b4ab170..69220e1 100644
--- a/moblin/moblin-copy-n-paste/koto-cell-renderer-pixbuf.c
+++ b/moblin/moblin-copy-n-paste/koto-cell-renderer-pixbuf.c
@@ -83,7 +83,7 @@ koto_cell_renderer_pixbuf_class_init (KotoCellRendererPixbufClass *class)
 static void
 koto_cell_renderer_pixbuf_init (KotoCellRendererPixbuf *cellpixbuf)
 {
-  GTK_CELL_RENDERER (cellpixbuf)->mode = GTK_CELL_RENDERER_MODE_ACTIVATABLE;
+  g_object_set (cellpixbuf, "mode", GTK_CELL_RENDERER_MODE_ACTIVATABLE, NULL);
 }
 
 /*
diff --git a/moblin/moblin-copy-n-paste/mux-banner.c b/moblin/moblin-copy-n-paste/mux-banner.c
index 483fe5e..ae815bb 100644
--- a/moblin/moblin-copy-n-paste/mux-banner.c
+++ b/moblin/moblin-copy-n-paste/mux-banner.c
@@ -47,12 +47,14 @@ static gboolean
 mux_banner_expose (GtkWidget *widget, GdkEventExpose *event)
 {
   MuxBanner *banner = MUX_BANNER (widget);
+  GdkWindow *window;
   GdkGC *gc;
 
-  gc = gdk_gc_new (widget->window);
+  window = gtk_widget_get_window (widget);
+  gc = gdk_gc_new (window);
   gdk_gc_set_foreground (gc, &banner->priv->colour);
 
-  gdk_draw_rectangle (widget->window, gc, TRUE,
+  gdk_draw_rectangle (window, gc, TRUE,
                       event->area.x, event->area.y,
                       event->area.width, event->area.height);
 
diff --git a/moblin/moblin-copy-n-paste/mux-cell-renderer-text.c b/moblin/moblin-copy-n-paste/mux-cell-renderer-text.c
index c6ce31e..80f0ea6 100644
--- a/moblin/moblin-copy-n-paste/mux-cell-renderer-text.c
+++ b/moblin/moblin-copy-n-paste/mux-cell-renderer-text.c
@@ -82,7 +82,7 @@ mux_cell_renderer_text_class_init (MuxCellRendererTextClass *klass)
 static void
 mux_cell_renderer_text_init (MuxCellRendererText *self)
 {
-  GTK_CELL_RENDERER (self)->mode = GTK_CELL_RENDERER_MODE_ACTIVATABLE;
+  g_object_set (self, "mode", GTK_CELL_RENDERER_MODE_ACTIVATABLE, NULL);
 }
 
 GtkCellRenderer*



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