diff --git a/ChangeLog b/ChangeLog index 078c5be95..840635297 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2002-07-11 Duncan Mak + + * glue/Makefile.am: Added dialog.c and colorseldialog.c + + * glue/dialog.c: + * gtk/Dialog.custom: C# glue for getting more fields from a GtkDialog. + + * glue/colorseldialog.c: + * gtk/ColorSelectionDialog.custom: C# glue for getting more fields + from a ColorSelectionDialog. + 2002-07-09 Mike Kestner * generator/ClassBase.cs : handle overloaded method hash collision diff --git a/glue/Makefile.am b/glue/Makefile.am index dfd1858ac..087374e9e 100644 --- a/glue/Makefile.am +++ b/glue/Makefile.am @@ -4,6 +4,8 @@ BASESOURCES = \ value.c \ textiter.c \ fileselection.c \ + dialog.c \ + colorseldialog.c \ error.c \ event.c \ slist.c diff --git a/glue/colorseldialog.c b/glue/colorseldialog.c new file mode 100644 index 000000000..9be1c1bd2 --- /dev/null +++ b/glue/colorseldialog.c @@ -0,0 +1,32 @@ +/* colorseldialog.c : Glue for accessing fields in the GtkColorSelectionDialog widget. + * + * Author: Duncan Mak (duncan@ximian.com) + * + * (C) Ximian, INc. + */ + +#include + +GtkWidget* +gtksharp_color_selection_dialog_get_colorsel (GtkColorSelectionDialog *dialog) +{ + return dialog->colorsel; +} + +GtkWidget* +gtksharp_color_selection_dialog_get_ok_button (GtkColorSelectionDialog *dialog) +{ + return dialog->ok_button; +} + +GtkWidget* +gtksharp_color_selection_dialog_get_cancel_button (GtkColorSelectionDialog *dialog) +{ + return dialog->cancel_button; +} + +GtkWidget* +gtksharp_color_selection_dialog_get_help_button (GtkColorSelectionDialog *dialog) +{ + return dialog->help_button; +} diff --git a/glue/dialog.c b/glue/dialog.c new file mode 100644 index 000000000..6d5da0c7a --- /dev/null +++ b/glue/dialog.c @@ -0,0 +1,20 @@ +/* dialog.c : Glue for accessing fields in the GtkDialog widget. + * + * Author: Duncan Mak (duncan@ximian.com) + * + * (C) Ximian, INc. + */ + +#include + +GtkWidget* +gtksharp_dialog_get_vbox (GtkDialog *dialog) +{ + return dialog->vbox; +} + +GtkWidget* +gtksharp_dialog_get_action_area (GtkDialog *dialog) +{ + return dialog->action_area; +} diff --git a/gtk/ColorSelectionDialog.custom b/gtk/ColorSelectionDialog.custom new file mode 100644 index 000000000..1f9a63e59 --- /dev/null +++ b/gtk/ColorSelectionDialog.custom @@ -0,0 +1,33 @@ +// +// Gtk.ColorSelectionDialog.custom - Gtk ColorSelectionDialog class customizations +// +// Author: Duncan Mak (duncan@ximian.com) +// +// Copyright (C) 2002 Ximian, Inc. +// +// This code is inserted after the automatically generated code. +// + +[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)); } +} + +[DllImport("gtksharpglue")] +static extern IntPtr gtksharp_color_selection_dialog_get_ok_button (IntPtr i); +public Gtk.Button OkButton { + get { return new Gtk.Button (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 Gtk.Button (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 Gtk.Button (gtksharp_color_selection_dialog_get_help_button (this.Handle)); } +} diff --git a/gtk/Dialog.custom b/gtk/Dialog.custom new file mode 100644 index 000000000..7f7e79c80 --- /dev/null +++ b/gtk/Dialog.custom @@ -0,0 +1,22 @@ +// +// Gtk.Dialog.custom - Gtk Dialog class customizations +// +// Author: Duncan Mak (duncan@ximian.com) +// +// Copyright (C) 2002 Ximian, Inc. +// +// This code is inserted after the automatically generated code. +// + +[DllImport("gtksharpglue")] +static extern IntPtr gtksharp_dialog_get_vbox (IntPtr i); +public Gtk.VBox VBox { + get { return new Gtk.VBox (gtksharp_dialog_get_vbox (this.Handle)); } +} + +[DllImport("gtksharpglue")] +static extern IntPtr gtksharp_dialog_get_action_area (IntPtr i); +public Gtk.VBox ActionArea { + get { return new Gtk.VBox (gtksharp_dialog_get_action_area (this.Handle)); } +} +