vala r828 - in trunk: . vapi vapi/packages/gnome-desktop-2.0



Author: juergbi
Date: Thu Jan 10 21:20:42 2008
New Revision: 828
URL: http://svn.gnome.org/viewvc/vala?rev=828&view=rev

Log:
2008-01-10  Juerg Billeter  <j bitron ch>

	* vapi/packages/gnome-desktop-2.0/: update to gnome-desktop 2.21.4

	* vapi/gnome-desktop-2.0.vapi: regenerated

	* vapi/gnome-desktop-2.0.deps, vapi/Makefile.am: add dependency file


Added:
   trunk/vapi/gnome-desktop-2.0.deps
Modified:
   trunk/ChangeLog
   trunk/vapi/Makefile.am
   trunk/vapi/gnome-desktop-2.0.vapi
   trunk/vapi/packages/gnome-desktop-2.0/gnome-desktop-2.0.deps
   trunk/vapi/packages/gnome-desktop-2.0/gnome-desktop-2.0.gi

Modified: trunk/vapi/Makefile.am
==============================================================================
--- trunk/vapi/Makefile.am	(original)
+++ trunk/vapi/Makefile.am	Thu Jan 10 21:20:42 2008
@@ -19,6 +19,7 @@
 	gdk-2.0.deps \
 	gdk-2.0.vapi \
 	gio-2.0.vapi \
+	gnome-desktop-2.0.deps \
 	gnome-desktop-2.0.vapi \
 	gnome-vfs-2.0.vapi \
 	gstreamer-0.10.vapi \

Added: trunk/vapi/gnome-desktop-2.0.deps
==============================================================================
--- (empty file)
+++ trunk/vapi/gnome-desktop-2.0.deps	Thu Jan 10 21:20:42 2008
@@ -0,0 +1,8 @@
+atk
+cairo
+gdk-2.0
+pango
+gtk+-2.0
+libgnome-2.0
+libgnomeui-2.0
+gnome-vfs-2.0

