[Xfce4-commits] <midori:master> Use find_property for has-separator in History List

Christian Dywan noreply at xfce.org
Thu Oct 20 23:40:01 CEST 2011


Updating branch refs/heads/master
         to 8f421d6cfc0b6942c1fcbc25779bf302f004c6be (commit)
       from ee85789fc493309a50ce110388dd5ddc94b5ba46 (commit)

commit 8f421d6cfc0b6942c1fcbc25779bf302f004c6be
Author: Christian Dywan <christian at twotoasts.de>
Date:   Thu Oct 20 23:35:37 2011 +0200

    Use find_property for has-separator in History List
    
    So we can avoid compile-time warnings.

 extensions/history-list.vala |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/extensions/history-list.vala b/extensions/history-list.vala
index c3d962a..fc677a4 100644
--- a/extensions/history-list.vala
+++ b/extensions/history-list.vala
@@ -233,9 +233,8 @@ namespace HistoryList {
             this.hl_manager = manager;
 
             this.title = _("Preferences for %s").printf( _("History-List"));
-#if !HAVE_GTK3
-            this.has_separator = false;
-#endif
+            if (this.get_class ().find_property ("has-separator") != null)
+                this.set ("has-separator", false);
             this.border_width = 5;
             this.set_modal (true);
             this.set_default_size (350, 100);


More information about the Xfce4-commits mailing list