]> spindle.queued.net Git - midori/commitdiff
Use find_property for has-separator in History List
authorChristian Dywan <christian@twotoasts.de>
Thu, 20 Oct 2011 21:35:37 +0000 (23:35 +0200)
committerChristian Dywan <christian@twotoasts.de>
Thu, 20 Oct 2011 21:35:37 +0000 (23:35 +0200)
So we can avoid compile-time warnings.

extensions/history-list.vala

index c3d962a64880303493f777665dccf6452c8f123f..fc677a4b2d5c4372a834ba91f06c2e683bf35888 100644 (file)
@@ -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);