(G_TYPE_INSTANCE_GET_PRIVATE ((obj), \
HILDON_TYPE_FILE_HANDLING_NOTE, HildonFileHandlingNotePrivate));
-static HildonNote *parent_class;
-
typedef struct _HildonFileHandlingNotePrivate
HildonFileHandlingNotePrivate;
+struct _HildonFileHandlingNotePrivate {
+ guint note_type;
+};
+
+#ifndef HILDON_DISABLE_DEPRECATED
+
+static HildonNote *parent_class;
+
+
+/* standard forbids empty source file, therefore the ifdef must be
+ placed here. */
static void
hildon_file_handling_note_class_init(HildonFileHandlingNoteClass * class);
static void hildon_file_handling_note_finalize(GObject * obj_self);
-struct _HildonFileHandlingNotePrivate {
- guint note_type;
-};
GType hildon_file_handling_note_get_type()
* @name: Filename
*
* This function sets current counter value, maximum
- * counter value and filename for dialog
+ * counter value and filename for dialog
+ * DEPRECATED: use hildon-note instead of hildon-file-handling-note.
*/
void hildon_file_handling_note_set_counter_and_name(HildonFileHandlingNote
* note, guint current,
* @name: Filename
*
* This function sets filename for dialog
+ * DEPRECATED: use hildon-note instead of hildon-file-handling-note.
*/
void hildon_file_handling_note_set_name(HildonFileHandlingNote * note,
const gchar * name)
* This function sets fraction value for
* progress bar.
+ * DEPRECATED: use hildon-note instead of hildon-file-handling-note.
*/
void hildon_file_handling_note_set_fraction(HildonFileHandlingNote * note,
gfloat frac)
* which is "moving" type.
*
* Return value: a new #HildonFileHandlingNote.
+ * DEPRECATED: use hildon-note instead of hildon-file-handling-note.
*/
GtkWidget *hildon_file_handling_note_new_moving(GtkWindow * parent)
{
file_note = g_object_new(HILDON_TYPE_FILE_HANDLING_NOTE,
"note_type", HILDON_NOTE_PROGRESSBAR_TYPE,
- "description", _("Moving..."),
+ "description", _("sfil_nw_moving_file"),
"progressbar", progbar, NULL);
priv = HILDON_FILE_HANDLING_NOTE_GET_PRIVATE(file_note);
* which is "deleting" type.
*
* Return value: a new #HildonFileHandlingNote.
+ * DEPRECATED: use hildon-note instead of hildon-file-handling-note.
*/
GtkWidget *hildon_file_handling_note_new_deleting(GtkWindow * parent)
{
file_note = g_object_new(HILDON_TYPE_FILE_HANDLING_NOTE,
"note_type", HILDON_NOTE_PROGRESSBAR_TYPE,
- "description", _("Deleting..."),
+ "description", _("docm_nw_deleting_file"),
"progressbar", progbar, NULL);
priv = HILDON_FILE_HANDLING_NOTE_GET_PRIVATE(file_note);
* which is "opening" type
*
* Return value: a new #HildonFileHandlingNote.
+ * DEPRECATED: use hildon-note instead of hildon-file-handling-note.
*/
GtkWidget *hildon_file_handling_note_new_opening(GtkWindow * parent)
{
file_note = g_object_new(HILDON_TYPE_FILE_HANDLING_NOTE,
"note_type", HILDON_NOTE_PROGRESSBAR_TYPE,
- "description", _("Opening..."),
+ "description", _("docm_nw_opening_file"),
"progressbar", progbar, NULL);
priv = HILDON_FILE_HANDLING_NOTE_GET_PRIVATE(file_note);
* which is "saving" type.
*
* Return value: a new #HildonFileHandlingNote.
+ * DEPRECATED: use hildon-note instead of hildon-file-handling-note.
*/
GtkWidget *hildon_file_handling_note_new_saving(GtkWindow * parent)
{
HildonFileHandlingNotePrivate *priv;
progbar = gtk_progress_bar_new();
+
file_note = g_object_new(HILDON_TYPE_FILE_HANDLING_NOTE,
"note_type", HILDON_NOTE_PROGRESSBAR_TYPE,
- "description", _("Saving..."),
+ "description", _("docm_nw_saving_file"),
"progressbar", progbar, NULL);
priv = HILDON_FILE_HANDLING_NOTE_GET_PRIVATE(file_note);
return GTK_WIDGET(file_note);
}
+
+#endif /* HILDON_DISABLE_DEPRECATED */