From 20f7cd3d78eed20733bdd974fae5a8967a78f081 Mon Sep 17 00:00:00 2001 From: Stephane Delcroix Date: Fri, 27 Feb 2009 10:25:59 +0000 Subject: [PATCH] 2009-02-27 Stephane Delcroix * gdk/Gdk.metadata: * gdk/PixbufFormat.custom: * gdk/Makefile.am: deprecate IsDisabled in favor of the Disabled property svn path=/trunk/gtk-sharp/; revision=128194 --- ChangeLog | 7 +++++++ gdk/Gdk.metadata | 1 + gdk/Makefile.am | 1 + gdk/PixbufFormat.custom | 38 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 47 insertions(+) create mode 100644 gdk/PixbufFormat.custom diff --git a/ChangeLog b/ChangeLog index ed67d3726..109121063 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-02-27 Stephane Delcroix + + * gdk/Gdk.metadata: + * gdk/PixbufFormat.custom: + * gdk/Makefile.am: deprecate IsDisabled in favor of the Disabled + property + 2009-02-27 Stephane Delcroix * gdk/Gdk.metadata: fix GdkPixbufFormat mime_types and extensions diff --git a/gdk/Gdk.metadata b/gdk/Gdk.metadata index 43725a1d7..d8dd2b6c8 100644 --- a/gdk/Gdk.metadata +++ b/gdk/Gdk.metadata @@ -184,6 +184,7 @@ 1 1 1 + GetDisabled 1 1 1 diff --git a/gdk/Makefile.am b/gdk/Makefile.am index 7bc0a5afe..08f2a67d5 100644 --- a/gdk/Makefile.am +++ b/gdk/Makefile.am @@ -58,6 +58,7 @@ customs = \ Pixmap.custom \ Pixbuf.custom \ PixbufAnimation.custom \ + PixbufFormat.custom \ PixbufFrame.custom \ PixbufLoader.custom \ Pixdata.custom \ diff --git a/gdk/PixbufFormat.custom b/gdk/PixbufFormat.custom new file mode 100644 index 000000000..2c0c692d2 --- /dev/null +++ b/gdk/PixbufFormat.custom @@ -0,0 +1,38 @@ +/* + * PixbufFormat.custom: customization for PixbufFormat + * + * Author(s): + * Stephane Delcroix (stephane@delcroix.org) + * + * Copyright (c) 2009 Novell, Inc. + * + * + * Permission is hereby granted, free of charge, to any person obtaining + * a copy of this software and associated documentation files (the + * "Software"), to deal in the Software without restriction, including + * without limitation the rights to use, copy, modify, merge, publish, + * distribute, sublicense, and/or sell copies of the Software, and to + * permit persons to whom the Software is furnished to do so, subject to + * the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE + * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION + * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + */ + + [Obsolete("Use the Disabled property instead")] + public bool IsDisabled { + get { + bool raw_ret = gdk_pixbuf_format_is_disabled(Handle); + bool ret = raw_ret; + return ret; + } + }