File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
1
import Gio from "gi://Gio" ;
2
2
import Gtk from "gi://Gtk?version=4.0" ;
3
3
4
- const pic_with_frame = workbench . builder . get_object ( "with_frame" ) ;
5
- const pic_without_frame = workbench . builder . get_object ( "without_frame" ) ;
4
+ const pic_with_frame = workbench . builder . get_object < Gtk . Picture > ( "with_frame" ) ;
5
+ const pic_without_frame = workbench . builder . get_object < Gtk . Picture > (
6
+ "without_frame" ,
7
+ ) ;
6
8
7
- const textview_with_frame = workbench . builder . get_object ( "textview_with_frame" ) ;
8
- const textview_without_frame = workbench . builder . get_object (
9
+ const textview_with_frame = workbench . builder . get_object < Gtk . TextView > (
10
+ "textview_with_frame" ,
11
+ ) ;
12
+ const textview_without_frame = workbench . builder . get_object < Gtk . TextView > (
9
13
"textview_without_frame" ,
10
14
) ;
11
15
You can’t perform that action at this time.
0 commit comments