mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-09 08:23:19 +02:00
* stetic/wrapper/Image.cs: wrapper for Gtk.Images that show files
* stetic/wrapper/Icon.cs: wrapper for Gtk.Images that show stock icons * stetic/wrapper/SpinButton.cs: wrapper for Gtk.SpinButton * stetic/wrapper/Frame.cs: * stetic/wrapper/HBox.cs: * stetic/wrapper/HButtonBox.cs: * stetic/wrapper/HPaned.cs: * stetic/wrapper/VBox.cs: * stetic/wrapper/VButtonBox.cs: * stetic/wrapper/VPaned.cs: * stetic/wrapper/Table.cs: * stetic/wrapper/Window.cs: Implement IObjectWrapper on these (previously they just implemented IDesignTimeContainer) * stetic/wrapper/Box.cs: * stetic/wrapper/ButtonBox.cs: * stetic/wrapper/Paned.cs: static classes that define PropertyDescriptors used by their subclasses * stetic/wrapper/DefaultWidgets.cs: Update for new wrappers * stetic/editor/File.cs: editor for strings that represent filenames * stetic/Stetic.cs: Use Gnome.Program rather than Gtk.Application now, since we're using Gnome.FileEntry. svn path=/trunk/gtk-sharp/; revision=38501
This commit is contained in:
parent
994538e4f9
commit
5bc739ba5d
13
ChangeLog
13
ChangeLog
@ -1,3 +1,16 @@
|
||||
2005-01-07 Dan Winship <danw@novell.com>
|
||||
|
||||
* gtk/Gtk.metadata: Hide the Gtk.Image ctors generated from
|
||||
gtk_image_new_from_icon_set and gtk_image_new_from_stock.
|
||||
|
||||
* gtk/Image.custom: Implement them here, taking into account the
|
||||
fact that the "icon_size" property is mysteriously an int rather
|
||||
than a Gtk.IconSize.
|
||||
|
||||
* gtk/Makefile.am (customs): add Image.custom
|
||||
|
||||
* gtk/Gtk.metadata: gtk_window_set_focus accepts NULL
|
||||
|
||||
2005-01-06 Larry Ewing <lewing@novell.com>
|
||||
|
||||
* gtk/StockItem.custom: add a ctor for StockItem.
|
||||
|
@ -186,10 +186,9 @@
|
||||
<attr path="/api/namespace/object[@cname='GtkImageMenuItem']/constructor[@cname='gtk_image_menu_item_new_with_label']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkImage']/constructor[@cname='gtk_image_new_from_animation']/*/*[@name='animation']" name="property_name">pixbuf_animation</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkImage']/constructor[@cname='gtk_image_new_from_file']/*/*[@name='filename']" name="property_name">file</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkImage']/constructor[@cname='gtk_image_new_from_icon_set']/*/*[@name='icon_set']" name="property_name">icon_set</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkImage']/constructor[@cname='gtk_image_new_from_icon_set']/*/*[@name='size']" name="property_name">icon_size</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkImage']/constructor[@cname='gtk_image_new_from_stock']/*/*[@name='stock_id']" name="property_name">stock</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkImage']/constructor[@cname='gtk_image_new_from_stock']/*/*[@name='size']" name="property_name">icon_size</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkImage']/constructor[@cname='gtk_image_new_from_icon_set']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkImage']/constructor[@cname='gtk_image_new_from_stock']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkImage']/constructor[@cname='gtk_image_new_from_stock']/*/*[@name='size']" name="type">int</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkImage']/method[@name='GetIconSet']/*/*[@name='icon_set']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkImage']/method[@name='GetImage']/*/*[@name='gdk_image']" name="pass_as">out</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkImage']/method[@name='GetImage']/*/*[@name='mask']" name="pass_as">out</attr>
|
||||
@ -439,6 +438,7 @@
|
||||
<attr path="/api/namespace/object[@cname='GtkWindow']/method[@name='IsActive']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkWindow']/method[@name='ListToplevels']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkWindow']/method[@name='SetDefaultIconList']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkWindow']/method[@name='SetFocus']/*/*[@name='focus']" name="null_ok">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkWindow']/method[@name='SetIconList']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkWindow']/method[@name='SetTransientFor']/*/*[@name='parent']" name="null_ok">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkWindow']/property[@name='Screen']" name="new_flag">1</attr>
|
||||
|
54
gtk/Image.custom
Normal file
54
gtk/Image.custom
Normal file
@ -0,0 +1,54 @@
|
||||
// Image.custom - Customizations to Gtk.Image
|
||||
//
|
||||
// Copyright (C) 2004 Novell, Inc.
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or
|
||||
// modify it under the terms of version 2 of the Lesser GNU General
|
||||
// Public License as published by the Free Software Foundation.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this program; if not, write to the
|
||||
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
// Boston, MA 02111-1307, USA.
|
||||
|
||||
[DllImport("libgtk-win32-2.0-0.dll")]
|
||||
static extern IntPtr gtk_image_new_from_icon_set(IntPtr icon_set, int size);
|
||||
|
||||
public Image (Gtk.IconSet icon_set, Gtk.IconSize size) : base (IntPtr.Zero)
|
||||
{
|
||||
if (GetType () != typeof (Image)) {
|
||||
ArrayList vals = new ArrayList();
|
||||
ArrayList names = new ArrayList();
|
||||
names.Add ("icon_set");
|
||||
vals.Add (new GLib.Value (icon_set));
|
||||
names.Add ("icon_size");
|
||||
vals.Add (new GLib.Value ((int)size));
|
||||
CreateNativeObject ((string[])names.ToArray (typeof (string)), (GLib.Value[])vals.ToArray (typeof (GLib.Value)));
|
||||
return;
|
||||
}
|
||||
Raw = gtk_image_new_from_icon_set(icon_set.Handle, (int) size);
|
||||
}
|
||||
|
||||
[DllImport("libgtk-win32-2.0-0.dll")]
|
||||
static extern IntPtr gtk_image_new_from_stock(string stock_id, int size);
|
||||
|
||||
public Image (string stock_id, Gtk.IconSize size) : base (IntPtr.Zero)
|
||||
{
|
||||
if (GetType () != typeof (Image)) {
|
||||
ArrayList vals = new ArrayList();
|
||||
ArrayList names = new ArrayList();
|
||||
names.Add ("stock");
|
||||
vals.Add (new GLib.Value (stock_id));
|
||||
names.Add ("icon_size");
|
||||
vals.Add (new GLib.Value ((int)size));
|
||||
CreateNativeObject ((string[])names.ToArray (typeof (string)), (GLib.Value[])vals.ToArray (typeof (GLib.Value)));
|
||||
return;
|
||||
}
|
||||
Raw = gtk_image_new_from_stock(stock_id, (int) size);
|
||||
}
|
||||
|
@ -67,6 +67,7 @@ customs = \
|
||||
IconFactory.custom \
|
||||
IconSet.custom \
|
||||
IconTheme.custom \
|
||||
Image.custom \
|
||||
ImageMenuItem.custom \
|
||||
Init.custom \
|
||||
InputDialog.custom \
|
||||
|
Loading…
Reference in New Issue
Block a user