[anjuta] libanjuta: Add widget presenting capability to AnjutaDock



commit ba3bf4569bffac1d5cc5dd0f8b84f1ea6dcaf947
Author: James Liggett <jrliggett cox net>
Date:   Sun May 27 01:47:12 2012 -0700

    libanjuta: Add widget presenting capability to AnjutaDock

 libanjuta/anjuta-dock.c |   23 +++++++++++++++++++++++
 libanjuta/anjuta-dock.h |    1 +
 2 files changed, 24 insertions(+), 0 deletions(-)
---
diff --git a/libanjuta/anjuta-dock.c b/libanjuta/anjuta-dock.c
index 78d8c96..f4ef70d 100644
--- a/libanjuta/anjuta-dock.c
+++ b/libanjuta/anjuta-dock.c
@@ -353,6 +353,29 @@ anjuta_dock_hide_pane (AnjutaDock *self, AnjutaDockPane *pane)
 }
 
 /**
+ * anjuta_dock_show_pane:
+ * @self: An AnjutaDock
+ * @pane: Pane to present
+ * 
+ * Presents the pane to the user by making it the currently active pane in its
+ * switcher
+ */
+void
+anjuta_dock_present_pane (AnjutaDock *self, AnjutaDockPane *pane)
+{
+	GtkWidget *child;
+	GdlDockObject *dock_item;
+
+	child = anjuta_dock_pane_get_widget (pane);
+
+	if (child)
+	{
+		dock_item = g_object_get_data (G_OBJECT (child), "dock-item");
+		gdl_dock_object_present (dock_item, NULL);
+	}
+}
+
+/**
  * anjuta_dock_set_command_bar:
  * @self: An AnjutaDock
  * @command_bar: An #AnjutaCommandBar to associate with this dock
diff --git a/libanjuta/anjuta-dock.h b/libanjuta/anjuta-dock.h
index f6b29e8..4c66914 100644
--- a/libanjuta/anjuta-dock.h
+++ b/libanjuta/anjuta-dock.h
@@ -73,6 +73,7 @@ void anjuta_dock_replace_command_pane (AnjutaDock *self, const gchar *pane_name,
 void anjuta_dock_remove_pane (AnjutaDock *self, AnjutaDockPane *pane);
 void anjuta_dock_show_pane (AnjutaDock *self, AnjutaDockPane *pane);
 void anjuta_dock_hide_pane (AnjutaDock *self, AnjutaDockPane *pane);
+void anjuta_dock_present_pane (AnjutaDock *self, AnjutaDockPane *pane);
 void anjuta_dock_set_command_bar (AnjutaDock *self, 
                                   AnjutaCommandBar *command_bar);
 AnjutaCommandBar* anjuta_dock_get_command_bar (AnjutaDock *self);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]