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




commit c9fd4b9813881a81174a5e3ff1c19be168ffe20b
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]