[balsa/gtk3] Use header bar in address book config dialog
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk3] Use header bar in address book config dialog
- Date: Wed, 25 Mar 2015 03:00:12 +0000 (UTC)
commit c94c1240458c73b970d9b758e33bf1bb2923eb7e
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Tue Mar 24 22:20:44 2015 -0400
Use header bar in address book config dialog
* src/ab-window.c (balsa_ab_window_new): use header bar in
dialog.
ChangeLog | 7 +++++++
src/ab-window.c | 8 +++++---
2 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index f5c0c38..18c4db7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,13 @@
Use header bar
+ * src/ab-window.c (balsa_ab_window_new): use header bar in
+ dialog.
+
+2015-03-24 Peter Bloomfield <pbloomfield bellsouth net>
+
+ Use header bar
+
* src/ab-main.c (ab_warning): use header bar in dialog.
2015-03-24 Peter Bloomfield <pbloomfield bellsouth net>
diff --git a/src/ab-window.c b/src/ab-window.c
index 485a6ba..8c8fe29 100644
--- a/src/ab-window.c
+++ b/src/ab-window.c
@@ -117,7 +117,10 @@ balsa_ab_window_new(gboolean composing, GtkWindow* parent)
{
GtkWidget *ret;
- ret = g_object_new(BALSA_TYPE_AB_WINDOW, NULL);
+ ret = g_object_new(BALSA_TYPE_AB_WINDOW,
+ "use-header-bar", TRUE,
+ "transient-for", parent,
+ NULL);
g_return_val_if_fail(ret, NULL);
BALSA_AB_WINDOW(ret)->composing = composing;
@@ -138,9 +141,8 @@ balsa_ab_window_new(gboolean composing, GtkWindow* parent)
gtk_widget_hide(GTK_WIDGET(BALSA_AB_WINDOW(ret)->send_to_list));
gtk_widget_hide(GTK_WIDGET(BALSA_AB_WINDOW(ret)->arrow_box));
}
- if(parent) gtk_window_set_transient_for(GTK_WINDOW(ret), parent);
- return ret;
+ return ret;
}
static GtkWidget *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]