mirror of
https://gitlab.gnome.org/GNOME/eog
synced 2024-10-19 06:24:34 +00:00
c8b04c0b6e
2002-07-10 Jens Finke <jens@triq.net> Fixes #85690. * libeog/eog-file-selection.[ch]: New files. An extended GtkFileSelection dialog, which shows the list of supported file types. * libeog/Makefile.am (SOURCES): Added new files. * shell/eog-window.c (eog_window_open_dialog): Use new file selector. * viewer/eog-image-view.c (filesel_ok_cb): Removed. (save_image_as_file): New function. (filesel_cancel_cb): Removed. (verb_SaveAs_cb): Use new file selector.
44 lines
1.4 KiB
C
44 lines
1.4 KiB
C
#ifndef _EOG_FILE_SELECTION_H_
|
|
#define _EOG_FILE_SELECTION_H_
|
|
|
|
#include <gtk/gtkfilesel.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#define EOG_TYPE_FILE_SELECTION (eog_file_selection_get_type ())
|
|
#define EOG_FILE_SELECTION(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EOG_TYPE_FILE_SELECTION, EogFileSelection))
|
|
#define EOG_FILE_SELECTION_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), EOG_TYPE_FILE_SELECTION, EogFileSelectionClass))
|
|
|
|
#define EOG_IS_FILE_SELECTION(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EOG_TYPE_FILE_SELECTION))
|
|
#define EOG_IS_FILE_SELECTION_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EOG_TYPE_FILE_SELECTION))
|
|
#define EOG_FILE_SELECTION_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EOG_TYPE_FILE_SELECTION, EogFileSelectionClass))
|
|
|
|
typedef struct _EogFileSelection EogFileSelection;
|
|
typedef struct _EogFileSelectionClass EogFileSelectionClass;
|
|
typedef struct _EogFileSelectionPrivate EogFileSelectionPrivate;
|
|
|
|
typedef enum {
|
|
EOG_FILE_SELECTION_LOAD,
|
|
EOG_FILE_SELECTION_SAVE
|
|
} EogFileSelectionType;
|
|
|
|
struct _EogFileSelection {
|
|
GtkFileSelection parent_object;
|
|
|
|
EogFileSelectionPrivate *priv;
|
|
};
|
|
|
|
|
|
struct _EogFileSelectionClass {
|
|
GtkFileSelectionClass parent_object;
|
|
};
|
|
|
|
|
|
GtkType eog_file_selection_get_type (void) G_GNUC_CONST;
|
|
|
|
GtkWidget* eog_file_selection_new (EogFileSelectionType type);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* _EOG_FILE_SELECTION_H_ */
|