Use find_property for has-separator in History List

So we can avoid compile-time warnings.
This commit is contained in:
Christian Dywan 2011-10-20 23:35:37 +02:00
parent ee85789fc4
commit 8f421d6cfc

View file

@ -233,9 +233,8 @@ namespace HistoryList {
this.hl_manager = manager; this.hl_manager = manager;
this.title = _("Preferences for %s").printf( _("History-List")); this.title = _("Preferences for %s").printf( _("History-List"));
#if !HAVE_GTK3 if (this.get_class ().find_property ("has-separator") != null)
this.has_separator = false; this.set ("has-separator", false);
#endif
this.border_width = 5; this.border_width = 5;
this.set_modal (true); this.set_modal (true);
this.set_default_size (350, 100); this.set_default_size (350, 100);