mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-17 03:44:53 +02:00
2008-11-26 Stephane Delcroix <sdelcroix@novell.com>
* gtk/Image.custom: * gtk/Gtk.metadata: obsolete Image.FromPixbuf, FromAnimation, FromFile setters in favor of already existing Pixbuf, Animation and File. svn path=/trunk/gtk-sharp/; revision=120096
This commit is contained in:
parent
346d4d685c
commit
6a9baad400
@ -1,3 +1,10 @@
|
|||||||
|
2008-11-26 Stephane Delcroix <sdelcroix@novell.com>
|
||||||
|
|
||||||
|
* gtk/Image.custom:
|
||||||
|
* gtk/Gtk.metadata: obsolete Image.FromPixbuf, FromAnimation,
|
||||||
|
FromFile setters in favor of already existing Pixbuf, Animation and
|
||||||
|
File.
|
||||||
|
|
||||||
2008-11-26 Mike Kestner <mkestner@novell.com>
|
2008-11-26 Mike Kestner <mkestner@novell.com>
|
||||||
|
|
||||||
* bootstrap-2.12: bump svn version.
|
* bootstrap-2.12: bump svn version.
|
||||||
|
@ -438,6 +438,9 @@
|
|||||||
<attr path="/api/namespace/object[@cname='GtkImage']/method[@name='GetPixmap']/*/*[@name='pixmap']" name="pass_as">out</attr>
|
<attr path="/api/namespace/object[@cname='GtkImage']/method[@name='GetPixmap']/*/*[@name='pixmap']" name="pass_as">out</attr>
|
||||||
<attr path="/api/namespace/object[@cname='GtkImage']/method[@name='GetPixmap']/*/*[@name='mask']" name="pass_as">out</attr>
|
<attr path="/api/namespace/object[@cname='GtkImage']/method[@name='GetPixmap']/*/*[@name='mask']" name="pass_as">out</attr>
|
||||||
<attr path="/api/namespace/object[@cname='GtkImage']/method[@name='GetStock']/*/*[@name='stock_id']" name="pass_as">out</attr>
|
<attr path="/api/namespace/object[@cname='GtkImage']/method[@name='GetStock']/*/*[@name='stock_id']" name="pass_as">out</attr>
|
||||||
|
<attr path="/api/namespace/object[@cname='GtkImage']/method[@name='SetFromAnimation']" name="name">SetAnimation</attr>
|
||||||
|
<attr path="/api/namespace/object[@cname='GtkImage']/method[@name='SetFromFile']" name="name">SetFile</attr>
|
||||||
|
<attr path="/api/namespace/object[@cname='GtkImage']/method[@name='SetFromPixbuf']" name="name">SetPixbuf</attr>
|
||||||
<attr path="/api/namespace/object[@cname='GtkIMContext']/signal[@name='DeleteSurrounding']" name="name">SurroundingDeleted</attr>
|
<attr path="/api/namespace/object[@cname='GtkIMContext']/signal[@name='DeleteSurrounding']" name="name">SurroundingDeleted</attr>
|
||||||
<attr path="/api/namespace/object[@cname='GtkIMContext']/method[@name='GetPreeditString']/*/*[@name='str']" name="pass_as">out</attr>
|
<attr path="/api/namespace/object[@cname='GtkIMContext']/method[@name='GetPreeditString']/*/*[@name='str']" name="pass_as">out</attr>
|
||||||
<attr path="/api/namespace/object[@cname='GtkIMContext']/method[@name='GetPreeditString']/*/*[@name='attrs']" name="pass_as">out</attr>
|
<attr path="/api/namespace/object[@cname='GtkIMContext']/method[@name='GetPreeditString']/*/*[@name='attrs']" name="pass_as">out</attr>
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
// Image.custom - Customizations to Gtk.Image
|
// Image.custom - Customizations to Gtk.Image
|
||||||
//
|
//
|
||||||
// Copyright (C) 2004 Novell, Inc.
|
// Authors: Mike Kestner <mkestner@novell.com>
|
||||||
|
// Authors: Stephane Delcroix <sdelcroix@novell.com>
|
||||||
|
//
|
||||||
|
// Copyright (c) 2004-2008 Novell, Inc.
|
||||||
//
|
//
|
||||||
// This program is free software; you can redistribute it and/or
|
// This program is free software; you can redistribute it and/or
|
||||||
// modify it under the terms of version 2 of the Lesser GNU General
|
// modify it under the terms of version 2 of the Lesser GNU General
|
||||||
@ -88,3 +91,28 @@
|
|||||||
{
|
{
|
||||||
return new Image (System.Reflection.Assembly.GetCallingAssembly (), resource);
|
return new Image (System.Reflection.Assembly.GetCallingAssembly (), resource);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Obsolete ("Use the Animation property instead")]
|
||||||
|
public Gdk.PixbufAnimation FromAnimation {
|
||||||
|
set {
|
||||||
|
gtk_image_set_from_animation(Handle, value == null ? IntPtr.Zero : value.Handle);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[Obsolete ("Use the File property instead")]
|
||||||
|
public string FromFile {
|
||||||
|
set {
|
||||||
|
IntPtr native_value = GLib.Marshaller.StringToPtrGStrdup (value);
|
||||||
|
gtk_image_set_from_file(Handle, native_value);
|
||||||
|
GLib.Marshaller.Free (native_value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[Obsolete ("Use the Pixbuf property instead")]
|
||||||
|
public Gdk.Pixbuf FromPixbuf {
|
||||||
|
set {
|
||||||
|
gtk_image_set_from_pixbuf(Handle, value == null ? IntPtr.Zero : value.Handle);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user