Commit e578080
committed
Updated src/mainwindow/imp.rs:
- Updated reuse copyright year
- Added clearer import headers
- Refactored to now import std::cell::OnceCell as it has been [merged into std](rust-lang/rust#105587)
- Refactored to now import std::sync::OncelLock as it has been [merged into std](rust-lang/rust#105587)
- Added glib::BorrowedObject import
- Refactored to import Value from glib::value as it now has its own module in glib
- Refactored to import Variant and FromVariant from glib::variant as it now has its own module in glib
- Refactored "properties()" and "signals()" functions to reflect OnceLock changes
- Refactored to import glib::signal::Propagation instead of glib::signal::Inhibit
- Removed now unused "_obj" parameter to "property()" and "set_property()" functions
- Refactored "constructed()" function to get "obj" reference via "self" instead of as a parameter
- Updated "parent_constructed()" call in "constructed()" function
- Removed deprecated "window" parameter from "close_request()" function
- Updated "close_request()" function to return a Propagation type
- Updated "parent_close_request()" call in "close_request()" function
- Updated "signals()" function to use requisite functions of Signal::builder instead of parameters
Updated src/mainwindow/mod.rs:
- Updated reuse copyright year
- Added clearer import headers
- Updated "new()" function to use "Object::builder::<MainWindow>().build()" instead of untyped "Obect::new()""
Signed-off-by: Deren Vural <35734401+derenv@users.noreply.github.com>1 parent 04d0ec2 commit e578080
2 files changed
+92
-42
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
27 | 25 | | |
| 26 | + | |
| 27 | + | |
28 | 28 | | |
29 | | - | |
30 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
31 | 43 | | |
32 | | - | |
33 | 44 | | |
34 | 45 | | |
35 | 46 | | |
36 | | - | |
37 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
38 | 50 | | |
39 | 51 | | |
40 | 52 | | |
| |||
118 | 130 | | |
119 | 131 | | |
120 | 132 | | |
121 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
122 | 137 | | |
123 | 138 | | |
124 | 139 | | |
| |||
142 | 157 | | |
143 | 158 | | |
144 | 159 | | |
145 | | - | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
146 | 165 | | |
147 | 166 | | |
148 | 167 | | |
| |||
169 | 188 | | |
170 | 189 | | |
171 | 190 | | |
172 | | - | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
173 | 197 | | |
174 | 198 | | |
175 | 199 | | |
| |||
208 | 232 | | |
209 | 233 | | |
210 | 234 | | |
211 | | - | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
212 | 239 | | |
213 | 240 | | |
214 | 241 | | |
| |||
1603 | 1630 | | |
1604 | 1631 | | |
1605 | 1632 | | |
1606 | | - | |
| 1633 | + | |
1607 | 1634 | | |
1608 | | - | |
| 1635 | + | |
1609 | 1636 | | |
1610 | 1637 | | |
| 1638 | + | |
1611 | 1639 | | |
1612 | 1640 | | |
1613 | 1641 | | |
| |||
1640 | 1668 | | |
1641 | 1669 | | |
1642 | 1670 | | |
1643 | | - | |
1644 | | - | |
1645 | | - | |
| 1671 | + | |
| 1672 | + | |
| 1673 | + | |
| 1674 | + | |
| 1675 | + | |
| 1676 | + | |
1646 | 1677 | | |
1647 | 1678 | | |
1648 | 1679 | | |
1649 | | - | |
1650 | | - | |
1651 | 1680 | | |
1652 | 1681 | | |
1653 | 1682 | | |
| |||
1666 | 1695 | | |
1667 | 1696 | | |
1668 | 1697 | | |
1669 | | - | |
| 1698 | + | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
1670 | 1704 | | |
1671 | 1705 | | |
1672 | 1706 | | |
| |||
1696 | 1730 | | |
1697 | 1731 | | |
1698 | 1732 | | |
1699 | | - | |
| 1733 | + | |
| 1734 | + | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
1700 | 1738 | | |
1701 | 1739 | | |
1702 | 1740 | | |
| |||
1733 | 1771 | | |
1734 | 1772 | | |
1735 | 1773 | | |
1736 | | - | |
1737 | | - | |
1738 | | - | |
1739 | | - | |
1740 | | - | |
1741 | | - | |
1742 | | - | |
1743 | | - | |
1744 | | - | |
| 1774 | + | |
| 1775 | + | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
| 1780 | + | |
| 1781 | + | |
1745 | 1782 | | |
1746 | 1783 | | |
1747 | 1784 | | |
| |||
1796 | 1833 | | |
1797 | 1834 | | |
1798 | 1835 | | |
1799 | | - | |
| 1836 | + | |
1800 | 1837 | | |
1801 | 1838 | | |
1802 | 1839 | | |
| |||
1853 | 1890 | | |
1854 | 1891 | | |
1855 | 1892 | | |
1856 | | - | |
| 1893 | + | |
1857 | 1894 | | |
1858 | 1895 | | |
1859 | 1896 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
| 25 | + | |
28 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
29 | 38 | | |
30 | 39 | | |
31 | 40 | | |
| |||
71 | 80 | | |
72 | 81 | | |
73 | 82 | | |
74 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
75 | 86 | | |
76 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
77 | 90 | | |
78 | 91 | | |
79 | 92 | | |
| |||
0 commit comments