![]() |
![]() |
![]() |
![]() |
int | max-text-length | Write / Construct Only |
char * | original-filename | Write / Construct Only |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBox ╰── XfceFilenameInput
XfceFilenameInput implements AtkImplementorIface, GtkBuildable and GtkOrientable.
A widget to allow filename input for creating or renaming files, with as-you-type checking for invalid filenames.
const gchar *
xfce_filename_input_get_text (XfceFilenameInput *filename_input
);
Gets the current text of the widget.
Since: 4.16
void
xfce_filename_input_check (XfceFilenameInput *filename_input
);
Forces a check of the current input text even when it has not changed. This is useful to force the appropriate signal to be sent to indicate whether the text is a valid filename or not, so that for example any GtkWidgets whose sensitivity is controlled by this can be correctly updated when they are first created.
Since: 4.16
GtkEntry *
xfce_filename_input_get_entry (XfceFilenameInput *filename_input
);
Gets the GtkEntry associated to filename_input
Since: 4.16
void
xfce_filename_input_sensitise_widget (GtkWidget *widget
);
A convenience function to be connected as a callback for the "text-valid" signal (for example, using g_connect_swapped) for the simple case where the desired effect of this signal is to set the sensitivity of a single GtkWidget (for example, a GtkButton).
Since: 4.16
void
xfce_filename_input_desensitise_widget
(GtkWidget *widget
);
A convenience function to be connected as a callback for the "text-invalid" signal (for example, using g_connect_swapped) for the simple case where the desired effect of this signal is to set the sensitivity of a single GtkWidget (for example, a GtkButton).
Since: 4.16
“text-invalid”
signalvoid user_function (XfceFilenameInput *filename_input, gpointer user_data)
Signals that the current text is not a valid filename. This signal is emitted whenever the user changes the text and the result is not a valid filename.
Flags: Run Last
Since: 4.16
“text-valid”
signalvoid user_function (XfceFilenameInput *filename_input, gpointer user_data)
Signals that the current text is a valid filename. This signal is emitted whenever the user changes the text and the result is a valid filename.
Flags: Run Last
Since: 4.16