diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-02-16 07:38:49 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-02-16 07:38:49 +0800 |
commit | 73510c9d4bbcc34825d6717b9a84b8daf25aa587 (patch) | |
tree | f97ebfdb47758c514dab4bfa8657cf57e4f7af66 | |
parent | 8e7f6aee3e1163833a5675cc567d81c2608f4a75 (diff) | |
download | gsoc2013-evolution-73510c9d4bbcc34825d6717b9a84b8daf25aa587.tar gsoc2013-evolution-73510c9d4bbcc34825d6717b9a84b8daf25aa587.tar.gz gsoc2013-evolution-73510c9d4bbcc34825d6717b9a84b8daf25aa587.tar.bz2 gsoc2013-evolution-73510c9d4bbcc34825d6717b9a84b8daf25aa587.tar.lz gsoc2013-evolution-73510c9d4bbcc34825d6717b9a84b8daf25aa587.tar.xz gsoc2013-evolution-73510c9d4bbcc34825d6717b9a84b8daf25aa587.tar.zst gsoc2013-evolution-73510c9d4bbcc34825d6717b9a84b8daf25aa587.zip |
Remove old GTK+ version checks.
We require GTK+ 3.4, so no need to check for versions older than that.
-rw-r--r-- | calendar/gui/e-day-view.c | 6 | ||||
-rw-r--r-- | calendar/gui/e-week-view.c | 2 | ||||
-rw-r--r-- | e-util/e-web-view-gtkhtml.c | 2 | ||||
-rw-r--r-- | 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 c18522a035..6f2b53507c 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 5d140832fe..de0c72b727 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 7303277f6a..98e8547b11 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 10e67e8df5..f22b8eef20 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: |