[glade] Hide center_paned and set search entry insensitive when there is no project open.
- From: Juan Pablo Ugarte <jpu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade] Hide center_paned and set search entry insensitive when there is no project open.
- Date: Fri, 29 Mar 2013 15:11:05 +0000 (UTC)
commit fac70fc3c2ed55f157d891db3c1f6d52175d41ce
Author: Juan Pablo Ugarte <juanpablougarte gmail com>
Date: Fri Mar 29 11:40:27 2013 -0300
Hide center_paned and set search entry insensitive when there is no project open.
src/glade-window.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/glade-window.c b/src/glade-window.c
index 96bca88..c7eefc7 100644
--- a/src/glade-window.c
+++ b/src/glade-window.c
@@ -1469,6 +1469,12 @@ do_close (GladeWindow *window, GladeProject *project)
g_object_unref (view);
glade_window_notebook_tabs_update (window);
+
+ if (!glade_app_get_projects ())
+ {
+ gtk_widget_hide (window->priv->center_pane);
+ gtk_widget_set_sensitive (window->priv->search_entry, FALSE);
+ }
}
void
@@ -2401,7 +2407,9 @@ add_project (GladeWindow *window, GladeProject *project, gboolean for_file)
glade_window_notebook_tabs_update (window);
+ gtk_widget_show (window->priv->center_pane);
gtk_widget_show (GTK_WIDGET (priv->editor));
+ gtk_widget_set_sensitive (window->priv->search_entry, TRUE);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]