HildonFileHandlingNote

HildonFileHandlingNote — Displaying the notification when a move operation is in progress.

Synopsis




GtkWidget*  hildon_file_handling_note_new_moving
                                            (GtkWindow *parent);
GtkWidget*  hildon_file_handling_note_new_deleting
                                            (GtkWindow *parent);
GtkWidget*  hildon_file_handling_note_new_opening
                                            (GtkWindow *parent);
GtkWidget*  hildon_file_handling_note_new_saving
                                            (GtkWindow *parent);
void        hildon_file_handling_note_set_fraction
                                            (HildonFileHandlingNote *note,
                                             gfloat frac);
void        hildon_file_handling_note_set_counter_and_name
                                            (HildonFileHandlingNote *note,
                                             guint current,
                                             guint maximum,
                                             const gchar *name);
void        hildon_file_handling_note_set_name
                                            (HildonFileHandlingNote *note,
                                             const gchar *name);

Description

This is the notification displayed when a move operation is in progress. The notification uses a progress bar to indicate the progress of the operation. For operation containing multiple items, a separe progress bar is shown for each item. The notification has a single button, which allows users to stop the move operation.


GtkWidget *file_note;
file_note = hildon_file_handling_note_new_moving (GTK_WINDOW (parent));

hildon_file_handling_note_set_fraction( 
						HILDON_FILE_HANDLING_NOTE (file_note), 0.7);
hildon_file_handling_note_set_counter_and_name (
						HILDON_FILE_HANDLING_NOTE (file_note), 1, 2, "bar.txt");

gtk_dialog_run( GTK_DIALOG( file_note ));
gtk_widget_destroy( GTK_WIDGET( file_note ));

Details

hildon_file_handling_note_new_moving ()

GtkWidget*  hildon_file_handling_note_new_moving
                                            (GtkWindow *parent);

Warning

hildon_file_handling_note_new_moving is deprecated and should not be used in newly-written code. use hildon-note instead of hildon-file-handling-note.

This function creates new dialog which is "moving" type.

parent : parent GtkWindow
Returns : a new HildonFileHandlingNote

hildon_file_handling_note_new_deleting ()

GtkWidget*  hildon_file_handling_note_new_deleting
                                            (GtkWindow *parent);

Warning

hildon_file_handling_note_new_deleting is deprecated and should not be used in newly-written code. use hildon-note instead of hildon-file-handling-note.

This function creates new dialog which is "deleting" type.

parent : parent GtkWindow
Returns : a new HildonFileHandlingNote

hildon_file_handling_note_new_opening ()

GtkWidget*  hildon_file_handling_note_new_opening
                                            (GtkWindow *parent);

Warning

hildon_file_handling_note_new_opening is deprecated and should not be used in newly-written code. use hildon-note instead of hildon-file-handling-note.

This function creates new dialog which is "opening" type

parent : parent GtkWindow
Returns : a new HildonFileHandlingNote

hildon_file_handling_note_new_saving ()

GtkWidget*  hildon_file_handling_note_new_saving
                                            (GtkWindow *parent);

Warning

hildon_file_handling_note_new_saving is deprecated and should not be used in newly-written code. use hildon-note instead of hildon-file-handling-note.

This function creates new dialog which is "saving" type.

parent : parent GtkWindow
Returns : a new HildonFileHandlingNote

hildon_file_handling_note_set_fraction ()

void        hildon_file_handling_note_set_fraction
                                            (HildonFileHandlingNote *note,
                                             gfloat frac);

Warning

hildon_file_handling_note_set_fraction is deprecated and should not be used in newly-written code. use hildon-note instead of hildon-file-handling-note.

This function sets fraction value for progress bar.

note : the HildonFileHandlingNote widget
frac : value for progress bar

hildon_file_handling_note_set_counter_and_name ()

void        hildon_file_handling_note_set_counter_and_name
                                            (HildonFileHandlingNote *note,
                                             guint current,
                                             guint maximum,
                                             const gchar *name);

Warning

hildon_file_handling_note_set_counter_and_name is deprecated and should not be used in newly-written code. use hildon-note instead of hildon-file-handling-note.

This function sets current counter value, maximum counter value and filename for dialog

note : the HildonFileHandlingNote widget
current : progress, current item being processed
maximum : maximum value for counter (number of items)
name : filename

hildon_file_handling_note_set_name ()

void        hildon_file_handling_note_set_name
                                            (HildonFileHandlingNote *note,
                                             const gchar *name);

Warning

hildon_file_handling_note_set_name is deprecated and should not be used in newly-written code. use hildon-note instead of hildon-file-handling-note.

This function sets the filename for dialog

note : the HildonFileHandlingNote widget
name : filename

See Also

HildonFileHandlingNote