From 8f421d6cfc0b6942c1fcbc25779bf302f004c6be Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Thu, 20 Oct 2011 23:35:37 +0200 Subject: [PATCH] Use find_property for has-separator in History List So we can avoid compile-time warnings. --- extensions/history-list.vala | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/extensions/history-list.vala b/extensions/history-list.vala index c3d962a6..fc677a4b 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); -- 2.39.5