diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2022-02-10 00:01:14 +0100 |
---|---|---|
committer | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2022-02-12 16:03:37 +0000 |
commit | e26ea4e6d1a0641a24d6182f244a028de0eb608d (patch) | |
tree | 66ae8f7dccafe7a0956db004b086d2e9e3324b4f | |
parent | 3d4d78558878c6c2a7065830b8ebe781be10b0ea (diff) | |
download | gnome-control-center-e26ea4e6d1a0641a24d6182f244a028de0eb608d.tar.gz |
wacom: Drop dead code
These dimensions are no longer used.
-rw-r--r-- | panels/wacom/calibrator/calibrator-gui.c | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/panels/wacom/calibrator/calibrator-gui.c b/panels/wacom/calibrator/calibrator-gui.c index 810044dd7..afe309917 100644 --- a/panels/wacom/calibrator/calibrator-gui.c +++ b/panels/wacom/calibrator/calibrator-gui.c @@ -39,9 +39,6 @@ struct CalibArea gboolean success; GdkDevice *device; - double X[4], Y[4]; - int display_width, display_height; - GtkWidget *window; GtkBuilder *builder; GtkWidget *error_revealer; @@ -57,37 +54,6 @@ struct CalibArea #define END_TIME 750 /* 750 = 0.75 sec */ static void -set_display_size (CalibArea *calib_area, - int width, - int height) -{ - int delta_x; - int delta_y; - - calib_area->display_width = width; - calib_area->display_height = height; - - /* Compute absolute circle centers */ - delta_x = calib_area->display_width/NUM_BLOCKS; - delta_y = calib_area->display_height/NUM_BLOCKS; - - calib_area->X[UL] = delta_x; - calib_area->Y[UL] = delta_y; - - calib_area->X[UR] = calib_area->display_width - delta_x - 1; - calib_area->Y[UR] = delta_y; - - calib_area->X[LL] = delta_x; - calib_area->Y[LL] = calib_area->display_height - delta_y - 1; - - calib_area->X[LR] = calib_area->display_width - delta_x - 1; - calib_area->Y[LR] = calib_area->display_height - delta_y - 1; - - /* reset calibration if already started */ - reset (&calib_area->calibrator); -} - -static void calib_area_notify_finish (CalibArea *area) { gtk_widget_hide (area->window); @@ -275,14 +241,6 @@ on_fullscreen (GtkWindow *window, set_active_target (area, 0); } -static void -on_size_allocate (GtkWidget *widget, - GtkAllocation *allocation, - CalibArea *area) -{ - set_display_size (area, allocation->width, allocation->height); -} - /** * Creates the windows and other objects required to do calibration * under GTK. When the window is closed (timed out, calibration finished @@ -360,10 +318,6 @@ calib_area_new (GdkDisplay *display, "notify::fullscreened", G_CALLBACK (on_fullscreen), calib_area); - g_signal_connect (calib_area->window, - "size-allocate", - G_CALLBACK (on_size_allocate), - calib_area); click = gtk_gesture_click_new (); gtk_gesture_single_set_button (GTK_GESTURE_SINGLE (click), GDK_BUTTON_PRIMARY); |