aboutsummaryrefslogtreecommitdiff
path: root/example/simple-client-vala.c
diff options
context:
space:
mode:
Diffstat (limited to 'example/simple-client-vala.c')
-rw-r--r--example/simple-client-vala.c33
1 files changed, 16 insertions, 17 deletions
diff --git a/example/simple-client-vala.c b/example/simple-client-vala.c
index 4307157..b90b8b3 100644
--- a/example/simple-client-vala.c
+++ b/example/simple-client-vala.c
@@ -1,4 +1,4 @@
-/* simple-client-vala.c generated by valac 0.15.2, the Vala compiler
+/* simple-client-vala.c generated by valac 0.16.1, the Vala compiler
* generated from simple-client-vala.vala, do not modify */
/*
@@ -29,6 +29,7 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
#include <string.h>
#include <gtk/gtk.h>
+#include <gdk/gdk.h>
#include <gobject/gvaluecollector.h>
@@ -122,8 +123,9 @@ static void ___lambda5__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer s
static void simple_client_label_toggle (SimpleClient* self, GtkMenuItem* item);
static Block2Data* block2_data_ref (Block2Data* _data2_);
static void block2_data_unref (void * _userdata_);
-static void __lambda6_ (SimpleClient* self, gint delta, guint direction);
-static void ___lambda6__app_indicator_scroll_event (AppIndicator* _sender, gint delta, guint direction, gpointer self);
+static void __lambda6_ (SimpleClient* self, gint delta, GdkScrollDirection direction);
+const gchar* gdk_scroll_direction_to_string (GdkScrollDirection self);
+static void ___lambda6__app_indicator_scroll_event (AppIndicator* _sender, gint delta, GdkScrollDirection direction, gpointer self);
static gboolean __lambda7_ (SimpleClient* self);
static gboolean ___lambda7__gsource_func (gpointer self);
static void __lambda8_ (SimpleClient* self);
@@ -416,31 +418,28 @@ static void block2_data_unref (void * _userdata_) {
}
-static void __lambda6_ (SimpleClient* self, gint delta, guint direction) {
+static void __lambda6_ (SimpleClient* self, gint delta, GdkScrollDirection direction) {
gint _tmp0_;
gchar* _tmp1_ = NULL;
gchar* _tmp2_;
- guint _tmp3_;
- gchar* _tmp4_ = NULL;
- gchar* _tmp5_;
- gchar* _tmp6_ = NULL;
- gchar* _tmp7_;
+ GdkScrollDirection _tmp3_;
+ GEnumValue* _tmp4_;
+ gchar* _tmp5_ = NULL;
+ gchar* _tmp6_;
_tmp0_ = delta;
_tmp1_ = g_strdup_printf ("%i", _tmp0_);
_tmp2_ = _tmp1_;
_tmp3_ = direction;
- _tmp4_ = g_strdup_printf ("%u", _tmp3_);
- _tmp5_ = _tmp4_;
- _tmp6_ = g_strconcat ("Got scroll event! delta: ", _tmp2_, ", direction: ", _tmp5_, "\n", NULL);
- _tmp7_ = _tmp6_;
- g_print ("%s", _tmp7_);
- _g_free0 (_tmp7_);
- _g_free0 (_tmp5_);
+ _tmp4_ = g_enum_get_value (g_type_class_ref (GDK_TYPE_SCROLL_DIRECTION), _tmp3_);
+ _tmp5_ = g_strconcat ("Got scroll event! delta: ", _tmp2_, ", direction: ", (_tmp4_ != NULL) ? _tmp4_->value_name : NULL, "\n", NULL);
+ _tmp6_ = _tmp5_;
+ g_print ("%s", _tmp6_);
+ _g_free0 (_tmp6_);
_g_free0 (_tmp2_);
}
-static void ___lambda6__app_indicator_scroll_event (AppIndicator* _sender, gint delta, guint direction, gpointer self) {
+static void ___lambda6__app_indicator_scroll_event (AppIndicator* _sender, gint delta, GdkScrollDirection direction, gpointer self) {
__lambda6_ (self, delta, direction);
}