* sample/GtkDemo/DemoRotatedText.cs (RotatedTextExposeEvent): Use

Gdk.PangoRenderer.GetDefault() like the C gtk-demo rather than
	creating a new Gdk.PangoRenderer. [Fixes #74865]

	* gdk/Gdk.metadata: fix return type of Gdk.PangoRenderer.GetDefault

svn path=/trunk/gtk-sharp/; revision=45494
This commit is contained in:
Dan Winship 2005-06-06 14:40:46 +00:00
parent 91acc33335
commit 25e70f2a38
5 changed files with 17 additions and 4 deletions

View file

@ -1,3 +1,11 @@
2005-06-06 Dan Winship <danw@novell.com>
* sample/GtkDemo/DemoRotatedText.cs (RotatedTextExposeEvent): Use
Gdk.PangoRenderer.GetDefault() like the C gtk-demo rather than
creating a new Gdk.PangoRenderer. [Fixes #74865]
* gdk/Gdk.metadata: fix return type of Gdk.PangoRenderer.GetDefault
2005-06-02 Mike Kestner <mkestner@novell.com>
* gtk/gtk-api-2.6.raw : regen.

View file

@ -1,3 +1,7 @@
2005-06-06 Dan Winship <danw@novell.com>
* en/Gdk/PangoRenderer.xml: update return type of GetDefault
2005-06-01 Dan Winship <danw@novell.com>
* en/GLib/Value.xml: document the new string[] methods (and all of

View file

@ -17,10 +17,10 @@
</Interfaces>
<Members>
<Member MemberName="GetDefault">
<MemberSignature Language="C#" Value="public static Pango.Renderer GetDefault (Gdk.Screen screen);" />
<MemberSignature Language="C#" Value="public static Gdk.PangoRenderer GetDefault (Gdk.Screen screen);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>Pango.Renderer</ReturnType>
<ReturnType>Gdk.PangoRenderer</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="screen" Type="Gdk.Screen" />
@ -28,7 +28,7 @@
<Docs>
<summary>To be added</summary>
<param name="screen">a <see cref="T:Gdk.Screen" /></param>
<returns>a <see cref="T:Pango.Renderer" /></returns>
<returns>a <see cref="T:Gdk.PangoRenderer" /></returns>
<remarks>To be added</remarks>
</Docs>
</Member>

View file

@ -78,6 +78,7 @@
<attr path="/api/namespace/object[@cname='GdkImage']/field[@name='WindowingData']" name="access">private</attr>
<attr path="/api/namespace/object[@cname='GdkKeymap']/method[@name='GetEntriesForKeycode']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GdkKeymap']/method[@name='GetEntriesForKeyval']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GdkPangoRenderer']/method[@name='GetDefault']/return-type" name="type">GdkPangoRenderer*</attr>
<attr path="/api/namespace/object[@cname='GdkPixbuf']/constructor[@cname='gdk_pixbuf_new_from_data']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GdkPixbuf']/constructor[@cname='gdk_pixbuf_new_from_file']" name="preferred">1</attr>
<attr path="/api/namespace/object[@cname='GdkPixbuf']/constructor[@cname='gdk_pixbuf_new_from_inline']/*/*[@name='data']" name="array">1</attr>

View file

@ -36,7 +36,7 @@ namespace GtkDemo
double deviceRadius;
// Get the default renderer for the screen, and set it up for drawing
Gdk.PangoRenderer renderer = new Gdk.PangoRenderer (drawingArea.Screen);
Gdk.PangoRenderer renderer = Gdk.PangoRenderer.GetDefault (drawingArea.Screen);
renderer.Drawable = drawingArea.GdkWindow;
renderer.Gc = drawingArea.Style.BlackGC;