[gtk+/dialogs: 7/25] message dialog: Don't use headerbar
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/dialogs: 7/25] message dialog: Don't use headerbar
- Date: Wed, 15 Jan 2014 12:32:56 +0000 (UTC)
commit f0b3251df2fd66a5d40de7580122ac924fe2ff94
Author: William Jon McCann <william jon mccann gmail com>
Date: Mon Dec 9 09:27:01 2013 +0100
message dialog: Don't use headerbar
https://bugzilla.gnome.org/show_bug.cgi?id=720059
gtk/gtkmessagedialog.c | 1 +
gtk/gtkmessagedialog.ui | 26 ++++++++------------------
2 files changed, 9 insertions(+), 18 deletions(-)
---
diff --git a/gtk/gtkmessagedialog.c b/gtk/gtkmessagedialog.c
index 9dfd7ec..5eb5b00 100644
--- a/gtk/gtkmessagedialog.c
+++ b/gtk/gtkmessagedialog.c
@@ -549,6 +549,7 @@ gtk_message_dialog_new (GtkWindow *parent,
g_return_val_if_fail (parent == NULL || GTK_IS_WINDOW (parent), NULL);
widget = g_object_new (GTK_TYPE_MESSAGE_DIALOG,
+ "use-header-bar", FALSE,
"message-type", type,
"buttons", buttons,
NULL);
diff --git a/gtk/gtkmessagedialog.ui b/gtk/gtkmessagedialog.ui
index aef68f4..593debf 100644
--- a/gtk/gtkmessagedialog.ui
+++ b/gtk/gtkmessagedialog.ui
@@ -8,28 +8,18 @@
<property name="resizable">False</property>
<property name="type_hint">dialog</property>
<property name="skip_taskbar_hint">True</property>
+ <child internal-child="headerbar">
+ <object class="GtkHeaderBar" id="headerbar1">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="show-close-button">False</property>
+ </object>
+ </child>
<child internal-child="vbox">
<object class="GtkBox" id="dialog-vbox1">
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<property name="spacing">14</property>
- <child internal-child="action_area">
- <object class="GtkButtonBox" id="dialog-action_area1">
- <property name="can_focus">False</property>
- <child>
- <placeholder/>
- </child>
- <child>
- <placeholder/>
- </child>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="pack_type">end</property>
- <property name="position">0</property>
- </packing>
- </child>
<child>
<object class="GtkBox" id="box">
<property name="visible">True</property>
@@ -106,7 +96,7 @@
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
- <property name="position">1</property>
+ <property name="position">0</property>
</packing>
</child>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]