[gitg] Use GdStack instead of custom AutoHide widget
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] Use GdStack instead of custom AutoHide widget
- Date: Mon, 18 Feb 2013 12:57:02 +0000 (UTC)
commit e7493991ff398d7a20d1692f0928344b508df8b7
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Mon Feb 18 13:38:03 2013 +0100
Use GdStack instead of custom AutoHide widget
gitg/Makefile.am | 1 -
gitg/gitg-autohide-frame.vala | 47 --------------------------------------
gitg/gitg-window.vala | 12 +++++-----
gitg/resources/ui/gitg-window.ui | 8 +-----
4 files changed, 8 insertions(+), 60 deletions(-)
---
diff --git a/gitg/Makefile.am b/gitg/Makefile.am
index f9778e7..00c2ff1 100644
--- a/gitg/Makefile.am
+++ b/gitg/Makefile.am
@@ -38,7 +38,6 @@ VALASOURCES = \
gitg-application.vala \
gitg-plugins-engine.vala \
gitg-ui-elements.vala \
- gitg-autohide-frame.vala \
gitg-preferences-dialog.vala \
gitg-preferences-interface.vala
diff --git a/gitg/gitg-window.vala b/gitg/gitg-window.vala
index e9cf6e3..58b422c 100644
--- a/gitg/gitg-window.vala
+++ b/gitg/gitg-window.vala
@@ -38,8 +38,8 @@ public class Window : Gtk.ApplicationWindow, GitgExt.Application, Initable, Gtk.
private Gtk.Paned d_paned_views;
private Gtk.Paned d_paned_panels;
- private Gtk.Frame d_frame_view;
- private Gtk.Frame d_frame_panel;
+ private Gd.Stack d_stack_view;
+ private Gd.Stack d_stack_panel;
private GitgExt.NavigationTreeView d_navigation;
@@ -67,8 +67,8 @@ public class Window : Gtk.ApplicationWindow, GitgExt.Application, Initable, Gtk.
d_toolbar_panels = builder.get_object("toolbar_panels") as Gtk.Toolbar;
d_paned_panels = builder.get_object("paned_panels") as Gtk.Paned;
- d_frame_view = builder.get_object("frame_view") as Gtk.Frame;
- d_frame_panel = builder.get_object("frame_panel") as Gtk.Frame;
+ d_stack_view = builder.get_object("stack_view") as Gd.Stack;
+ d_stack_panel = builder.get_object("stack_panel") as Gd.Stack;
d_navigation = builder.get_object("tree_view_navigation") as GitgExt.NavigationTreeView;
d_config = builder.get_object("button_config") as Gtk.MenuButton;
@@ -151,7 +151,7 @@ public class Window : Gtk.ApplicationWindow, GitgExt.Application, Initable, Gtk.
typeof(GitgExt.View),
"application",
this),
- d_frame_view,
+ d_stack_view,
d_toolbar_views);
d_views.activated.connect(on_view_activated);
@@ -160,7 +160,7 @@ public class Window : Gtk.ApplicationWindow, GitgExt.Application, Initable, Gtk.
typeof(GitgExt.Panel),
"application",
this),
- d_frame_panel,
+ d_stack_panel,
d_toolbar_panels);
d_panels.activated.connect(on_panel_activated);
diff --git a/gitg/resources/ui/gitg-window.ui b/gitg/resources/ui/gitg-window.ui
index b471d4f..6c4029f 100644
--- a/gitg/resources/ui/gitg-window.ui
+++ b/gitg/resources/ui/gitg-window.ui
@@ -251,11 +251,9 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
- <object class="GitgAutohideFrame" id="frame_view">
+ <object class="GdStack" id="stack_view">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label_xalign">0</property>
- <property name="shadow_type">in</property>
<child>
<placeholder/>
</child>
@@ -268,11 +266,9 @@
</packing>
</child>
<child>
- <object class="GitgAutohideFrame" id="frame_panel">
+ <object class="GdStack" id="stack_panel">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label_xalign">0</property>
- <property name="shadow_type">in</property>
<child>
<placeholder/>
</child>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]