[evolution] Remove old GTK+ version checks.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Remove old GTK+ version checks.
- Date: Sat, 16 Feb 2013 02:05:51 +0000 (UTC)
commit 73510c9d4bbcc34825d6717b9a84b8daf25aa587
Author: Matthew Barnes <mbarnes redhat com>
Date: Fri Feb 15 18:38:49 2013 -0500
Remove old GTK+ version checks.
We require GTK+ 3.4, so no need to check for versions older than that.
calendar/gui/e-day-view.c | 6 ------
calendar/gui/e-week-view.c | 2 --
e-util/e-web-view-gtkhtml.c | 2 --
modules/calendar/e-cal-shell-view-private.c | 2 --
4 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c
index c18522a..6f2b535 100644
--- a/calendar/gui/e-day-view.c
+++ b/calendar/gui/e-day-view.c
@@ -3396,14 +3396,12 @@ e_day_view_on_main_canvas_scroll (GtkWidget *widget,
case GDK_SCROLL_DOWN:
e_day_view_scroll (day_view, -E_DAY_VIEW_WHEEL_MOUSE_STEP_SIZE);
return TRUE;
- #if GTK_CHECK_VERSION(3,3,18)
case GDK_SCROLL_SMOOTH:
if (scroll->delta_y < -0.001 || scroll->delta_y > 0.001) {
e_day_view_scroll (day_view, -E_DAY_VIEW_WHEEL_MOUSE_STEP_SIZE * scroll->delta_y);
return TRUE;
}
break;
- #endif
default:
break;
}
@@ -3423,14 +3421,12 @@ e_day_view_on_top_canvas_scroll (GtkWidget *widget,
case GDK_SCROLL_DOWN:
e_day_view_top_scroll (day_view, -E_DAY_VIEW_WHEEL_MOUSE_STEP_SIZE);
return TRUE;
- #if GTK_CHECK_VERSION(3,3,18)
case GDK_SCROLL_SMOOTH:
if (scroll->delta_y < -0.001 || scroll->delta_y > 0.001) {
e_day_view_top_scroll (day_view, -E_DAY_VIEW_WHEEL_MOUSE_STEP_SIZE * scroll->delta_y);
return TRUE;
}
break;
- #endif
default:
break;
}
@@ -3457,14 +3453,12 @@ e_day_view_on_time_canvas_scroll (GtkWidget *widget,
case GDK_SCROLL_DOWN:
e_day_view_scroll (day_view, -E_DAY_VIEW_WHEEL_MOUSE_STEP_SIZE);
return TRUE;
- #if GTK_CHECK_VERSION(3,3,18)
case GDK_SCROLL_SMOOTH:
if (scroll->delta_y < -0.001 || scroll->delta_y > 0.001) {
e_day_view_scroll (day_view, -E_DAY_VIEW_WHEEL_MOUSE_STEP_SIZE * scroll->delta_y);
return TRUE;
}
break;
- #endif
default:
break;
}
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c
index 5d14083..de0c72b 100644
--- a/calendar/gui/e-week-view.c
+++ b/calendar/gui/e-week-view.c
@@ -2571,14 +2571,12 @@ e_week_view_on_scroll (GtkWidget *widget,
case GDK_SCROLL_DOWN:
new_value = value + page_increment;
break;
- #if GTK_CHECK_VERSION(3,3,18)
case GDK_SCROLL_SMOOTH:
if (scroll->delta_y < -0.001 || scroll->delta_y > 0.001) {
new_value = value + scroll->delta_y * page_increment;
break;
}
return FALSE;
- #endif
default:
return FALSE;
}
diff --git a/e-util/e-web-view-gtkhtml.c b/e-util/e-web-view-gtkhtml.c
index 7303277..98e8547 100644
--- a/e-util/e-web-view-gtkhtml.c
+++ b/e-util/e-web-view-gtkhtml.c
@@ -851,7 +851,6 @@ web_view_gtkhtml_scroll_event (GtkWidget *widget,
if (event->state & GDK_CONTROL_MASK) {
GdkScrollDirection direction = event->direction;
- #if GTK_CHECK_VERSION(3,3,18)
if (direction == GDK_SCROLL_SMOOTH) {
static gdouble total_delta_y = 0.0;
@@ -867,7 +866,6 @@ web_view_gtkhtml_scroll_event (GtkWidget *widget,
return FALSE;
}
}
- #endif
switch (direction) {
case GDK_SCROLL_UP:
diff --git a/modules/calendar/e-cal-shell-view-private.c b/modules/calendar/e-cal-shell-view-private.c
index 10e67e8..f22b8ee 100644
--- a/modules/calendar/e-cal-shell-view-private.c
+++ b/modules/calendar/e-cal-shell-view-private.c
@@ -237,7 +237,6 @@ cal_shell_view_date_navigator_scroll_event_cb (ECalShellView *cal_shell_view,
direction = event->direction;
- #if GTK_CHECK_VERSION(3,3,18)
if (direction == GDK_SCROLL_SMOOTH) {
static gdouble total_delta_y = 0.0;
@@ -253,7 +252,6 @@ cal_shell_view_date_navigator_scroll_event_cb (ECalShellView *cal_shell_view,
return FALSE;
}
}
- #endif
switch (direction) {
case GDK_SCROLL_UP:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]