Modified: trunk/vapi/gnome-desktop-2.0.vapi
==============================================================================
--- trunk/vapi/gnome-desktop-2.0.vapi	(original)
+++ trunk/vapi/gnome-desktop-2.0.vapi	Thu Jan 10 21:20:42 2008
@@ -2,6 +2,20 @@
 
 [CCode (cprefix = "Gnome", lower_case_cprefix = "gnome_")]
 namespace Gnome {
+	[CCode (cprefix = "GNOME_BG_COLOR_", cheader_filename = "libgnome/gnome-desktop-item.h")]
+	public enum BGColorType {
+		SOLID,
+		H_GRADIENT,
+		V_GRADIENT,
+	}
+	[CCode (cprefix = "GNOME_BG_PLACEMENT_", cheader_filename = "libgnome/gnome-desktop-item.h")]
+	public enum BGPlacement {
+		TILED,
+		ZOOMED,
+		CENTERED,
+		SCALED,
+		FILL_SCREEN,
+	}
 	[CCode (cprefix = "GNOME_DESKTOP_ITEM_ERROR_", cheader_filename = "libgnome/gnome-desktop-item.h")]
 	public enum DesktopItemError {
 		NO_FILENAME,
@@ -48,6 +62,9 @@
 		SERVICE,
 		SERVICE_TYPE,
 	}
+	[CCode (cheader_filename = "libgnome/gnome-desktop-item.h")]
+	public class BGClass {
+	}
 	[CCode (ref_function = "gnome_desktop_item_ref", unref_function = "gnome_desktop_item_unref", cheader_filename = "libgnome/gnome-desktop-item.h")]
 	public class DesktopItem : GLib.Boxed {
 		public bool attr_exists (string attr);
@@ -92,6 +109,21 @@
 		[NoArrayLength]
 		public void set_strings (string attr, string[] strings);
 	}
+	[CCode (cheader_filename = "libgnome/gnome-desktop-item.h")]
+	public class BG : GLib.Object {
+		public bool changes_with_size ();
+		public weak Gdk.Pixmap create_pixmap (Gdk.Window window, int width, int height, bool root);
+		public weak Gdk.Pixbuf create_thumbnail (Gnome.ThumbnailFactory factory, Gdk.Screen screen, int dest_width, int dest_height);
+		public void draw (Gdk.Pixbuf dest);
+		public bool get_image_size (Gnome.ThumbnailFactory factory, int width, int height);
+		public bool is_dark ();
+		public BG ();
+		public void set_color (Gnome.BGColorType type, Gdk.Color c1, Gdk.Color c2);
+		public static void set_pixmap_as_root (Gdk.Screen screen, Gdk.Pixmap pixmap);
+		public void set_placement (Gnome.BGPlacement placement);
+		public void set_uri (string uri);
+		public signal void changed ();
+	}
 	[CCode (cheader_filename = "libgnomeui/gnome-ditem-edit.h")]
 	public class DItemEdit : Gtk.Notebook, Atk.Implementor, Gtk.Buildable {
 		public void clear ();

Modified: trunk/vapi/packages/gnome-desktop-2.0/gnome-desktop-2.0.deps
==============================================================================
--- trunk/vapi/packages/gnome-desktop-2.0/gnome-desktop-2.0.deps	(original)
+++ trunk/vapi/packages/gnome-desktop-2.0/gnome-desktop-2.0.deps	Thu Jan 10 21:20:42 2008
@@ -3,3 +3,6 @@
 gdk-2.0
 pango
 gtk+-2.0
+libgnome-2.0
+libgnomeui-2.0
+gnome-vfs-2.0

Modified: trunk/vapi/packages/gnome-desktop-2.0/gnome-desktop-2.0.gi
==============================================================================
--- trunk/vapi/packages/gnome-desktop-2.0/gnome-desktop-2.0.gi	(original)
+++ trunk/vapi/packages/gnome-desktop-2.0/gnome-desktop-2.0.gi	Thu Jan 10 21:20:42 2008
@@ -1,6 +1,8 @@
 <?xml version="1.0"?>
 <api version="1.0">
 	<namespace name="Gnome">
+		<struct name="GnomeBGClass">
+		</struct>
 		<boxed name="GnomeDesktopItem" type-name="GnomeDesktopItem" get-type="gnome_desktop_item_get_type">
 			<method name="attr_exists" symbol="gnome_desktop_item_attr_exists">
 				<return-type type="gboolean"/>
@@ -299,6 +301,18 @@
 				</parameters>
 			</method>
 		</boxed>
+		<enum name="GnomeBGColorType">
+			<member name="GNOME_BG_COLOR_SOLID" value="0"/>
+			<member name="GNOME_BG_COLOR_H_GRADIENT" value="1"/>
+			<member name="GNOME_BG_COLOR_V_GRADIENT" value="2"/>
+		</enum>
+		<enum name="GnomeBGPlacement">
+			<member name="GNOME_BG_PLACEMENT_TILED" value="0"/>
+			<member name="GNOME_BG_PLACEMENT_ZOOMED" value="1"/>
+			<member name="GNOME_BG_PLACEMENT_CENTERED" value="2"/>
+			<member name="GNOME_BG_PLACEMENT_SCALED" value="3"/>
+			<member name="GNOME_BG_PLACEMENT_FILL_SCREEN" value="4"/>
+		</enum>
 		<enum name="GnomeDesktopItemError">
 			<member name="GNOME_DESKTOP_ITEM_ERROR_NO_FILENAME" value="0"/>
 			<member name="GNOME_DESKTOP_ITEM_ERROR_UNKNOWN_ENCODING" value="1"/>
@@ -339,6 +353,95 @@
 			<member name="GNOME_DESKTOP_ITEM_TYPE_SERVICE" value="7"/>
 			<member name="GNOME_DESKTOP_ITEM_TYPE_SERVICE_TYPE" value="8"/>
 		</enum>
+		<object name="GnomeBG" parent="GObject" type-name="GnomeBG" get-type="gnome_bg_get_type">
+			<method name="changes_with_size" symbol="gnome_bg_changes_with_size">
+				<return-type type="gboolean"/>
+				<parameters>
+					<parameter name="img" type="GnomeBG*"/>
+				</parameters>
+			</method>
+			<method name="create_pixmap" symbol="gnome_bg_create_pixmap">
+				<return-type type="GdkPixmap*"/>
+				<parameters>
+					<parameter name="img" type="GnomeBG*"/>
+					<parameter name="window" type="GdkWindow*"/>
+					<parameter name="width" type="int"/>
+					<parameter name="height" type="int"/>
+					<parameter name="root" type="gboolean"/>
+				</parameters>
+			</method>
+			<method name="create_thumbnail" symbol="gnome_bg_create_thumbnail">
+				<return-type type="GdkPixbuf*"/>
+				<parameters>
+					<parameter name="bg" type="GnomeBG*"/>
+					<parameter name="factory" type="GnomeThumbnailFactory*"/>
+					<parameter name="screen" type="GdkScreen*"/>
+					<parameter name="dest_width" type="int"/>
+					<parameter name="dest_height" type="int"/>
+				</parameters>
+			</method>
+			<method name="draw" symbol="gnome_bg_draw">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="img" type="GnomeBG*"/>
+					<parameter name="dest" type="GdkPixbuf*"/>
+				</parameters>
+			</method>
+			<method name="get_image_size" symbol="gnome_bg_get_image_size">
+				<return-type type="gboolean"/>
+				<parameters>
+					<parameter name="bg" type="GnomeBG*"/>
+					<parameter name="factory" type="GnomeThumbnailFactory*"/>
+					<parameter name="width" type="int*"/>
+					<parameter name="height" type="int*"/>
+				</parameters>
+			</method>
+			<method name="is_dark" symbol="gnome_bg_is_dark">
+				<return-type type="gboolean"/>
+				<parameters>
+					<parameter name="img" type="GnomeBG*"/>
+				</parameters>
+			</method>
+			<constructor name="new" symbol="gnome_bg_new">
+				<return-type type="GnomeBG*"/>
+			</constructor>
+			<method name="set_color" symbol="gnome_bg_set_color">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="img" type="GnomeBG*"/>
+					<parameter name="type" type="GnomeBGColorType"/>
+					<parameter name="c1" type="GdkColor*"/>
+					<parameter name="c2" type="GdkColor*"/>
+				</parameters>
+			</method>
+			<method name="set_pixmap_as_root" symbol="gnome_bg_set_pixmap_as_root">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="screen" type="GdkScreen*"/>
+					<parameter name="pixmap" type="GdkPixmap*"/>
+				</parameters>
+			</method>
+			<method name="set_placement" symbol="gnome_bg_set_placement">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="img" type="GnomeBG*"/>
+					<parameter name="placement" type="GnomeBGPlacement"/>
+				</parameters>
+			</method>
+			<method name="set_uri" symbol="gnome_bg_set_uri">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="img" type="GnomeBG*"/>
+					<parameter name="uri" type="char*"/>
+				</parameters>
+			</method>
+			<signal name="changed" when="LAST">
+				<return-type type="void"/>
+				<parameters>
+					<parameter name="object" type="GnomeBG*"/>
+				</parameters>
+			</signal>
+		</object>
 		<object name="GnomeDItemEdit" parent="GtkNotebook" type-name="GnomeDItemEdit" get-type="gnome_ditem_edit_get_type">
 			<implements>
 				<interface name="AtkImplementor"/>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]