[gnome-panel/wip-multiscreen: 1/2] multiscreen: remove unused panel_multiscreen_locate_widget_monitor
- From: Sebastian Geiger <segeiger src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel/wip-multiscreen: 1/2] multiscreen: remove unused panel_multiscreen_locate_widget_monitor
- Date: Wed, 26 Feb 2020 21:35:30 +0000 (UTC)
commit 3e7438acbd81d14988dc5b7d9cfdf7ca7147bbf1
Author: Sebastian Geiger <sbastig gmx net>
Date: Wed Feb 26 20:44:44 2020 +0100
multiscreen: remove unused panel_multiscreen_locate_widget_monitor
gnome-panel/panel-multiscreen.c | 15 ---------------
gnome-panel/panel-multiscreen.h | 1 -
2 files changed, 16 deletions(-)
---
diff --git a/gnome-panel/panel-multiscreen.c b/gnome-panel/panel-multiscreen.c
index 5b43f2983..a6299d9a6 100644
--- a/gnome-panel/panel-multiscreen.c
+++ b/gnome-panel/panel-multiscreen.c
@@ -534,21 +534,6 @@ panel_multiscreen_height (GdkScreen *screen,
return monitor_geometries[monitor].height;
}
-int
-panel_multiscreen_locate_widget_monitor (GtkWidget *widget)
-{
- GtkWidget *toplevel;
- int retval = -1;
-
- toplevel = gtk_widget_get_toplevel (widget);
- if (!toplevel)
- return -1;
-
- g_object_get (toplevel, "monitor", &retval, NULL);
-
- return retval;
-}
-
static int
axis_distance (int p, int axis_start, int axis_size)
{
diff --git a/gnome-panel/panel-multiscreen.h b/gnome-panel/panel-multiscreen.h
index 2e97ae21c..5122d033f 100644
--- a/gnome-panel/panel-multiscreen.h
+++ b/gnome-panel/panel-multiscreen.h
@@ -38,7 +38,6 @@ int panel_multiscreen_width (GdkScreen *screen,
int monitor);
int panel_multiscreen_height (GdkScreen *screen,
int monitor);
-int panel_multiscreen_locate_widget_monitor (GtkWidget *widget);
int panel_multiscreen_get_monitor_at_point (int x,
int y);
void panel_multiscreen_is_at_visible_extreme (int monitor,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]