[gitg] window: use new show-close-button property from the headerbar
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] window: use new show-close-button property from the headerbar
- Date: Wed, 7 Aug 2013 07:42:32 +0000 (UTC)
commit 3a26d5b0a118e51a1dcdcd3f904f34b3540bdf6f
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Wed Aug 7 09:42:03 2013 +0200
window: use new show-close-button property from the headerbar
gitg/gitg-window.vala | 6 ------
gitg/resources/ui/gitg-window.ui | 32 +-------------------------------
2 files changed, 1 insertions(+), 37 deletions(-)
---
diff --git a/gitg/gitg-window.vala b/gitg/gitg-window.vala
index bf53046..2dcae84 100644
--- a/gitg/gitg-window.vala
+++ b/gitg/gitg-window.vala
@@ -88,12 +88,6 @@ public class Window : Gtk.ApplicationWindow, GitgExt.Application, Initable
};
[GtkCallback]
- private void close_button_clicked(Gtk.Button button)
- {
- close();
- }
-
- [GtkCallback]
private void dash_button_clicked(Gtk.Button dash)
{
repository = null;
diff --git a/gitg/resources/ui/gitg-window.ui b/gitg/resources/ui/gitg-window.ui
index b27f292..ca9db2a 100644
--- a/gitg/resources/ui/gitg-window.ui
+++ b/gitg/resources/ui/gitg-window.ui
@@ -13,6 +13,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="vexpand">False</property>
+ <property name="show_close_button">True</property>
<child>
<object class="GtkButton" id="d_dash_button">
<property name="visible">False</property>
@@ -85,37 +86,6 @@
<property name="pack_type">end</property>
</packing>
</child>
- <child>
- <object class="GtkSeparator" id="close_button_separator">
- <property name="visible">True</property>
- <property name="orientation">vertical</property>
- <property name="valign">fill</property>
- </object>
- <packing>
- <property name="pack_type">end</property>
- </packing>
- </child>
- <child>
- <object class="GtkButton" id="d_close_button">
- <property name="visible">True</property>
- <property name="valign">center</property>
- <property name="relief">none</property>
- <signal name="clicked" handler="close_button_clicked" swapped="no"/>
- <style>
- <class name="image-button"/>
- </style>
- <child>
- <object class="GtkImage" id="close_image">
- <property name="visible">True</property>
- <property name="icon_size">1</property>
- <property name="icon_name">window-close-symbolic</property>
- </object>
- </child>
- </object>
- <packing>
- <property name="pack_type">end</property>
- </packing>
- </child>
</object>
</child>
<child>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]