2009-03-24 Alberto Garcia <agarcia@igalia.com>
[hildon] / src / hildon-wizard-dialog.c
index 8090e5e..8a8ee83 100644 (file)
  * Also, the response is returned, either cancel or finish.
  * Next and previous buttons are handled by the wizard dialog it self, by
  * switching the page either forward or backward in the notebook.
+ *
+ * It is possible to determinate whether users can go to the next page
+ * by setting a #HildonWizardDialogPageFunc function with
+ * hildon_wizard_dialog_set_forward_page_func()
  */
 
 #ifdef                                          HAVE_CONFIG_H
@@ -412,7 +416,11 @@ create_title                                    (HildonWizardDialog *wizard_dial
         const gchar *steps = gtk_notebook_get_tab_label_text (notebook,
                 gtk_notebook_get_nth_page (notebook, current));
 
-        str = g_strdup_printf (_("%s: %s"), priv->wizard_name, steps);
+        if (steps) {
+          str = g_strdup_printf ("%s: %s", priv->wizard_name, steps);
+        } else {
+          str = g_strdup (priv->wizard_name);
+        }
     }
 
     /* Update the dialog to display the generated title */