From 31a519a4cd969b72f617386359cf3fe779f72eb8 Mon Sep 17 00:00:00 2001 From: Duncan Mak Date: Sun, 16 Mar 2003 00:08:18 +0000 Subject: [PATCH] * gtk/ColorSelectionDialog.custom: Rename the inner Button class to be ColorSelectionButton to avoid a name clash in the doc generator. * gtk/TextBuffer.custom: Fix the Text property. Patch from Mathias Hasselmann . svn path=/trunk/gtk-sharp/; revision=12572 --- gtk/ColorSelectionDialog.custom | 12 ++++++------ gtk/TextBuffer.custom | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gtk/ColorSelectionDialog.custom b/gtk/ColorSelectionDialog.custom index c9c71a51b..b00e85912 100644 --- a/gtk/ColorSelectionDialog.custom +++ b/gtk/ColorSelectionDialog.custom @@ -8,14 +8,14 @@ // This code is inserted after the automatically generated code. // -public class Button : Gtk.Button { +public class ColorSelectionButton : Gtk.Button { private ColorSelectionDialog color_sel; public ColorSelectionDialog ColorSelectionDialog { get { return color_sel; } } - public Button (ColorSelectionDialog cs, IntPtr raw) : base (raw) { + public ColorSelectionButton (ColorSelectionDialog cs, IntPtr raw) : base (raw) { color_sel = cs; } } @@ -23,23 +23,23 @@ public class Button : Gtk.Button { [DllImport("gtksharpglue")] static extern IntPtr gtksharp_color_selection_dialog_get_colorsel (IntPtr i); public Gtk.ColorSelection ColorSelection { - get { return new Gtk.ColorSelection (gtksharp_color_selection_dialog_get_colorsel (this.Handle)); } + get { return new ColorSelection (gtksharp_color_selection_dialog_get_colorsel (this.Handle)); } } [DllImport("gtksharpglue")] static extern IntPtr gtksharp_color_selection_dialog_get_ok_button (IntPtr i); public Gtk.Button OkButton { - get { return new Button (this, gtksharp_color_selection_dialog_get_ok_button (this.Handle)); } + get { return new ColorSelectionButton (this, gtksharp_color_selection_dialog_get_ok_button (this.Handle)); } } [DllImport("gtksharpglue")] static extern IntPtr gtksharp_color_selection_dialog_get_cancel_button (IntPtr i); public Gtk.Button CancelButton { - get { return new Button (this, gtksharp_color_selection_dialog_get_cancel_button (this.Handle)); } + get { return new ColorSelectionButton (this, gtksharp_color_selection_dialog_get_cancel_button (this.Handle)); } } [DllImport("gtksharpglue")] static extern IntPtr gtksharp_color_selection_dialog_get_help_button (IntPtr i); public Gtk.Button HelpButton { - get { return new Button (this, gtksharp_color_selection_dialog_get_help_button (this.Handle)); } + get { return new ColorSelectionButton (this, gtksharp_color_selection_dialog_get_help_button (this.Handle)); } } diff --git a/gtk/TextBuffer.custom b/gtk/TextBuffer.custom index bcca35058..25806d40a 100644 --- a/gtk/TextBuffer.custom +++ b/gtk/TextBuffer.custom @@ -5,7 +5,7 @@ public string Text { set { gtk_text_buffer_set_text (Handle, value, - System.Text.Encoding.Default.GetByteCount(value)); + System.Text.Encoding.UTF8.GetByteCount(value)); } }