[gtk/wip/baedert/for-master] windwo: Remove _gtk_window_get_popover_position
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master] windwo: Remove _gtk_window_get_popover_position
- Date: Thu, 7 Nov 2019 16:53:00 +0000 (UTC)
commit 0340ff8a23258fc0fa603ef7e664037c18a624ea
Author: Timm Bäder <mail baedert org>
Date: Thu Nov 7 17:51:51 2019 +0100
windwo: Remove _gtk_window_get_popover_position
Unused.
gtk/gtkwindow.c | 28 ----------------------------
gtk/gtkwindowprivate.h | 4 ----
2 files changed, 32 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index b6d3a9083b..7bea3f9bd5 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -8857,34 +8857,6 @@ _gtk_window_set_popover_position (GtkWindow *window,
gtk_widget_queue_resize (popover);
}
-void
-_gtk_window_get_popover_position (GtkWindow *window,
- GtkWidget *popover,
- GtkPositionType *pos,
- cairo_rectangle_int_t *rect)
-{
- GtkWindowPopover *data;
-
- g_return_if_fail (GTK_IS_WINDOW (window));
- g_return_if_fail (GTK_IS_WIDGET (popover));
-
- data = _gtk_window_has_popover (window, popover);
-
- if (!data)
- {
- g_warning ("Widget %s(%p) is not a popover of window %s(%p)",
- gtk_widget_get_name (popover), popover,
- gtk_widget_get_name (GTK_WIDGET (window)), window);
- return;
- }
-
- if (pos)
- *pos = data->pos;
-
- if (rect)
- *rect = data->rect;
-}
-
void
_gtk_window_raise_popover (GtkWindow *window,
GtkWidget *widget)
diff --git a/gtk/gtkwindowprivate.h b/gtk/gtkwindowprivate.h
index 634d9ee66e..5b963ae503 100644
--- a/gtk/gtkwindowprivate.h
+++ b/gtk/gtkwindowprivate.h
@@ -100,10 +100,6 @@ void _gtk_window_set_popover_position (GtkWindow *window,
GtkWidget *popover,
GtkPositionType pos,
const cairo_rectangle_int_t *rect);
-void _gtk_window_get_popover_position (GtkWindow *window,
- GtkWidget *popover,
- GtkPositionType *pos,
- cairo_rectangle_int_t *rect);
void _gtk_window_raise_popover (GtkWindow *window,
GtkWidget *popover);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]