[gdl] Fix gdl_dock_object_present when the gdl object is iconified
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdl] Fix gdl_dock_object_present when the gdl object is iconified
- Date: Mon, 30 Jul 2012 20:48:10 +0000 (UTC)
commit 9effd742f8a5ad12ee6af044376e62ef97859a03
Author: SÃbastien Granjoux <seb sfo free fr>
Date: Mon Jul 30 22:47:45 2012 +0200
Fix gdl_dock_object_present when the gdl object is iconified
gdl/gdl-dock-item.c | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/gdl/gdl-dock-item.c b/gdl/gdl-dock-item.c
index c686ad5..779b2e9 100644
--- a/gdl/gdl-dock-item.c
+++ b/gdl/gdl-dock-item.c
@@ -125,6 +125,9 @@ static void gdl_dock_item_dock (GdlDockObject *object,
GdlDockObject *requestor,
GdlDockPlacement position,
GValue *other_data);
+static void gdl_dock_item_present (GdlDockObject *object,
+ GdlDockObject *child);
+
static void gdl_dock_item_popup_menu (GdlDockItem *item,
guint button,
@@ -298,6 +301,7 @@ gdl_dock_item_class_init (GdlDockItemClass *klass)
dock_object_class->dock_request = gdl_dock_item_dock_request;
dock_object_class->dock = gdl_dock_item_dock;
+ dock_object_class->present = gdl_dock_item_present;
klass->has_grip = TRUE;
klass->dock_drag_begin = NULL;
@@ -1653,6 +1657,16 @@ gdl_dock_item_dock (GdlDockObject *object,
}
static void
+gdl_dock_item_present (GdlDockObject *object,
+ GdlDockObject *child)
+{
+ GdlDockItem *item = GDL_DOCK_ITEM (object);
+
+ gdl_dock_item_show_item (item);
+ GDL_DOCK_OBJECT_CLASS (gdl_dock_item_parent_class)->present (object, child);
+}
+
+static void
gdl_dock_item_detach_menu (GtkWidget *widget,
GtkMenu *menu)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]