]> git.0d.be Git - empathy.git/blobdiff - libempathy-gtk/empathy-kludge-label.c
Updated Polish translation
[empathy.git] / libempathy-gtk / empathy-kludge-label.c
index f4a29dec2932f31272e2445c2910ee2d4d48b66c..7ed4be62f140d959706abc38df3b5ef38ff48c5e 100644 (file)
@@ -44,6 +44,7 @@ empathy_kludge_label_expose_event (GtkWidget      *self,
     PangoLayout *layout;
     PangoRectangle rect;
     GtkAllocation real_allocation;
+    GtkAllocation allocation;
     gboolean r;
 
     layout = gtk_label_get_layout (GTK_LABEL (self));
@@ -54,13 +55,15 @@ empathy_kludge_label_expose_event (GtkWidget      *self,
      * layout when painting it. This really sucks. We're going to compensate by
      * adding this value to the allocation.
      */
-    real_allocation = self->allocation;
-    self->allocation.x += rect.x;
+    gtk_widget_get_allocation (self, &allocation);
+    real_allocation = allocation;
+    allocation.x += rect.x;
+    gtk_widget_set_allocation (self, &allocation);
 
     r = GTK_WIDGET_CLASS (empathy_kludge_label_parent_class)->expose_event (
             self, event);
 
-    self->allocation = real_allocation;
+    gtk_widget_set_allocation (self, &real_allocation);
 
     return r;
 }