[gnome-calendar/gbsneto/gtk4: 29/29] util: Drop unused function




commit aa3af1f6713b0a27a9afdb9accdad0691bc3bb76
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Wed Jan 26 13:17:48 2022 -0300

    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);


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