2002-06-24 Duncan Mak <duncan@ximian.com>
* glue/fileselection.c: New file, defines accessor functions to fields inside a GtkFileSelection. * gtk/FileSelection.custom: C# glue that makes use of new accessor functions defined in fileselection.c. * glue/Makefile.am: Added fileselection.c svn path=/trunk/gtk-sharp/; revision=5433
This commit is contained in:
parent
acc160cd01
commit
b10fe35ac0
4 changed files with 243 additions and 0 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
||||||
|
2002-06-24 Duncan Mak <duncan@ximian.com>
|
||||||
|
|
||||||
|
* glue/fileselection.c: New file, defines accessor functions to
|
||||||
|
fields inside a GtkFileSelection.
|
||||||
|
|
||||||
|
* gtk/FileSelection.custom: C# glue that makes use of new accessor
|
||||||
|
functions defined in fileselection.c.
|
||||||
|
|
||||||
|
* glue/Makefile.am: Added fileselection.c
|
||||||
|
|
||||||
2002-06-23 Rachel Hestilow <hestilow@ximian.com>
|
2002-06-23 Rachel Hestilow <hestilow@ximian.com>
|
||||||
|
|
||||||
* glib/Object.cs, glib/SList.cs, glib/Value.cs, gtk/Application.cs:
|
* glib/Object.cs, glib/SList.cs, glib/Value.cs, gtk/Application.cs:
|
||||||
|
|
|
@ -5,6 +5,7 @@ INCLUDES = $(GTK_CFLAGS) -I$(top_srcdir)
|
||||||
libgtksharpglue_la_SOURCES = \
|
libgtksharpglue_la_SOURCES = \
|
||||||
value.c \
|
value.c \
|
||||||
textiter.c \
|
textiter.c \
|
||||||
|
fileselection.c \
|
||||||
error.c \
|
error.c \
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
116
glue/fileselection.c
Normal file
116
glue/fileselection.c
Normal file
|
@ -0,0 +1,116 @@
|
||||||
|
/* fileselection.c : Glue for accessing fields in the GtkFileSelection widget.
|
||||||
|
*
|
||||||
|
* Author: Duncan Mak (duncan@ximian.com)
|
||||||
|
*
|
||||||
|
* (C) Ximian, INc.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <gtk/gtkfilesel.h>
|
||||||
|
|
||||||
|
GtkWidget*
|
||||||
|
gtksharp_file_selection_get_dir_list (GtkFileSelection *file)
|
||||||
|
{
|
||||||
|
return file->dir_list;
|
||||||
|
}
|
||||||
|
|
||||||
|
GtkWidget*
|
||||||
|
gtksharp_file_selection_get_file_list (GtkFileSelection *file)
|
||||||
|
{
|
||||||
|
return file->file_list;
|
||||||
|
}
|
||||||
|
|
||||||
|
GtkWidget*
|
||||||
|
gtksharp_file_selection_get_selection_entry (GtkFileSelection *file)
|
||||||
|
{
|
||||||
|
return file->selection_entry;
|
||||||
|
}
|
||||||
|
|
||||||
|
GtkWidget*
|
||||||
|
gtksharp_file_selection_get_selection_text (GtkFileSelection *file)
|
||||||
|
{
|
||||||
|
return file->selection_text;
|
||||||
|
}
|
||||||
|
|
||||||
|
GtkWidget*
|
||||||
|
gtksharp_file_selection_get_main_vbox (GtkFileSelection *file)
|
||||||
|
{
|
||||||
|
return file->main_vbox;
|
||||||
|
}
|
||||||
|
|
||||||
|
GtkWidget*
|
||||||
|
gtksharp_file_selection_get_ok_button (GtkFileSelection *file)
|
||||||
|
{
|
||||||
|
return file->ok_button;
|
||||||
|
}
|
||||||
|
|
||||||
|
GtkWidget*
|
||||||
|
gtksharp_file_selection_get_cancel_button (GtkFileSelection *file)
|
||||||
|
{
|
||||||
|
return file->cancel_button;
|
||||||
|
}
|
||||||
|
|
||||||
|
GtkWidget*
|
||||||
|
gtksharp_file_selection_get_help_button (GtkFileSelection *file)
|
||||||
|
{
|
||||||
|
return file->help_button;
|
||||||
|
}
|
||||||
|
|
||||||
|
GtkWidget*
|
||||||
|
gtksharp_file_selection_get_history_pulldown (GtkFileSelection *file)
|
||||||
|
{
|
||||||
|
return file->history_pulldown;
|
||||||
|
}
|
||||||
|
|
||||||
|
GtkWidget*
|
||||||
|
gtksharp_file_selection_get_history_menu (GtkFileSelection *file)
|
||||||
|
{
|
||||||
|
return file->history_menu;
|
||||||
|
}
|
||||||
|
|
||||||
|
GtkWidget*
|
||||||
|
gtksharp_file_selection_get_fileop_dialog (GtkFileSelection *file)
|
||||||
|
{
|
||||||
|
return file->fileop_dialog;
|
||||||
|
}
|
||||||
|
|
||||||
|
GtkWidget*
|
||||||
|
gtksharp_file_selection_get_fileop_entry (GtkFileSelection *file)
|
||||||
|
{
|
||||||
|
return file->fileop_entry;
|
||||||
|
}
|
||||||
|
|
||||||
|
gchar*
|
||||||
|
gtksharp_file_selection_get_fileop_file (GtkFileSelection *file)
|
||||||
|
{
|
||||||
|
return file->fileop_file;
|
||||||
|
}
|
||||||
|
|
||||||
|
GtkWidget*
|
||||||
|
gtksharp_file_selection_get_fileop_c_dir (GtkFileSelection *file)
|
||||||
|
{
|
||||||
|
return file->fileop_c_dir;
|
||||||
|
}
|
||||||
|
|
||||||
|
GtkWidget*
|
||||||
|
gtksharp_file_selection_get_fileop_del_file (GtkFileSelection *file)
|
||||||
|
{
|
||||||
|
return file->fileop_del_file;
|
||||||
|
}
|
||||||
|
|
||||||
|
GtkWidget*
|
||||||
|
gtksharp_file_selection_get_fileop_ren_file (GtkFileSelection *file)
|
||||||
|
{
|
||||||
|
return file->fileop_ren_file;
|
||||||
|
}
|
||||||
|
|
||||||
|
GtkWidget*
|
||||||
|
gtksharp_file_selection_get_button_area (GtkFileSelection *file)
|
||||||
|
{
|
||||||
|
return file->button_area;
|
||||||
|
}
|
||||||
|
|
||||||
|
GtkWidget*
|
||||||
|
gtksharp_file_selection_get_action_area (GtkFileSelection *file)
|
||||||
|
{
|
||||||
|
return file->action_area;
|
||||||
|
}
|
116
gtk/FileSelection.custom
Normal file
116
gtk/FileSelection.custom
Normal file
|
@ -0,0 +1,116 @@
|
||||||
|
tring//
|
||||||
|
// Gtk.FileSelection.custom - Gtk FileSelection 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_file_selection_get_dir_list (IntPtr i);
|
||||||
|
public Gtk.TreeView DirList {
|
||||||
|
get { return new Gtk.TreeView (gtksharp_file_selection_get_dir_list (this.Handle)); }
|
||||||
|
}
|
||||||
|
|
||||||
|
[DllImport("gtksharpglue")]
|
||||||
|
static extern IntPtr gtksharp_file_selection_get_file_list (IntPtr i);
|
||||||
|
public Gtk.TreeView FileList {
|
||||||
|
get { return new Gtk.TreeView (gtksharp_file_selection_get_file_list (this.Handle)); }
|
||||||
|
}
|
||||||
|
|
||||||
|
[DllImport("gtksharpglue")]
|
||||||
|
static extern IntPtr gtksharp_file_selection_get_selection_entry (IntPtr i);
|
||||||
|
public Gtk.Entry SelectionEntry {
|
||||||
|
get { return new Gtk.Entry (gtksharp_file_selection_get_file_list (this.Handle)); }
|
||||||
|
}
|
||||||
|
|
||||||
|
[DllImport("gtksharpglue")]
|
||||||
|
static extern IntPtr gtksharp_file_selection_get_selection_text (IntPtr i);
|
||||||
|
public Gtk.Label SelectionText {
|
||||||
|
get { return new Gtk.Label (gtksharp_file_selection_get_selection_text (this.Handle)); }
|
||||||
|
}
|
||||||
|
|
||||||
|
[DllImport("gtksharpglue")]
|
||||||
|
static extern IntPtr gtksharp_file_selection_get_ok_button (IntPtr i);
|
||||||
|
public Gtk.Button OkButton {
|
||||||
|
get { return new Gtk.Button (gtksharp_file_selection_get_ok_button (this.Handle)); }
|
||||||
|
}
|
||||||
|
|
||||||
|
[DllImport("gtksharpglue")]
|
||||||
|
static extern IntPtr gtksharp_file_selection_get_cancel_button (IntPtr i);
|
||||||
|
public Gtk.Button CancelButton {
|
||||||
|
get { return new Gtk.Button (gtksharp_file_selection_get_cancel_button (this.Handle)); }
|
||||||
|
}
|
||||||
|
|
||||||
|
[DllImport("gtksharpglue")]
|
||||||
|
static extern IntPtr gtksharp_file_selection_get_help_button (IntPtr i);
|
||||||
|
public Gtk.Button HelpButton {
|
||||||
|
get { return new Gtk.Button (gtksharp_file_selection_get_help_button (this.Handle)); }
|
||||||
|
}
|
||||||
|
|
||||||
|
[DllImport("gtksharpglue")]
|
||||||
|
static extern IntPtr gtksharp_file_selection_get_history_pulldown (IntPtr i);
|
||||||
|
public Gtk.OptionMenu HistoryPulldown {
|
||||||
|
get { return new Gtk.OptionMenu (gtksharp_file_selection_get_history_pulldown (this.Handle)); }
|
||||||
|
}
|
||||||
|
|
||||||
|
[DllImport("gtksharpglue")]
|
||||||
|
static extern IntPtr gtksharp_file_selection_get_history_menu (IntPtr i);
|
||||||
|
public Gtk.Menu HistoryMenu {
|
||||||
|
get { return new Gtk.Menu (gtksharp_file_selection_get_history_menu (this.Handle)); }
|
||||||
|
}
|
||||||
|
|
||||||
|
[DllImport("gtksharpglue")]
|
||||||
|
static extern IntPtr gtksharp_file_selection_get_fileop_dialog (IntPtr i);
|
||||||
|
public Gtk.MessageDialog FileopDialog {
|
||||||
|
get { return new Gtk.MessageDialog (gtksharp_file_selection_get_fileop_dialog (this.Handle)); }
|
||||||
|
}
|
||||||
|
|
||||||
|
[DllImport("gtksharpglue")]
|
||||||
|
static extern IntPtr gtksharp_file_selection_get_fileop_entry (IntPtr i);
|
||||||
|
public Gtk.Entry FileopEntry {
|
||||||
|
get { return new Gtk.Entry (gtksharp_file_selection_get_fileop_entry (this.Handle)); }
|
||||||
|
}
|
||||||
|
|
||||||
|
[DllImport("gtksharpglue", CallingConvention=CallingConvention.Cdecl)]
|
||||||
|
static extern string gtksharp_file_selection_get_fileop_file (IntPtr i);
|
||||||
|
public string FileopFile {
|
||||||
|
get {
|
||||||
|
return gtksharp_file_selection_get_fileop_file (this.Handle);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[DllImport("gtksharpglue")]
|
||||||
|
static extern IntPtr gtksharp_file_selection_get_fileop_c_dir (IntPtr i);
|
||||||
|
public Gtk.Button FileopCDir {
|
||||||
|
get { return new Gtk.Button (gtksharp_file_selection_get_fileop_c_dir(this.Handle)); }
|
||||||
|
}
|
||||||
|
|
||||||
|
[DllImport("gtksharpglue")]
|
||||||
|
static extern IntPtr gtksharp_file_selection_get_fileop_del_file (IntPtr i);
|
||||||
|
public Gtk.Button FileopDelFile {
|
||||||
|
get { return new Gtk.Button (gtksharp_file_selection_get_fileop_del_file (this.Handle)); }
|
||||||
|
}
|
||||||
|
|
||||||
|
[DllImport("gtksharpglue")]
|
||||||
|
static extern IntPtr gtksharp_file_selection_get_fileop_ren_file (IntPtr i);
|
||||||
|
public Gtk.Button FileopRenFile {
|
||||||
|
get { return new Gtk.Button (gtksharp_file_selection_get_fileop_ren_file (this.Handle)); }
|
||||||
|
}
|
||||||
|
|
||||||
|
[DllImport("gtksharpglue")]
|
||||||
|
static extern IntPtr gtksharp_file_selection_get_button_area (IntPtr i);
|
||||||
|
public Gtk.HButtonBox ButtonArea {
|
||||||
|
get { return new Gtk.HButtonBox (gtksharp_file_selection_get_button_area (this.Handle)); }
|
||||||
|
}
|
||||||
|
|
||||||
|
[DllImport("gtksharpglue")]
|
||||||
|
static extern IntPtr gtksharp_file_selection_get_action_area (IntPtr i);
|
||||||
|
public Gtk.HButtonBox ActionArea {
|
||||||
|
get { return new Gtk.HButtonBox (gtksharp_file_selection_get_action_area (this.Handle)); }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue