[gnome-contacts] Use header bar in the linked accounts dialog
- From: Yosef Or Boczko <yoseforb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] Use header bar in the linked accounts dialog
- Date: Wed, 9 Apr 2014 17:47:32 +0000 (UTC)
commit 93bb47d34f0a6a9f6a1ed2643487e7bf390309c3
Author: Yosef Or Boczko <yoseforb src gnome org>
Date: Tue Apr 8 21:57:15 2014 +0300
Use header bar in the linked accounts dialog
https://bugzilla.gnome.org/show_bug.cgi?id=727680
src/contacts-linked-accounts-dialog.vala | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/contacts-linked-accounts-dialog.vala b/src/contacts-linked-accounts-dialog.vala
index 6282b31..68d716e 100644
--- a/src/contacts-linked-accounts-dialog.vala
+++ b/src/contacts-linked-accounts-dialog.vala
@@ -26,16 +26,19 @@ public class Contacts.LinkedAccountsDialog : Dialog {
public bool any_unlinked;
public LinkedAccountsDialog (Contact contact) {
+ Object (use_header_bar: 1);
+
this.contact = contact;
any_unlinked = false;
- set_title (_("%s - Linked Accounts").printf (contact.display_name));
+ var headerbar = get_header_bar () as Gtk.HeaderBar;
+ headerbar.set_title (_("%s").printf (contact.display_name));
+ headerbar.set_subtitle (_("Linked Accounts"));
+
set_transient_for (App.app.window);
set_modal (true);
set_default_size (600, 400);
- add_buttons (_("Close"), ResponseType.CLOSE, null);
-
var grid = new Grid ();
grid.set_orientation (Orientation.VERTICAL);
grid.set_row_spacing (12);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]