[baobab] Adjust to changes in Vala binding API
- From: Ryan Lortie <desrt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [baobab] Adjust to changes in Vala binding API
- Date: Wed, 12 Feb 2014 12:14:18 +0000 (UTC)
commit 760fa0cb2e83cd3a1b39a2f9f02d809247e3b839
Author: Jürg Billeter <j bitron ch>
Date: Wed Feb 12 07:41:27 2014 +0100
Adjust to changes in Vala binding API
This adjusts to the changes from
https://bugzilla.gnome.org/show_bug.cgi?id=713240 and bumps the
required Vala version.
Based on patch by Ryan Lortie.
https://bugzilla.gnome.org/show_bug.cgi?id=724204
configure.ac | 2 +-
src/baobab-chart.vala | 10 +++++-----
2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index f3a36ae..11dd4c3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -27,7 +27,7 @@ AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[The name of the gettext d
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_MAKE_SET
-AM_PROG_VALAC([0.21.1])
+AM_PROG_VALAC([0.23.2])
PKG_PROG_PKG_CONFIG([0.22])
## don't rerun to this point if we abort
diff --git a/src/baobab-chart.vala b/src/baobab-chart.vala
index f5daf98..48e2f7a 100644
--- a/src/baobab-chart.vala
+++ b/src/baobab-chart.vala
@@ -516,7 +516,7 @@ namespace Baobab {
protected override bool button_press_event (Gdk.EventButton event) {
if (event.type == Gdk.EventType.BUTTON_PRESS) {
- if (((Gdk.Event) (&event)).triggers_context_menu ()) {
+ if (event.triggers_context_menu ()) {
show_popup_menu (event);
return true;
}
@@ -544,17 +544,17 @@ namespace Baobab {
}
protected override bool scroll_event (Gdk.EventScroll event) {
- Gdk.EventMotion *e = (Gdk.EventMotion *) (&event);
+ Gdk.EventMotion e = (Gdk.EventMotion) event;
switch (event.direction) {
case Gdk.ScrollDirection.LEFT:
case Gdk.ScrollDirection.UP:
zoom_out ();
- motion_notify_event (*e);
+ motion_notify_event (e);
break;
case Gdk.ScrollDirection.RIGHT:
case Gdk.ScrollDirection.DOWN:
zoom_in ();
- motion_notify_event (*e);
+ motion_notify_event (e);
break;
case Gdk.ScrollDirection.SMOOTH:
break;
@@ -661,4 +661,4 @@ namespace Baobab {
return true;
}
}
-}
\ No newline at end of file
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]