util: Drop unused function
This commit is contained in:
@@ -1202,40 +1202,6 @@ filter_children_by_uid_and_modtype (GtkWidget *widget,
|
|||||||
return result;
|
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
|
void
|
||||||
gcal_utils_launch_online_accounts_panel (GDBusConnection *connection,
|
gcal_utils_launch_online_accounts_panel (GDBusConnection *connection,
|
||||||
const gchar *action,
|
const gchar *action,
|
||||||
|
|||||||
@@ -120,13 +120,6 @@ GList* filter_children_by_uid_and_modtype (GtkWidget
|
|||||||
GcalRecurrenceModType mod,
|
GcalRecurrenceModType mod,
|
||||||
const gchar *uid);
|
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,
|
void gcal_utils_launch_online_accounts_panel (GDBusConnection *connection,
|
||||||
const gchar *action,
|
const gchar *action,
|
||||||
const gchar *arg);
|
const gchar *arg);
|
||||||
|
|||||||
Reference in New Issue
Block a user