Use find_property for has-separator in History List
So we can avoid compile-time warnings.
This commit is contained in:
parent
ee85789fc4
commit
8f421d6cfc
1 changed files with 2 additions and 3 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue