when double-clicking on a window in the project view, hide if if it's

2004-11-05  David Hoover <karma@deadmoose.com>

        * src/glade-project-view.c: when double-clicking on a window in the
	  project view, hide if if it's show, show it if it's hidden.
	  Fixes 156736
This commit is contained in:
David Hoover 2004-11-05 20:17:58 +00:00 committed by David Hoover
parent 7e43051d49
commit f457500747
2 changed files with 16 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2004-11-05 David Hoover <karma@deadmoose.com>
* src/glade-project-view.c: when double-clicking on a window in the
project view, hide if if it's show, show it if it's hidden.
Fixes 156736
2004-11-03 Tristan Van Berkom <tristan.van.berkom@gmail.com>
* src/glade-command.[ch], glade-popup.c, glade-project-window.c:

View File

@ -410,9 +410,16 @@ glade_project_view_item_activated_cb (GtkTreeView *view,
gtk_tree_model_get (model, &iter, WIDGET_COLUMN, &widget, -1);
if (GTK_IS_WINDOW (widget->widget))
gtk_window_present (GTK_WINDOW (widget->widget));
gtk_widget_show (widget->widget);
{
if (GTK_WIDGET_VISIBLE (widget->widget))
gtk_widget_hide (widget->widget);
else
gtk_window_present (GTK_WINDOW (widget->widget));
}
else
{
gtk_widget_show (widget->widget);
}
}
static void