[vala] hildon-1: add Hildon specific gtk+-2.0 modifications in hildon-1-custom.vala
- From: Evan Nemerson <evann src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] hildon-1: add Hildon specific gtk+-2.0 modifications in hildon-1-custom.vala
- Date: Sat, 7 Nov 2009 19:49:04 +0000 (UTC)
commit 4d7db00736b4b1a7c82de4e42a19d97a347d309f
Author: Philipp Zabel <philipp zabel gmail com>
Date: Fri Oct 16 10:49:10 2009 +0200
hildon-1: add Hildon specific gtk+-2.0 modifications in hildon-1-custom.vala
Hildon depends on a modified GTK. Instead of polluting gtk+-2.0.vapi with
Hildon specific modifications, add those bindings here.
Partially fixes bug 598656.
vapi/hildon-1.vapi | 35 ++++++++++++++++
vapi/packages/hildon-1/hildon-1-custom.vala | 59 +++++++++++++++++++++++++++
2 files changed, 94 insertions(+), 0 deletions(-)
---
diff --git a/vapi/hildon-1.vapi b/vapi/hildon-1.vapi
index b979abc..09256d6 100644
--- a/vapi/hildon-1.vapi
+++ b/vapi/hildon-1.vapi
@@ -613,6 +613,24 @@ namespace Hildon {
INVALID_DATE,
INVALID_TIME
}
+ [CCode (cprefix = "HILDON_GTK_INPUT_MODE_", has_type_id = "0", cheader_filename = "gtk/gtk.h")]
+ public enum GtkInputMode {
+ ALPHA,
+ NUMERIC,
+ SPECIAL,
+ HEXA,
+ TELE,
+ FULL,
+ MULTILINE,
+ INVISIBLE,
+ AUTOCAP,
+ DICTIONARY
+ }
+ [CCode (cprefix = "HILDON_", has_type_id = "0", cheader_filename = "gtk/gtk.h")]
+ public enum Mode {
+ DIABLO,
+ FREMANTLE
+ }
[CCode (cprefix = "HILDON_NOTE_TYPE_", has_type_id = "0", cheader_filename = "hildon/hildon.h")]
public enum NoteType {
CONFIRMATION,
@@ -627,6 +645,21 @@ namespace Hildon {
MINIMUM_VALUE_EXCEED,
ERRONEOUS_VALUE
}
+ [CCode (cprefix = "HILDON_SIZE_", has_type_id = "0", cheader_filename = "gtk/gtk.h")]
+ public enum SizeType {
+ AUTO_WIDTH,
+ HALFSCREEN_WIDTH,
+ FULLSCREEN_WIDTH,
+ AUTO_HEIGHT,
+ FINGER_HEIGHT,
+ THUMB_HEIGHT,
+ AUTO
+ }
+ [CCode (cprefix = "HILDON_UI_MODE_", has_type_id = "0", cheader_filename = "gtk/gtk.h")]
+ public enum UIMode {
+ NORMAL,
+ EDIT
+ }
[CCode (cprefix = "HILDON_WINDOW_CO_", has_type_id = "0", cheader_filename = "hildon/hildon.h")]
public enum WindowClipboardOperation {
COPY,
@@ -658,6 +691,8 @@ namespace Hildon {
public const int WINDOW_LONG_PRESS_TIME;
[CCode (cheader_filename = "hildon/hildon.h")]
public static int get_icon_pixel_size (Gtk.IconSize size);
+ [CCode (cheader_filename = "gtk/gtk.h")]
+ public static void gtk_widget_set_theme_size (Gtk.Widget widget, Hildon.SizeType size);
[CCode (cheader_filename = "hildon/hildon.h")]
public static bool helper_event_button_is_finger (Gdk.EventButton event);
[CCode (cheader_filename = "hildon/hildon.h")]
diff --git a/vapi/packages/hildon-1/hildon-1-custom.vala b/vapi/packages/hildon-1/hildon-1-custom.vala
new file mode 100644
index 0000000..de39c38
--- /dev/null
+++ b/vapi/packages/hildon-1/hildon-1-custom.vala
@@ -0,0 +1,59 @@
+/* hildon.vala
+ *
+ * Copyright (C) 2009 Philipp Zabel
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Author:
+ * Philipp Zabel <philipp zabel gmail com>
+ */
+
+namespace Hildon {
+ [CCode (cprefix = "HILDON_GTK_INPUT_MODE_", has_type_id = "0", cheader_filename = "gtk/gtk.h")]
+ public enum GtkInputMode {
+ ALPHA,
+ NUMERIC,
+ SPECIAL,
+ HEXA,
+ TELE,
+ FULL,
+ MULTILINE,
+ INVISIBLE,
+ AUTOCAP,
+ DICTIONARY
+ }
+ [CCode (cprefix = "HILDON_", has_type_id = "0", cheader_filename = "gtk/gtk.h")]
+ public enum Mode {
+ DIABLO,
+ FREMANTLE
+ }
+ [CCode (cprefix = "HILDON_SIZE_", has_type_id = "0", cheader_filename = "gtk/gtk.h")]
+ public enum SizeType {
+ AUTO_WIDTH,
+ HALFSCREEN_WIDTH,
+ FULLSCREEN_WIDTH,
+ AUTO_HEIGHT,
+ FINGER_HEIGHT,
+ THUMB_HEIGHT,
+ AUTO
+ }
+ [CCode (cprefix = "HILDON_UI_MODE_", has_type_id = "0", cheader_filename = "gtk/gtk.h")]
+ public enum UIMode {
+ NORMAL,
+ EDIT
+ }
+ [CCode (cheader_filename = "gtk/gtk.h")]
+ public static void gtk_widget_set_theme_size (Gtk.Widget widget, Hildon.SizeType size);
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]