@@ -34,7 +34,7 @@ var PreferencesDialog = class PreferencesDialog {
34
34
35
35
// Load the user interface file.
36
36
this . _builder = new Gtk . Builder ( ) ;
37
- this . _builder . add_from_resource ( `/ui/${ utils . gtk4 ( ) ? 'gtk4' : 'gtk3' } .ui` ) ;
37
+ this . _builder . add_from_resource ( `/ui/${ utils . isGTK4 ( ) ? 'gtk4' : 'gtk3' } .ui` ) ;
38
38
39
39
// This is our top-level widget which we will return later.
40
40
this . _widget = this . _builder . get_object ( 'settings-widget' ) ;
@@ -77,7 +77,7 @@ var PreferencesDialog = class PreferencesDialog {
77
77
78
78
// Add a menu to the title bar of the preferences dialog.
79
79
this . _widget . connect ( 'realize' , ( widget ) => {
80
- const window = utils . gtk4 ( ) ? widget . get_root ( ) : widget . get_toplevel ( ) ;
80
+ const window = utils . isGTK4 ( ) ? widget . get_root ( ) : widget . get_toplevel ( ) ;
81
81
82
82
// Show the version number in the title bar.
83
83
window . set_title ( `Burn-My-Windows ${ Me . metadata . version } ` ) ;
@@ -113,7 +113,7 @@ var PreferencesDialog = class PreferencesDialog {
113
113
} ) ;
114
114
115
115
// Show the widgets on GTK3.
116
- if ( ! utils . gtk4 ( ) ) {
116
+ if ( ! utils . isGTK4 ( ) ) {
117
117
this . _widget . show_all ( ) ;
118
118
}
119
119
}
@@ -280,7 +280,7 @@ var PreferencesDialog = class PreferencesDialog {
280
280
281
281
this . _builder . get_object ( 'fire-preset-button' ) . set_menu_model ( menu ) ;
282
282
283
- const root = utils . gtk4 ( ) ? widget . get_root ( ) : widget . get_toplevel ( ) ;
283
+ const root = utils . isGTK4 ( ) ? widget . get_root ( ) : widget . get_toplevel ( ) ;
284
284
root . insert_action_group ( groupName , group ) ;
285
285
} ) ;
286
286
}
0 commit comments