Upstream patches
This commit is contained in:
parent
8134f48a5a
commit
7236eb3fa7
6 changed files with 17 additions and 31 deletions
|
@ -259,7 +259,7 @@ namespace Cairo {
|
||||||
NativeMethods.cairo_set_dash (handle, dashes, dashes.Length, offset);
|
NativeMethods.cairo_set_dash (handle, dashes, dashes.Length, offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Obsolete("Use GetSource/GetSource")]
|
[Obsolete("Use GetSource/SetSource")]
|
||||||
public Pattern Pattern {
|
public Pattern Pattern {
|
||||||
set {
|
set {
|
||||||
SetSource (value);
|
SetSource (value);
|
||||||
|
@ -270,7 +270,7 @@ namespace Cairo {
|
||||||
}
|
}
|
||||||
|
|
||||||
//This is obsolete because it wasn't obvious it needed to be disposed
|
//This is obsolete because it wasn't obvious it needed to be disposed
|
||||||
[Obsolete("Use GetSource/GetSource")]
|
[Obsolete("Use GetSource/SetSource")]
|
||||||
public Pattern Source {
|
public Pattern Source {
|
||||||
set {
|
set {
|
||||||
SetSource (value);
|
SetSource (value);
|
||||||
|
|
|
@ -78,23 +78,23 @@ namespace GtkSharp.Generation {
|
||||||
Console.Write ("gapi-codegen: ");
|
Console.Write ("gapi-codegen: ");
|
||||||
Console.WriteLine (e.Message);
|
Console.WriteLine (e.Message);
|
||||||
Console.WriteLine ("Try `gapi-codegen --help' for more information.");
|
Console.WriteLine ("Try `gapi-codegen --help' for more information.");
|
||||||
return 0;
|
return 64;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (show_help) {
|
if (show_help) {
|
||||||
ShowHelp (options);
|
ShowHelp (options);
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (filenames.Count == 0) {
|
if (filenames.Count == 0) {
|
||||||
Console.WriteLine ("You need to specify a file to process using the --generate option.");
|
Console.WriteLine ("You need to specify a file to process using the --generate option.");
|
||||||
Console.WriteLine ("Try `gapi-codegen --help' for more information.");
|
Console.WriteLine ("Try `gapi-codegen --help' for more information.");
|
||||||
return 0;
|
return 64;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (extra.Exists (v => { return v.StartsWith ("--customdir"); })) {
|
if (extra.Exists (v => { return v.StartsWith ("--customdir"); })) {
|
||||||
Console.WriteLine ("Using .custom files is not supported anymore, use partial classes instead.");
|
Console.WriteLine ("Using .custom files is not supported anymore, use partial classes instead.");
|
||||||
return 0;
|
return 64;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!String.IsNullOrEmpty (schema_name) && !File.Exists (schema_name)) {
|
if (!String.IsNullOrEmpty (schema_name) && !File.Exists (schema_name)) {
|
||||||
|
|
|
@ -110,23 +110,15 @@ namespace Gtk {
|
||||||
public Gtk.TreeIter AppendValues (Array values)
|
public Gtk.TreeIter AppendValues (Array values)
|
||||||
{
|
{
|
||||||
Gtk.TreeIter iter = Append();
|
Gtk.TreeIter iter = Append();
|
||||||
|
SetValues (iter, values);
|
||||||
int col = 0;
|
|
||||||
foreach (object value in values) {
|
|
||||||
if (value != null) {
|
|
||||||
GLib.Value val = new GLib.Value (value);
|
|
||||||
SetValue (iter, col, val);
|
|
||||||
val.Dispose ();
|
|
||||||
}
|
|
||||||
col++;
|
|
||||||
}
|
|
||||||
|
|
||||||
return iter;
|
return iter;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Gtk.TreeIter AppendValues (params object[] values)
|
public Gtk.TreeIter AppendValues (params object[] values)
|
||||||
{
|
{
|
||||||
return AppendValues ((Array) values);
|
Gtk.TreeIter iter = Append();
|
||||||
|
SetValues (iter, values);
|
||||||
|
return iter;
|
||||||
}
|
}
|
||||||
|
|
||||||
[DllImport (Global.GtkNativeDll, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport (Global.GtkNativeDll, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
|
|
@ -88,6 +88,7 @@ sources = \
|
||||||
StockManager.cs \
|
StockManager.cs \
|
||||||
Style.cs \
|
Style.cs \
|
||||||
StyleContext.cs \
|
StyleContext.cs \
|
||||||
|
StyleProviderPriority.cs \
|
||||||
Target.cs \
|
Target.cs \
|
||||||
TargetEntry.cs \
|
TargetEntry.cs \
|
||||||
TargetList.cs \
|
TargetList.cs \
|
||||||
|
|
|
@ -198,28 +198,21 @@ namespace Gtk {
|
||||||
val.Dispose ();
|
val.Dispose ();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void _AppendValues (Gtk.TreeIter iter, Array values) {
|
|
||||||
int col = 0;
|
|
||||||
foreach (object value in values) {
|
|
||||||
if (value != null)
|
|
||||||
SetValue (iter, col, value);
|
|
||||||
col++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public Gtk.TreeIter AppendValues (Gtk.TreeIter parent, Array values) {
|
public Gtk.TreeIter AppendValues (Gtk.TreeIter parent, Array values) {
|
||||||
Gtk.TreeIter iter = AppendNode (parent);
|
Gtk.TreeIter iter = AppendNode (parent);
|
||||||
_AppendValues (iter, values);
|
SetValues (iter, values);
|
||||||
return iter;
|
return iter;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Gtk.TreeIter AppendValues (Gtk.TreeIter parent, params object[] values) {
|
public Gtk.TreeIter AppendValues (Gtk.TreeIter parent, params object[] values) {
|
||||||
return AppendValues (parent, (Array) values);
|
Gtk.TreeIter iter = AppendNode (parent);
|
||||||
|
SetValues (iter, values);
|
||||||
|
return iter;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Gtk.TreeIter AppendValues (Array values) {
|
public Gtk.TreeIter AppendValues (Array values) {
|
||||||
Gtk.TreeIter iter = AppendNode ();
|
Gtk.TreeIter iter = AppendNode ();
|
||||||
_AppendValues (iter, values);
|
SetValues (iter, values);
|
||||||
return iter;
|
return iter;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
$private_regex = '^#if.*(ENABLE_BACKEND|ENABLE_ENGINE)';
|
$private_regex = '^#if.*(ENABLE_BACKEND|ENABLE_ENGINE)';
|
||||||
$eatit_regex = '^#if(.*(__cplusplus|DEBUG|DISABLE_COMPAT|ENABLE_BROKEN)|\s+0\s*$)';
|
$eatit_regex = '^#if(.*(__cplusplus|DEBUG|DISABLE_COMPAT|ENABLE_BROKEN)|\s+0\s*$)';
|
||||||
$ignoreit_regex = '^\s+\*|#ident|#error|#\s*include|#\s*import|#\s*else|#\s*undef|G_(BEGIN|END)_DECLS|GDKVAR|GTKVAR|GTKMAIN_C_VAR|GTKTYPEUTILS_VAR|VARIABLE|GTKTYPEBUILTIN|G_GNUC_INTERNAL';
|
$ignoreit_regex = '^\s+\*|#ident|#error|#\s*include|#\s*import|#\s*else|#\s*undef|G_(BEGIN|END)_DECLS|ATK_VAR|GDK_PIXBUF_VAR|GDKVAR|GTKVAR|GTKMAIN_C_VAR|GTKTYPEUTILS_VAR|VARIABLE|GTKTYPEBUILTIN|G_GNUC_INTERNAL';
|
||||||
|
|
||||||
foreach $arg (@ARGV) {
|
foreach $arg (@ARGV) {
|
||||||
if (-d $arg && -e $arg) {
|
if (-d $arg && -e $arg) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue