mirror of
https://gitlab.gnome.org/GNOME/glade.git
synced 2025-10-06 00:05:26 -04:00
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:
parent
7e43051d49
commit
f457500747
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user