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