linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/2] gconfig: Hide unused left treeview when start up the interface
@ 2011-05-19 12:38 Eduardo Silva
  2011-05-24 13:55 ` Michal Marek
  0 siblings, 1 reply; 2+ messages in thread
From: Eduardo Silva @ 2011-05-19 12:38 UTC (permalink / raw)
  To: Roman Zippel; +Cc: linux-kbuild, linux-kernel

When the gconfig program starts in full mode view, it shows the
left treeview which belongs to the 'split mode view'. The patch
fix this visual issue.

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
---
 scripts/kconfig/gconf.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/scripts/kconfig/gconf.c b/scripts/kconfig/gconf.c
index 0c8db7d..52d14bf 100644
--- a/scripts/kconfig/gconf.c
+++ b/scripts/kconfig/gconf.c
@@ -756,7 +756,6 @@ void on_load_clicked(GtkButton * button, gpointer user_data)
 void on_single_clicked(GtkButton * button, gpointer user_data)
 {
 	view_mode = SINGLE_VIEW;
-	gtk_paned_set_position(GTK_PANED(hpaned), 0);
 	gtk_widget_hide(tree1_w);
 	current = &rootmenu;
 	display_tree_part();
@@ -782,7 +781,6 @@ void on_split_clicked(GtkButton * button, gpointer user_data)
 void on_full_clicked(GtkButton * button, gpointer user_data)
 {
 	view_mode = FULL_VIEW;
-	gtk_paned_set_position(GTK_PANED(hpaned), 0);
 	gtk_widget_hide(tree1_w);
 	if (tree2)
 		gtk_tree_store_clear(tree2);
@@ -1444,6 +1442,12 @@ static void display_tree(struct menu *menu)
                 if (((menu != &rootmenu) && !(menu->flags & MENU_ROOT))
 		    || (view_mode == FULL_VIEW)
 		    || (view_mode == SPLIT_VIEW))*/
+
+		/* Change paned position if the view is not in 'split mode' */
+		if (view_mode == SINGLE_VIEW || view_mode == FULL_VIEW) {
+			gtk_paned_set_position(GTK_PANED(hpaned), 0);
+		}
+		
 		if (((view_mode == SINGLE_VIEW) && (menu->flags & MENU_ROOT))
 		    || (view_mode == FULL_VIEW)
 		    || (view_mode == SPLIT_VIEW)) {
-- 
1.7.4.1




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 2/2] gconfig: Hide unused left treeview when start up the interface
  2011-05-19 12:38 [PATCH 2/2] gconfig: Hide unused left treeview when start up the interface Eduardo Silva
@ 2011-05-24 13:55 ` Michal Marek
  0 siblings, 0 replies; 2+ messages in thread
From: Michal Marek @ 2011-05-24 13:55 UTC (permalink / raw)
  To: Eduardo Silva; +Cc: Roman Zippel, linux-kbuild, linux-kernel

On Thu, May 19, 2011 at 08:38:25AM -0400, Eduardo Silva wrote:
> When the gconfig program starts in full mode view, it shows the
> left treeview which belongs to the 'split mode view'. The patch
> fix this visual issue.
> 
> Signed-off-by: Eduardo Silva <edsiper@gmail.com>

Applied, thanks.

Michal

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-05-24 13:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-19 12:38 [PATCH 2/2] gconfig: Hide unused left treeview when start up the interface Eduardo Silva
2011-05-24 13:55 ` Michal Marek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).