#include "rox-clib.h"
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include "gdk/gdkkeysyms.h"
#include "gtksavebox.h"
#include "gtk/gtkwidget.h"
#include "gtk/gtkalignment.h"
#include "gtk/gtkdnd.h"
#include "gtk/gtkbutton.h"
#include "gtk/gtksignal.h"
#include "gtk/gtkhbox.h"
#include "gtk/gtkhbbox.h"
#include "gtk/gtkeventbox.h"
#include "gtk/gtkentry.h"
#include "gtk/gtkmessagedialog.h"
#include "gtk/gtkhseparator.h"
#include "gtk/gtkvbox.h"
#include "gtk/gtkdialog.h"
#include "gtk/gtklabel.h"
#include "gtk/gtkimage.h"
#include "gtk/gtkstock.h"
#include "global.h"
#include "rox_path.h"
Functions | |
GType | gtk_savebox_get_type (void) |
GtkWidget * | gtk_savebox_new (const gchar *action) |
void | gtk_savebox_set_icon (GtkSavebox *savebox, GdkPixbuf *pixbuf) |
void | gtk_savebox_set_pathname (GtkSavebox *savebox, const gchar *pathname) |
void | gtk_savebox_set_has_discard (GtkSavebox *savebox, gboolean setting) |
GtkWidget * | gtk_savebox_get_extension_area (GtkSavebox *savebox) |
This version has been altered for inclusion in ROX-CLib. If it makes it into Gtk+ then it will be removed from ROX-CLib.
Behaviour:
NULL
URI),
NULL
URI,
To clarify: 'saved_to_uri' indicates that the save was successful. A NULL
URI just means that the data was saved to another application rather than a fixed address. Data should only be marked unmodified when saved_to_uri is called with a non-NULL
URI.
Discard is a bit like a successful save to a null device. The data should be discarded when saved_to_uri is called, whatever URI is set to.
Signals:
gint save_to_file (GtkSavebox *savebox, const gchar *pathname) Save the data to disk using this pathname. Return GTK_XDS_SAVED
on success, or GTK_XDS_SAVE_ERROR
on failure (and report the error to the user somehow). DO NOT mark the data unmodified or change the pathname for the file - this might be a scrap file transfer.
void saved_to_uri (GtkSavebox *savebox, const gchar *uri) The data is saved. If 'uri' is non-NULL
, mark the file as unmodified and update the pathname/uri for the file to the one given.
|
Return the extension area, a vbox just above the buttons where additional widgets may be placed.
|
|
|
|
Create and return a new GtkSavebox widget.
|
|
Set whether the discard area is show. Normally this is hidden but contains a single "Discard" button.
|
|
Set the icon used for dragging the file.
|
|
Set the initial path to show in the widget.
|