[file-roller] Use headerbar in the prop dialog
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller] Use headerbar in the prop dialog
- Date: Sun, 27 Apr 2014 13:18:47 +0000 (UTC)
commit 5f2e3b6ccd15535e3791766f1ce8582302a4cc78
Author: Yosef Or Boczko <yoseforb src gnome org>
Date: Wed Mar 26 01:52:30 2014 +0200
Use headerbar in the prop dialog
https://bugzilla.gnome.org/show_bug.cgi?id=727063
src/dlg-prop.c | 6 ------
src/ui/properties.ui | 34 +---------------------------------
2 files changed, 1 insertions(+), 39 deletions(-)
---
diff --git a/src/dlg-prop.c b/src/dlg-prop.c
index 41f2161..098fb91 100644
--- a/src/dlg-prop.c
+++ b/src/dlg-prop.c
@@ -49,7 +49,6 @@ void
dlg_prop (FrWindow *window)
{
DialogData *data;
- GtkWidget *ok_button;
GtkWidget *label;
GFile *parent;
char *uri;
@@ -71,7 +70,6 @@ dlg_prop (FrWindow *window)
/* Get the widgets. */
data->dialog = _gtk_builder_get_widget (data->builder, "prop_dialog");
- ok_button = _gtk_builder_get_widget (data->builder, "p_ok_button");
/* Set widgets data. */
@@ -161,10 +159,6 @@ dlg_prop (FrWindow *window)
"destroy",
G_CALLBACK (destroy_cb),
data);
- g_signal_connect_swapped (G_OBJECT (ok_button),
- "clicked",
- G_CALLBACK (gtk_widget_destroy),
- G_OBJECT (data->dialog));
/* Run dialog. */
diff --git a/src/ui/properties.ui b/src/ui/properties.ui
index b5c90c9..8911503 100644
--- a/src/ui/properties.ui
+++ b/src/ui/properties.ui
@@ -6,42 +6,13 @@
<property name="border_width">5</property>
<property name="window_position">center-on-parent</property>
<property name="type_hint">dialog</property>
+ <property name="use_header_bar">1</property>
<child internal-child="vbox">
<object class="GtkBox" id="dialog-vbox12">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<property name="spacing">2</property>
- <child internal-child="action_area">
- <object class="GtkButtonBox" id="dialog-action_area12">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="layout_style">end</property>
- <child>
- <object class="GtkButton" id="p_ok_button">
- <property name="label">gtk-close</property>
- <property name="use_action_appearance">False</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="can_default">True</property>
- <property name="receives_default">False</property>
- <property name="use_action_appearance">False</property>
- <property name="use_stock">True</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">1</property>
- </packing>
- </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="GtkTable" id="table3">
<property name="visible">True</property>
@@ -327,8 +298,5 @@
</child>
</object>
</child>
- <action-widgets>
- <action-widget response="-7">p_ok_button</action-widget>
- </action-widgets>
</object>
</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]