mirror of
https://github.com/Xetibo/ReSet.git
synced 2025-04-08 22:52:01 +02:00
feat: Add standard page home
This commit is contained in:
parent
b6b3ebfd64
commit
3b94bd76f3
|
@ -23,7 +23,14 @@ unsafe impl Sync for ReSetWindow {}
|
|||
|
||||
impl ReSetWindow {
|
||||
pub fn new(app: &Application) -> Self {
|
||||
Object::builder().property("application", app).build()
|
||||
let obj: Self = Object::builder().property("application", app).build();
|
||||
let imp = obj.imp();
|
||||
(HANDLE_HOME)(
|
||||
imp.listeners.clone(),
|
||||
imp.reset_main.get(),
|
||||
imp.position.clone(),
|
||||
);
|
||||
obj
|
||||
}
|
||||
|
||||
pub fn setup_callback(&self) {
|
||||
|
@ -234,11 +241,16 @@ impl ReSetWindow {
|
|||
for sub_entry in sub_entries {
|
||||
self_imp.reset_sidebar_list.append(sub_entry);
|
||||
}
|
||||
let separator = ListBoxRow::new();
|
||||
separator.set_child(Some(>k::Separator::new(Orientation::Horizontal)));
|
||||
separator.set_selectable(false);
|
||||
separator.set_activatable(false);
|
||||
self_imp.reset_sidebar_list.append(&separator);
|
||||
let separator = gtk::Separator::builder()
|
||||
.margin_bottom(3)
|
||||
.margin_top(3)
|
||||
.orientation(Orientation::Horizontal)
|
||||
.build();
|
||||
let separator_row = ListBoxRow::new();
|
||||
separator_row.set_child(Some(&separator));
|
||||
separator_row.set_selectable(false);
|
||||
separator_row.set_activatable(false);
|
||||
self_imp.reset_sidebar_list.append(&separator_row);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -19,5 +19,7 @@
|
|||
</object>
|
||||
</property>
|
||||
<property name="css-classes">resetSidebarEntry</property>
|
||||
<property name="margin-bottom">2</property>
|
||||
<property name="margin-top">2</property>
|
||||
</template>
|
||||
</interface>
|
||||
|
|
|
@ -426,6 +426,8 @@
|
|||
(5,22,"GtkWidget","margin-end","10",None,None,None,None,None,None,None,None,None),
|
||||
(6,1,"GtkListBoxRow","child",None,None,None,None,None,2,None,None,None,None),
|
||||
(6,1,"GtkWidget","css-classes","resetSidebarEntry",None,None,None,None,None,None,None,None,None),
|
||||
(6,1,"GtkWidget","margin-bottom","2",None,None,None,None,None,None,None,None,None),
|
||||
(6,1,"GtkWidget","margin-top","2",None,None,None,None,None,None,None,None,None),
|
||||
(6,2,"GtkWidget","margin-bottom","10",None,None,None,None,None,None,None,None,None),
|
||||
(6,2,"GtkWidget","margin-start","10",None,None,None,None,None,None,None,None,None),
|
||||
(6,2,"GtkWidget","margin-top","10",None,None,None,None,None,None,None,None,None),
|
||||
|
|
Loading…
Reference in a new issue