2002-06-24 20:38:48 +00:00
|
|
|
/* fileselection.c : Glue for accessing fields in the GtkFileSelection widget.
|
|
|
|
*
|
|
|
|
* Author: Duncan Mak (duncan@ximian.com)
|
|
|
|
*
|
|
|
|
* (C) Ximian, INc.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <gtk/gtkfilesel.h>
|
|
|
|
|
2003-03-22 17:37:43 +00:00
|
|
|
/* Forward declarations */
|
|
|
|
GtkWidget *gtksharp_file_selection_get_dir_list (GtkFileSelection *file);
|
|
|
|
|
|
|
|
GtkWidget *gtksharp_file_selection_get_file_list (GtkFileSelection *file);
|
|
|
|
|
|
|
|
GtkWidget *gtksharp_file_selection_get_selection_entry (GtkFileSelection *file);
|
|
|
|
|
|
|
|
GtkWidget *gtksharp_file_selection_get_selection_text (GtkFileSelection *file);
|
|
|
|
|
|
|
|
GtkWidget *gtksharp_file_selection_get_main_vbox (GtkFileSelection *file);
|
|
|
|
|
|
|
|
GtkWidget *gtksharp_file_selection_get_ok_button (GtkFileSelection *file);
|
|
|
|
|
|
|
|
GtkWidget *gtksharp_file_selection_get_cancel_button (GtkFileSelection *file);
|
|
|
|
|
|
|
|
GtkWidget *gtksharp_file_selection_get_help_button (GtkFileSelection *file);
|
|
|
|
|
|
|
|
GtkWidget *gtksharp_file_selection_get_history_pulldown (GtkFileSelection *file);
|
|
|
|
|
|
|
|
GtkWidget *gtksharp_file_selection_get_history_menu (GtkFileSelection *file);
|
|
|
|
|
|
|
|
GtkWidget *gtksharp_file_selection_get_fileop_dialog (GtkFileSelection *file);
|
|
|
|
|
|
|
|
GtkWidget *gtksharp_file_selection_get_fileop_entry (GtkFileSelection *file);
|
|
|
|
|
2003-05-29 Rachel Hestilow <rachel@nullenvoid.com>
* gconf/Value.cs: Update to use new string marshalling.
* generator/StringGen.cs, ConstStringGen.cs: Added.
* generator/IGeneratable.cs: Add new method ToNativeReturn.
* generator/CallbackGen.cs: Implement ToNativeReturn. Call
ToNativeReturn for the return statement. Fix a couple of
places where s_ret was being used incorrectly for m_ret.
* generator/ClassGen.cs, EnumGen.cs, ManualGen.cs,
SimpleGen.cs, StructBase.cs: Implement ToNativeReturn.
* generator/SignalHandler.cs: Call ToNativeReturn for the
return statement, instead of CallByName.
* generator/SymbolTable.cs: Use StringGen for gchar, char,
and gunichar, and ConstStringGen for their const variants.
Add a new method wrapper for ToNativeReturn.
(Trim): Add a special-case for const strings so that the
const is not stripped. Otherwise there is no way of
resolving the const case.
* glade/XML.custom: Update to use new string marshalling.
* glib/Marshaller.cs: Added.
* glib/GException.cs, Markup.cs, ObjectManager.cs,
Value.cs: Update to use new string marshalling.
* glib/Object.cs: Remove old g_type_name DllImport
as it is no longer used.
* glue/fileselection.c (gtksharp_file_selection_get_fileop_entry):
Mark this as const return.
* gtk/ColorSelection.custom, FileSelection.custom,
SelectionData.custom: Update to use new string marshalling.
svn path=/trunk/gtk-sharp/; revision=15286
2003-06-10 18:09:47 +00:00
|
|
|
const gchar *gtksharp_file_selection_get_fileop_file (GtkFileSelection *file);
|
2003-03-22 17:37:43 +00:00
|
|
|
|
|
|
|
GtkWidget *gtksharp_file_selection_get_fileop_c_dir (GtkFileSelection *file);
|
|
|
|
|
|
|
|
GtkWidget *gtksharp_file_selection_get_fileop_del_file (GtkFileSelection *file);
|
|
|
|
|
|
|
|
GtkWidget *gtksharp_file_selection_get_fileop_ren_file (GtkFileSelection *file);
|
|
|
|
|
|
|
|
GtkWidget *gtksharp_file_selection_get_button_area (GtkFileSelection *file);
|
|
|
|
|
|
|
|
GtkWidget *gtksharp_file_selection_get_action_area (GtkFileSelection *file);
|
|
|
|
/* */
|
|
|
|
|
2002-06-24 20:38:48 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2003-05-29 Rachel Hestilow <rachel@nullenvoid.com>
* gconf/Value.cs: Update to use new string marshalling.
* generator/StringGen.cs, ConstStringGen.cs: Added.
* generator/IGeneratable.cs: Add new method ToNativeReturn.
* generator/CallbackGen.cs: Implement ToNativeReturn. Call
ToNativeReturn for the return statement. Fix a couple of
places where s_ret was being used incorrectly for m_ret.
* generator/ClassGen.cs, EnumGen.cs, ManualGen.cs,
SimpleGen.cs, StructBase.cs: Implement ToNativeReturn.
* generator/SignalHandler.cs: Call ToNativeReturn for the
return statement, instead of CallByName.
* generator/SymbolTable.cs: Use StringGen for gchar, char,
and gunichar, and ConstStringGen for their const variants.
Add a new method wrapper for ToNativeReturn.
(Trim): Add a special-case for const strings so that the
const is not stripped. Otherwise there is no way of
resolving the const case.
* glade/XML.custom: Update to use new string marshalling.
* glib/Marshaller.cs: Added.
* glib/GException.cs, Markup.cs, ObjectManager.cs,
Value.cs: Update to use new string marshalling.
* glib/Object.cs: Remove old g_type_name DllImport
as it is no longer used.
* glue/fileselection.c (gtksharp_file_selection_get_fileop_entry):
Mark this as const return.
* gtk/ColorSelection.custom, FileSelection.custom,
SelectionData.custom: Update to use new string marshalling.
svn path=/trunk/gtk-sharp/; revision=15286
2003-06-10 18:09:47 +00:00
|
|
|
const gchar*
|
2002-06-24 20:38:48 +00:00
|
|
|
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;
|
|
|
|
}
|