[Xfce4-commits] <postler:master> Test correctly whether cell_area is not null

Christian Dywan noreply at xfce.org
Tue Nov 9 04:28:01 CET 2010


Updating branch refs/heads/master
         to 4073e7955c7c94ed89edf71e6207f952858cce21 (commit)
       from e90094eb77ff2f730d0446b01e9f582b5bb46f09 (commit)

commit 4073e7955c7c94ed89edf71e6207f952858cce21
Author: Christian Dywan <christian at twotoasts.de>
Date:   Tue Nov 9 04:24:25 2010 +0100

    Test correctly whether cell_area is not null
    
    This is not an out variable, just a mere nullable.

 postler/postler-cellrenderertoggle.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/postler/postler-cellrenderertoggle.vala b/postler/postler-cellrenderertoggle.vala
index afaaf2c..4b025da 100644
--- a/postler/postler-cellrenderertoggle.vala
+++ b/postler/postler-cellrenderertoggle.vala
@@ -19,7 +19,7 @@ public class Postler.CellRendererToggle : Gtk.CellRendererToggle {
         out int x_offset, out int y_offset, out int width, out int height) {
         if (&x_offset != null) x_offset = 0;
         if (&y_offset != null)
-            y_offset = &cell_area != null ? cell_area.height / 3 : 0;
+            y_offset = cell_area != null ? cell_area.height / 3 : 0;
         if (&width != null && &height != null)
             Gtk.icon_size_lookup_for_settings (widget.get_settings (),
                 Gtk.IconSize.MENU, out width, out height);



More information about the Xfce4-commits mailing list