GNOME UI Library Reference Manual |
---|
#include <libgnomeui/libgnomeui.h> struct GnomeIconEntryPrivate; struct GnomeIconEntry; GtkWidget* gnome_icon_entry_new (const gchar *history_id, const gchar *browse_dialog_title); void gnome_icon_entry_construct (GnomeIconEntry *ientry, const gchar *history_id, const gchar *browse_dialog_title); void gnome_icon_entry_set_pixmap_subdir (GnomeIconEntry *ientry, const gchar *subdir); gchar* gnome_icon_entry_get_filename (GnomeIconEntry *ientry); gboolean gnome_icon_entry_set_filename (GnomeIconEntry *ientry, const gchar *filename); void gnome_icon_entry_set_browse_dialog_title (GnomeIconEntry *ientry, const gchar *browse_dialog_title); void gnome_icon_entry_set_history_id (GnomeIconEntry *ientry, const gchar *history_id); GtkWidget* gnome_icon_entry_pick_dialog (GnomeIconEntry *ientry); void gnome_icon_entry_set_icon (GnomeIconEntry *ientry, const gchar *filename); GtkWidget* gnome_icon_entry_gnome_file_entry (GnomeIconEntry *ientry); GtkWidget* gnome_icon_entry_gnome_entry (GnomeIconEntry *ientry); GtkWidget* gnome_icon_entry_gtk_entry (GnomeIconEntry *ientry);
GObject +----GtkObject +----GtkWidget +----GtkContainer +----GtkBox +----GtkVBox +----GnomeIconEntry
"browse-dialog-title" gchararray : Read / Write "filename" gchararray : Read / Write "history-id" gchararray : Read / Write "pick-dialog" GtkDialog : Read "pixmap-subdir" gchararray : Read / Write
"browse" void user_function (GnomeIconEntry *iconentry, gpointer user_data); "changed" void user_function (GnomeIconEntry *iconentry, gpointer user_data);
GtkWidget* gnome_icon_entry_new (const gchar *history_id, const gchar *browse_dialog_title);
Creates a new icon entry widget
history_id : | the id given to gnome_entry_new |
browse_dialog_title : | title of the browse dialog and icon selection dialog |
Returns : | Returns the new object |
void gnome_icon_entry_construct (GnomeIconEntry *ientry, const gchar *history_id, const gchar *browse_dialog_title);
For language bindings and subclassing, from C use gnome_icon_entry_new
ientry : | the GnomeIconEntry to work with |
history_id : | the id given to gnome_entry_new in the browse dialog |
browse_dialog_title : | title of the icon selection dialog |
void gnome_icon_entry_set_pixmap_subdir (GnomeIconEntry *ientry, const gchar *subdir);
Sets the subdirectory below gnome's default pixmap directory to use as the default path for the file entry. The path can also be an absolute one. If NULL is passed then the pixmap directory itself is used.
ientry : | the GnomeIconEntry to work with |
subdir : | subdirectory |
gchar* gnome_icon_entry_get_filename (GnomeIconEntry *ientry);
Gets the file name of the image if it was possible to load it into the preview. That is, it will only return a filename if the image exists and it was possible to load it as an image.
ientry : | the GnomeIconEntry to work with |
Returns : | a newly allocated string with the path or NULL if it couldn't load the file |
gboolean gnome_icon_entry_set_filename (GnomeIconEntry *ientry, const gchar *filename);
Sets the icon of GnomeIconEntry to be the one pointed to by filename (in the current subdirectory).
ientry : | the GnomeIconEntry to work with |
filename : | a filename |
Returns : | TRUE if icon was loaded ok, FALSE otherwise |
void gnome_icon_entry_set_browse_dialog_title (GnomeIconEntry *ientry, const gchar *browse_dialog_title);
Set the title of the browse dialog. It will not effect an existing dialog.
ientry : | the GnomeIconEntry to work with |
browse_dialog_title : | title of the icon selection dialog |
void gnome_icon_entry_set_history_id (GnomeIconEntry *ientry, const gchar *history_id);
Set the history_id of the entry in the browse dialog and reload the history
ientry : | the GnomeIconEntry to work with |
history_id : | the id given to gnome_entry_new in the browse dialog |
GtkWidget* gnome_icon_entry_pick_dialog (GnomeIconEntry *ientry);
If a pick dialog exists, return a pointer to it or return NULL. This is if you need to do something with all dialogs. You would use the browse signal with connect_after to get the pick dialog when it is displayed.
ientry : | the GnomeIconEntry to work with |
Returns : | The pick dialog or NULL if none exists |
void gnome_icon_entry_set_icon (GnomeIconEntry *ientry, const gchar *filename);
Deprecated in favour of gnome_icon_entry_set_filename
ientry : | the GnomeIconEntry to work with |
filename : | a filename |
GtkWidget* gnome_icon_entry_gnome_file_entry (GnomeIconEntry *ientry);
Get the GnomeFileEntry widget that's part of the entry DEPRECATED! Use the "changed" signal for getting changes
ientry : | the GnomeIconEntry to work with |
Returns : | Returns GnomeFileEntry widget |
GtkWidget* gnome_icon_entry_gnome_entry (GnomeIconEntry *ientry);
Get the GnomeEntry widget that's part of the entry DEPRECATED! Use the "changed" signal for getting changes
ientry : | the GnomeIconEntry to work with |
Returns : | Returns GnomeEntry widget |
GtkWidget* gnome_icon_entry_gtk_entry (GnomeIconEntry *ientry);
Get the GtkEntry widget that's part of the entry. DEPRECATED! Use the "changed" signal for getting changes
ientry : | the GnomeIconEntry to work with |
Returns : | Returns GtkEntry widget |
void user_function (GnomeIconEntry *iconentry, gpointer user_data);
iconentry : | the object which received the signal. |
user_data : | user data set when the signal handler was connected. |
void user_function (GnomeIconEntry *iconentry, gpointer user_data);
iconentry : | the object which received the signal. |
user_data : | user data set when the signal handler was connected. |
<<< GnomeHRef | GnomeIconList >>> |