[gdl] bgo #679608 - gdl_dock_xor_rect removed without changing library version
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdl] bgo #679608 - gdl_dock_xor_rect removed without changing library version
- Date: Fri, 13 Jul 2012 13:47:49 +0000 (UTC)
commit cef80e2c6faa62a2af1f3250fbcb1908fa84f680
Author: SÃbastien Granjoux <seb sfo free fr>
Date: Fri Jul 13 15:47:06 2012 +0200
bgo #679608 - gdl_dock_xor_rect removed without changing library version
docs/reference/gdl-sections.txt | 2 ++
gdl/gdl-deprecated.c | 31 +++++++++++++++++++++++++++++++
gdl/gdl-dock.h | 5 +++++
3 files changed, 38 insertions(+), 0 deletions(-)
---
diff --git a/docs/reference/gdl-sections.txt b/docs/reference/gdl-sections.txt
index 081b4b3..5b2025c 100644
--- a/docs/reference/gdl-sections.txt
+++ b/docs/reference/gdl-sections.txt
@@ -18,6 +18,8 @@ gdl_dock_get_item_by_name
gdl_dock_get_named_items
gdl_dock_get_placeholder_by_name
gdl_dock_object_get_toplevel
+gdl_dock_xor_rect
+gdl_dock_xor_rect_hide
<SUBSECTION Standard>
GdlDockClass
GDL_DOCK
diff --git a/gdl/gdl-deprecated.c b/gdl/gdl-deprecated.c
index a82ee39..17e1fc9 100644
--- a/gdl/gdl-deprecated.c
+++ b/gdl/gdl-deprecated.c
@@ -56,4 +56,35 @@ void gdl_dock_bar_set_orientation (GdlDockBar *dockbar,
{
gtk_orientable_set_orientation (GTK_ORIENTABLE (dockbar), orientation);
}
+
+/**
+ * gdl_dock_xor_rect:
+ * @dock: A #GdlDock widget
+ * @rect: The position and the size of the preview window
+ *
+ * Show a preview window used to materialize the dock target.
+ *
+ * Deprecated: 3.6: Use gdl_dock_show_preview instead.
+ */
+void
+gdl_dock_xor_rect (GdlDock *dock,
+ cairo_rectangle_int_t *rect)
+{
+ gdl_dock_show_preview (dock, rect);
+}
+
+/**
+ * gdl_dock_xor_rect_hide:
+ * @dock: A #GdlDock widget
+ *
+ * Hide the preview window used to materialize the dock target.
+ *
+ * Deprecated: 3.6: Use gdl_dock_hide_preview instead.
+ */
+void
+gdl_dock_xor_rect_hide (GdlDock *dock)
+{
+ gdl_dock_hide_preview (dock);
+}
+
#endif
diff --git a/gdl/gdl-dock.h b/gdl/gdl-dock.h
index 33d8f6c..292689c 100644
--- a/gdl/gdl-dock.h
+++ b/gdl/gdl-dock.h
@@ -104,6 +104,11 @@ void gdl_dock_hide_preview (GdlDock *dock);
void gdl_dock_set_skip_taskbar (GdlDock *dock,
gboolean skip);
+#ifndef GDL_DISABLE_DEPRECATED
+void gdl_dock_xor_rect (GdlDock *dock,
+ GdkRectangle *rect) G_GNUC_DEPRECATED_FOR(gdl_dock_show_preview);
+void gdl_dock_xor_rect_hide (GdlDock *dock) G_GNUC_DEPRECATED_FOR(gdl_dock_hide_preview);
+#endif
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]