* gtk/Gtk.metadata: Hide StyleGetProperty and StyleGetValist since
they're generated wrong, and StyleGet to avoid an ellipsis warning. (Also hide the deprecated ellipsis method "Set".) * gtk/Widget.custom (StyleGetProperty): implement manually, a la Gtk.Container.ChildGetProperty. * gtk/glue/widget.c (gtksharp_widget_style_get_property): glue for that svn path=/trunk/gtk-sharp/; revision=40481
This commit is contained in:
parent
053248d566
commit
311cda7be0
6 changed files with 43 additions and 28 deletions
|
@ -1,5 +1,14 @@
|
||||||
2005-02-11 Dan Winship <danw@novell.com>
|
2005-02-11 Dan Winship <danw@novell.com>
|
||||||
|
|
||||||
|
* gtk/Gtk.metadata: Hide StyleGetProperty and StyleGetValist since
|
||||||
|
they're generated wrong, and StyleGet to avoid an ellipsis
|
||||||
|
warning. (Also hide the deprecated ellipsis method "Set".)
|
||||||
|
|
||||||
|
* gtk/Widget.custom (StyleGetProperty): implement manually, a la
|
||||||
|
Gtk.Container.ChildGetProperty.
|
||||||
|
|
||||||
|
* gtk/glue/widget.c (gtksharp_widget_style_get_property): glue for that
|
||||||
|
|
||||||
* generator/MethodBase.cs (Validate): use CName rather than always
|
* generator/MethodBase.cs (Validate): use CName rather than always
|
||||||
saying "in ctor"
|
saying "in ctor"
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
2005-02-11 Dan Winship <danw@novell.com>
|
||||||
|
|
||||||
|
* en/Gtk/Widget.xml (StyleGetValist, StyleGetProperty): update
|
||||||
|
|
||||||
2005-02-07 Ben Maurer <bmaurer@ximian.com>
|
2005-02-07 Ben Maurer <bmaurer@ximian.com>
|
||||||
|
|
||||||
* en/Gdk/Point.xml, en/Gdk/Rectangle.xml: Document new
|
* en/Gdk/Point.xml, en/Gdk/Rectangle.xml: Document new
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Type Name="Widget" FullName="Gtk.Widget">
|
<Type Name="Widget" FullName="Gtk.Widget">
|
||||||
<TypeSignature Language="C#" Value="public class Widget : Gtk.Object, Implementor, IWrapper, IWrapper, IDisposable" Maintainer="Hector Gomez M" />
|
<TypeSignature Language="C#" Value="public class Widget : Gtk.Object, Implementor, IWrapper, IWrapper, IDisposable" Maintainer="Hector Gomez M" />
|
||||||
<AssemblyInfo>
|
<AssemblyInfo>
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
Style properties are set in resource files. This mechanism is used for configuring such things as the location of the scrollbar arrows through the theme, giving theme authors more control over the look of applications without the need to write a theme engine in C.
|
Style properties are set in resource files. This mechanism is used for configuring such things as the location of the scrollbar arrows through the theme, giving theme authors more control over the look of applications without the need to write a theme engine in C.
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
Use <see cref="M:Gtk.Widget.StyleGetProperty" />, <see cref="P:Gtk.Widget.Style" /> or <see cref="M:Gtk.Widget.StyleGetValist" /> to obtain the value of a style property.
|
Use <see cref="M:Gtk.Widget.StyleGetProperty" /> to obtain the value of a style property.
|
||||||
</para>
|
</para>
|
||||||
</remarks>
|
</remarks>
|
||||||
</Docs><Base>
|
</Docs><Base>
|
||||||
|
@ -312,27 +312,6 @@
|
||||||
</remarks>
|
</remarks>
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
<Member MemberName="StyleGetValist">
|
|
||||||
<MemberSignature Language="C#" Value="public void StyleGetValist (string first_property_name, IntPtr var_args);" />
|
|
||||||
<MemberType>Method</MemberType>
|
|
||||||
<ReturnValue>
|
|
||||||
<ReturnType>System.Void</ReturnType>
|
|
||||||
</ReturnValue>
|
|
||||||
<Parameters>
|
|
||||||
<Parameter Name="first_property_name" Type="System.String" />
|
|
||||||
<Parameter Name="var_args" Type="System.IntPtr" />
|
|
||||||
</Parameters>
|
|
||||||
<Docs>
|
|
||||||
<summary>Gets the values of a multiple style properties of <paramref name="widgets" />.</summary>
|
|
||||||
<param name="first_property_name">The name of the first property to get.</param>
|
|
||||||
<param name="var_args">A va_list of pairs of property names and locations to return the property values, starting with the location for <paramref name="first_property_name" />.</param>
|
|
||||||
<remarks>
|
|
||||||
<para>
|
|
||||||
Gets the values of a multiple style properties of <paramref name="widget" />. Used primarily by language bindings.
|
|
||||||
</para>
|
|
||||||
</remarks>
|
|
||||||
</Docs>
|
|
||||||
</Member>
|
|
||||||
<Member MemberName="ShowAll">
|
<Member MemberName="ShowAll">
|
||||||
<MemberSignature Language="C#" Value="public void ShowAll ();" />
|
<MemberSignature Language="C#" Value="public void ShowAll ();" />
|
||||||
<MemberType>Method</MemberType>
|
<MemberType>Method</MemberType>
|
||||||
|
@ -2602,19 +2581,17 @@ handle focus grabs.</returns>
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
<Member MemberName="StyleGetProperty">
|
<Member MemberName="StyleGetProperty">
|
||||||
<MemberSignature Language="C#" Value="public void StyleGetProperty (string property_name, GLib.Value value);" />
|
<MemberSignature Language="C#" Value="public object StyleGetProperty (string property_name);" />
|
||||||
<MemberType>Method</MemberType>
|
<MemberType>Method</MemberType>
|
||||||
<ReturnValue>
|
<ReturnValue>
|
||||||
<ReturnType>System.Void</ReturnType>
|
<ReturnType>System.Object</ReturnType>
|
||||||
</ReturnValue>
|
</ReturnValue>
|
||||||
<Parameters>
|
<Parameters>
|
||||||
<Parameter Name="property_name" Type="System.String" />
|
<Parameter Name="property_name" Type="System.String" />
|
||||||
<Parameter Name="value" Type="GLib.Value" />
|
|
||||||
</Parameters>
|
</Parameters>
|
||||||
<Docs>
|
<Docs>
|
||||||
<summary>Obtains the value of a style property of <paramref name="widget" />.</summary>
|
<summary>Obtains the value of a style property of <paramref name="widget" />.</summary>
|
||||||
<param name="property_name">The name of a style property.</param>
|
<param name="property_name">The name of a style property.</param>
|
||||||
<param name="value">Location to return the property value.</param>
|
|
||||||
<remarks />
|
<remarks />
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
|
|
|
@ -417,8 +417,13 @@
|
||||||
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='SetEvents']/*/*[@type='gint']" name="type">GdkEventMask</attr>
|
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='SetEvents']/*/*[@type='gint']" name="type">GdkEventMask</attr>
|
||||||
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='ModifyFont']/parameters/parameter[@type='PangoFontDescription*']" name="null_ok">1</attr>
|
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='ModifyFont']/parameters/parameter[@type='PangoFontDescription*']" name="null_ok">1</attr>
|
||||||
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='SetScrollAdjustments']/*/*[@type='GtkAdjustment*']" name="null_ok">1</attr>
|
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='SetScrollAdjustments']/*/*[@type='GtkAdjustment*']" name="null_ok">1</attr>
|
||||||
|
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='Set']" name="hidden">1</attr>
|
||||||
|
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='SetState']" name="hidden">1</attr>
|
||||||
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='SetStyle']/*/*[@type='GtkStyle*']" name="null_ok">1</attr>
|
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='SetStyle']/*/*[@type='GtkStyle*']" name="null_ok">1</attr>
|
||||||
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='SizeRequest']/*/*[@name='requisition']" name="pass_as">out</attr>
|
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='SizeRequest']/*/*[@name='requisition']" name="pass_as">out</attr>
|
||||||
|
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='StyleGet']" name="hidden">1</attr>
|
||||||
|
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='StyleGetProperty']" name="hidden">1</attr>
|
||||||
|
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='StyleGetValist']" name="hidden">1</attr>
|
||||||
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='Unref']" name="hidden">1</attr>
|
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='Unref']" name="hidden">1</attr>
|
||||||
<attr path="/api/namespace/object[@cname='GtkWidget']/signal[@name='CanActivateAccel']" name="name">AccelCanActivate</attr>
|
<attr path="/api/namespace/object[@cname='GtkWidget']/signal[@name='CanActivateAccel']" name="name">AccelCanActivate</attr>
|
||||||
<attr path="/api/namespace/object[@cname='GtkWidget']/signal[@name='ChildNotify']" name="name">ChildNotified</attr>
|
<attr path="/api/namespace/object[@cname='GtkWidget']/signal[@name='ChildNotify']" name="name">ChildNotified</attr>
|
||||||
|
@ -436,7 +441,6 @@
|
||||||
<attr path="/api/namespace/object[@cname='GtkWidget']/signal[@name='SizeRequested']/*/*[@name='requisition']" name="pass_as">ref</attr>
|
<attr path="/api/namespace/object[@cname='GtkWidget']/signal[@name='SizeRequested']/*/*[@name='requisition']" name="pass_as">ref</attr>
|
||||||
<attr path="/api/namespace/object[@cname='GtkWidget']/signal[@name='Unmap']" name="name">Unmapped</attr>
|
<attr path="/api/namespace/object[@cname='GtkWidget']/signal[@name='Unmap']" name="name">Unmapped</attr>
|
||||||
<attr path="/api/namespace/object[@cname='GtkWidget']/signal[@name='Unrealize']" name="name">Unrealized</attr>
|
<attr path="/api/namespace/object[@cname='GtkWidget']/signal[@name='Unrealize']" name="name">Unrealized</attr>
|
||||||
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='SetState']" name="hidden">1</attr>
|
|
||||||
<attr path="/api/namespace/object[@cname='GtkWindow']/method[@name='GetDefaultIconList']" name="hidden">1</attr>
|
<attr path="/api/namespace/object[@cname='GtkWindow']/method[@name='GetDefaultIconList']" name="hidden">1</attr>
|
||||||
<attr path="/api/namespace/object[@cname='GtkWindow']/method[@name='GetDefaultSize']/*/*[@type='gint*']" name="pass_as">out</attr>
|
<attr path="/api/namespace/object[@cname='GtkWindow']/method[@name='GetDefaultSize']/*/*[@type='gint*']" name="pass_as">out</attr>
|
||||||
<attr path="/api/namespace/object[@cname='GtkWindow']/method[@name='GetIconList']" name="hidden">1</attr>
|
<attr path="/api/namespace/object[@cname='GtkWindow']/method[@name='GetIconList']" name="hidden">1</attr>
|
||||||
|
|
|
@ -294,3 +294,15 @@ static void ClassInit (GLib.GType gtype, Type t)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[DllImport("gtksharpglue-2")]
|
||||||
|
static extern void gtksharp_widget_style_get_property (IntPtr widget, string property, ref GLib.Value value);
|
||||||
|
|
||||||
|
public object StyleGetProperty (string property_name) {
|
||||||
|
GLib.Value value = new GLib.Value ();
|
||||||
|
object ret;
|
||||||
|
|
||||||
|
gtksharp_widget_style_get_property (Handle, property_name, ref value);
|
||||||
|
ret = value.Val;
|
||||||
|
value.Dispose ();
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
|
@ -38,6 +38,7 @@ void gtksharp_gtk_widget_set_flags (GtkWidget *widget, int flags);
|
||||||
int gtksharp_gtk_widget_style_get_int (GtkWidget *widget, const char *name);
|
int gtksharp_gtk_widget_style_get_int (GtkWidget *widget, const char *name);
|
||||||
void gtksharp_widget_add_binding_signal (GType gtype, const char *sig_name, GCallback cb);
|
void gtksharp_widget_add_binding_signal (GType gtype, const char *sig_name, GCallback cb);
|
||||||
void gtksharp_widget_register_binding (GType gtype, const char *sig_name, guint key, int mod, gpointer data);
|
void gtksharp_widget_register_binding (GType gtype, const char *sig_name, guint key, int mod, gpointer data);
|
||||||
|
void gtksharp_widget_style_get_property (GtkWidget *widget, const gchar* property, GValue *value);
|
||||||
/* */
|
/* */
|
||||||
|
|
||||||
GdkRectangle*
|
GdkRectangle*
|
||||||
|
@ -160,3 +161,11 @@ gtksharp_widget_register_binding (GType gtype, const gchar *signame, guint key,
|
||||||
gtk_binding_entry_add_signal (set, key, mod, signame, 1, G_TYPE_LONG, data);
|
gtk_binding_entry_add_signal (set, key, mod, signame, 1, G_TYPE_LONG, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
gtksharp_widget_style_get_property (GtkWidget *widget, const gchar* property, GValue *value)
|
||||||
|
{
|
||||||
|
GParamSpec *spec = gtk_widget_class_find_style_property (GTK_WIDGET_GET_CLASS (widget), property);
|
||||||
|
g_value_init (value, spec->value_type);
|
||||||
|
gtk_widget_style_get_property (widget, property, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue