Description
Entry for large images with a preview. Unlike GnomeIconEntry, it does
not scale the images to a specific size and shows them 1:1. This is
perfect for selection of backgrounds and such. It also allows DND to
be performed on the preview box. It also provides all the GnomeEntry
functionality as well.
Details
gnome_pixmap_entry_new ()
GtkWidget* gnome_pixmap_entry_new (char *history_id,
char *browse_dialog_title,
int do_preview); |
Creates a new pixmap entry widget, if do_preview is false,
the preview is hidden but the files are still loaded so that it's easy
to show it. If you need a pixmap entry without the preview you just
use the GnomeFileEntry
gnome_pixmap_entry_set_pixmap_subdir ()
void gnome_pixmap_entry_set_pixmap_subdir
(GnomePixmapEntry *pentry,
const char *subdir); |
Sets the subdirectory below gnome's default
pixmap directory to use as the default path for the file
entry
gnome_pixmap_entry_gnome_file_entry ()
Get the GnomeFileEntry widget that's part of the entry
gnome_pixmap_entry_gnome_entry ()
Get the GnomeEntry widget that's part of the entry
gnome_pixmap_entry_gtk_entry ()
Get the GtkEntry widget that's part of the entry
gnome_pixmap_entry_set_preview ()
Sets if the preview should be shown or hidden, the files will
be loaded anyhow, so it doesn't make the thing any more faster
gnome_pixmap_entry_set_preview_size ()
void gnome_pixmap_entry_set_preview_size
(GnomePixmapEntry *pentry,
int preview_w,
int preview_h); |
Sets the minimum size of the preview frame
gnome_pixmap_entry_get_filename ()
Gets the file name of the image if it was possible
to load it into the preview