ManageAccounts: Window -> Dialog
This commit is contained in:
parent
b0ac73914f
commit
31bbafa2c8
|
@ -3,6 +3,7 @@
|
|||
<template class="DinoUiManageAccountsDialog">
|
||||
<property name="width-request">700</property>
|
||||
<property name="height-request">400</property>
|
||||
<property name="modal">True</property>
|
||||
<child type="titlebar">
|
||||
<object class="GtkHeaderBar">
|
||||
<property name="title" translatable="yes">Accounts</property>
|
||||
|
@ -10,6 +11,9 @@
|
|||
<property name="visible">True</property>
|
||||
</object>
|
||||
</child>
|
||||
<child internal-child="vbox">
|
||||
<object class="GtkBox">
|
||||
<property name="visible">True</property>
|
||||
<child>
|
||||
<object class="GtkStack" id="main_stack">
|
||||
<property name="visible">True</property>
|
||||
|
@ -318,5 +322,7 @@
|
|||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</template>
|
||||
</interface>
|
||||
|
|
|
@ -8,7 +8,7 @@ using Dino.Entities;
|
|||
namespace Dino.Ui.ManageAccounts {
|
||||
|
||||
[GtkTemplate (ui = "/org/dino-im/manage_accounts/dialog.ui")]
|
||||
public class Dialog : Gtk.Window {
|
||||
public class Dialog : Gtk.Dialog {
|
||||
|
||||
public signal void account_enabled(Account account);
|
||||
public signal void account_disabled(Account account);
|
||||
|
@ -75,6 +75,7 @@ public class Dialog : Gtk.Window {
|
|||
}
|
||||
|
||||
public Dialog(StreamInteractor stream_interactor, Database db) {
|
||||
Object(use_header_bar : 1);
|
||||
this.db = db;
|
||||
this.stream_interactor = stream_interactor;
|
||||
foreach (Account account in db.get_accounts()) {
|
||||
|
|
Loading…
Reference in a new issue