aboutsummaryrefslogtreecommitdiff
path: root/example/simple-client-vala.c
diff options
context:
space:
mode:
authorSebastien Bacher <seb128@ubuntu.com>2012-07-11 21:08:16 +0200
committerSebastien Bacher <seb128@ubuntu.com>2012-07-11 21:08:16 +0200
commitdfefc88e26e184b5ab485585b34a663456930746 (patch)
tree165d6fc79d4841668179e5a0e7542f8259cb8ab8 /example/simple-client-vala.c
parent812ded8224978f47453e53eb63fc11c754bac0c6 (diff)
parentf2744fa7a2ec60767c0fa4b4e358dac86a867ad1 (diff)
downloadlibayatana-appindicator-dfefc88e26e184b5ab485585b34a663456930746.tar.gz
libayatana-appindicator-dfefc88e26e184b5ab485585b34a663456930746.tar.bz2
libayatana-appindicator-dfefc88e26e184b5ab485585b34a663456930746.zip
Import upstream version 12.10.0
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);
}