2002-07-11 Duncan Mak <duncan@ximian.com>
* 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. svn path=/trunk/gtk-sharp/; revision=5699
This commit is contained in:
parent
79e7514057
commit
c5f678926c
6 changed files with 120 additions and 0 deletions
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,14 @@
|
||||||
|
2002-07-11 Duncan Mak <duncan@ximian.com>
|
||||||
|
|
||||||
|
* 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 <mkestner@speakeasy.net>
|
2002-07-09 Mike Kestner <mkestner@speakeasy.net>
|
||||||
|
|
||||||
* generator/ClassBase.cs : handle overloaded method hash collision
|
* generator/ClassBase.cs : handle overloaded method hash collision
|
||||||
|
|
|
@ -4,6 +4,8 @@ BASESOURCES = \
|
||||||
value.c \
|
value.c \
|
||||||
textiter.c \
|
textiter.c \
|
||||||
fileselection.c \
|
fileselection.c \
|
||||||
|
dialog.c \
|
||||||
|
colorseldialog.c \
|
||||||
error.c \
|
error.c \
|
||||||
event.c \
|
event.c \
|
||||||
slist.c
|
slist.c
|
||||||
|
|
32
glue/colorseldialog.c
Normal file
32
glue/colorseldialog.c
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
/* colorseldialog.c : Glue for accessing fields in the GtkColorSelectionDialog widget.
|
||||||
|
*
|
||||||
|
* Author: Duncan Mak (duncan@ximian.com)
|
||||||
|
*
|
||||||
|
* (C) Ximian, INc.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <gtk/gtkcolorseldialog.h>
|
||||||
|
|
||||||
|
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;
|
||||||
|
}
|
20
glue/dialog.c
Normal file
20
glue/dialog.c
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
/* dialog.c : Glue for accessing fields in the GtkDialog widget.
|
||||||
|
*
|
||||||
|
* Author: Duncan Mak (duncan@ximian.com)
|
||||||
|
*
|
||||||
|
* (C) Ximian, INc.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <gtk/gtkdialog.h>
|
||||||
|
|
||||||
|
GtkWidget*
|
||||||
|
gtksharp_dialog_get_vbox (GtkDialog *dialog)
|
||||||
|
{
|
||||||
|
return dialog->vbox;
|
||||||
|
}
|
||||||
|
|
||||||
|
GtkWidget*
|
||||||
|
gtksharp_dialog_get_action_area (GtkDialog *dialog)
|
||||||
|
{
|
||||||
|
return dialog->action_area;
|
||||||
|
}
|
33
gtk/ColorSelectionDialog.custom
Normal file
33
gtk/ColorSelectionDialog.custom
Normal file
|
@ -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)); }
|
||||||
|
}
|
22
gtk/Dialog.custom
Normal file
22
gtk/Dialog.custom
Normal file
|
@ -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)); }
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue