From fb504db31fcd8dd6fe3b0d4bc0bd110b27907661 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Wed, 26 Jan 2022 13:17:48 -0300 Subject: [PATCH] util: Drop unused function --- src/utils/gcal-utils.c | 34 ---------------------------------- src/utils/gcal-utils.h | 7 ------- 2 files changed, 41 deletions(-) diff --git a/src/utils/gcal-utils.c b/src/utils/gcal-utils.c index 449e6255..6cff7aeb 100644 --- a/src/utils/gcal-utils.c +++ b/src/utils/gcal-utils.c @@ -1202,40 +1202,6 @@ filter_children_by_uid_and_modtype (GtkWidget *widget, return result; } -gboolean -gcal_translate_child_window_position (GtkWidget *target, - GdkWindow *child_window, - gdouble src_x, - gdouble src_y, - gdouble *real_x, - gdouble *real_y) -{ - GdkWindow *window; - gdouble x, y; - - x = src_x; - y = src_y; - - /* Find the (x, y) values relative to the workbench */ - window = child_window; - while (window && window != gtk_widget_get_window (target)) - { - gdk_window_coords_to_parent (window, x, y, &x, &y); - window = gdk_window_get_parent (window); - } - - if (!window) - return FALSE; - - if (real_x) - *real_x = x; - - if (real_y) - *real_y = y; - - return TRUE; -} - void gcal_utils_launch_online_accounts_panel (GDBusConnection *connection, const gchar *action, diff --git a/src/utils/gcal-utils.h b/src/utils/gcal-utils.h index cf94f2e7..46f50ab7 100644 --- a/src/utils/gcal-utils.h +++ b/src/utils/gcal-utils.h @@ -120,13 +120,6 @@ GList* filter_children_by_uid_and_modtype (GtkWidget GcalRecurrenceModType mod, const gchar *uid); -gboolean gcal_translate_child_window_position (GtkWidget *target, - GdkWindow *child_window, - gdouble src_x, - gdouble src_y, - gdouble *real_x, - gdouble *real_y); - void gcal_utils_launch_online_accounts_panel (GDBusConnection *connection, const gchar *action, const gchar *arg);