* hildon-widgets/hildon-get-password-dialog.[ch]: (hildon_get_password_dialog_set_tit...
authorLuc Pionchon <luc.pionchon@nokia.com>
Thu, 16 Mar 2006 14:42:27 +0000 (14:42 +0000)
committerLuc Pionchon <luc.pionchon@nokia.com>
Thu, 16 Mar 2006 14:42:27 +0000 (14:42 +0000)
+ cleanup header coding style

ChangeLog
hildon-widgets/hildon-get-password-dialog.c
hildon-widgets/hildon-get-password-dialog.h

index 3c20dea..e068265 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
 
 2006-03-03  Luc Pionchon  <luc.pionchon@nokia.com>
 
+       * hildon-widgets/hildon-get-password-dialog.[ch]: 
+       (hildon_get_password_dialog_set_title) marked deprecated.
+
+       + cleanup header coding style
+
+       
+2006-03-03  Luc Pionchon  <luc.pionchon@nokia.com>
+
        Cleanup font selection dialog
        
        * hildon-widgets/hildon-font-selection-dialog.c
index 6396f3b..7b06312 100644 (file)
@@ -466,12 +466,15 @@ void hildon_get_password_dialog_set_domain(HildonGetPasswordDialog *dialog,
   
 }
 
+#ifndef HILDON_DISABLE_DEPRECATED
 /**
  * hildon_get_password_dialog_set_title:
  * @dialog: the dialog
  * @new_title: the text to be set as the dialog title.
  * 
  * sets the dialog title
+ *
+ * DEPRECATED! use gtk_window_set_title instead.
  */
 void hildon_get_password_dialog_set_title(HildonGetPasswordDialog *dialog,
                                          const gchar *new_title)
@@ -483,6 +486,7 @@ void hildon_get_password_dialog_set_title(HildonGetPasswordDialog *dialog,
   gtk_window_set_title(GTK_WINDOW(dialog), 
                       new_title);
 }
+#endif /* HILDON_DISABLE_DEPRECATED */
 
 /**
  * hildon_get_password_dialog_set_caption:
index 8af4c2d..b881a42 100644 (file)
 #include <gtk/gtkdialog.h>
 
 G_BEGIN_DECLS
-#define HILDON_TYPE_GET_PASSWORD_DIALOG \
-  ( hildon_get_password_dialog_get_type() )
+
+#define HILDON_TYPE_GET_PASSWORD_DIALOG ( hildon_get_password_dialog_get_type() )
+
 #define HILDON_GET_PASSWORD_DIALOG(obj) \
   (GTK_CHECK_CAST (obj, HILDON_TYPE_GET_PASSWORD_DIALOG,\
    HildonGetPasswordDialog))
+
 #define HILDON_GET_PASSWORD_DIALOG_CLASS(klass) \
   (GTK_CHECK_CLASS_CAST ((klass), HILDON_TYPE_GET_PASSWORD_DIALOG, \
   HildonGetPasswordDialogClass))
+
 #define HILDON_IS_GET_PASSWORD_DIALOG(obj) \
   (GTK_CHECK_TYPE (obj, HILDON_TYPE_GET_PASSWORD_DIALOG))
+
 #define HILDON_IS_GET_PASSWORD_DIALOG_CLASS(klass) \
   (GTK_CHECK_CLASS_TYPE ((klass), HILDON_TYPE_GET_PASSWORD_DIALOG))
 
-#define HILDON_GET_PASSWORD_DIALOG_TITLE "ecdg_ti_get_old_password"
-#define HILDON_GET_PASSWORD_DIALOG_PASSWORD \
-         "ecdg_fi_get_old_pwd_enter_pwd"
-#define HILDON_GET_PASSWORD_DIALOG_OK "ecdg_bd_get_old_password_dialog_ok"
-#define HILDON_GET_PASSWORD_DIALOG_CANCEL \
-         "ecdg_bd_get_old_password_dialog_cancel"
-
-#define HILDON_GET_PASSWORD_VERIFY_DIALOG_TITLE \
-         "ecdg_ti_verify_password"
-#define HILDON_GET_PASSWORD_VERIFY_DIALOG_PASSWORD \
-         "ecdg_fi_verify_pwd_enter_pwd"
-#define HILDON_GET_PASSWORD_VERIFY_DIALOG_OK \
-         "ecdg_bd_verify_password_dialog_ok"
-#define HILDON_GET_PASSWORD_VERIFY_DIALOG_CANCEL \
-         "ecdg_bd_verify_password_dialog_cancel"
-#define HILDON_GET_PASSWORD_DIALOG_MAX_CHARS \
-         "ckdg_ib_maximum_characters_reached"
-
-typedef struct _HildonGetPasswordDialog HildonGetPasswordDialog;
+
+#define HILDON_GET_PASSWORD_DIALOG_TITLE           "ecdg_ti_get_old_password"
+#define HILDON_GET_PASSWORD_DIALOG_PASSWORD        "ecdg_fi_get_old_pwd_enter_pwd"
+#define HILDON_GET_PASSWORD_DIALOG_OK              "ecdg_bd_get_old_password_dialog_ok"
+#define HILDON_GET_PASSWORD_DIALOG_CANCEL          "ecdg_bd_get_old_password_dialog_cancel"
+
+#define HILDON_GET_PASSWORD_VERIFY_DIALOG_TITLE    "ecdg_ti_verify_password"
+#define HILDON_GET_PASSWORD_VERIFY_DIALOG_PASSWORD "ecdg_fi_verify_pwd_enter_pwd"
+#define HILDON_GET_PASSWORD_VERIFY_DIALOG_OK       "ecdg_bd_verify_password_dialog_ok"
+#define HILDON_GET_PASSWORD_VERIFY_DIALOG_CANCEL   "ecdg_bd_verify_password_dialog_cancel"
+
+#define HILDON_GET_PASSWORD_DIALOG_MAX_CHARS       "ckdg_ib_maximum_characters_reached"
+
+typedef struct _HildonGetPasswordDialog      HildonGetPasswordDialog;
 typedef struct _HildonGetPasswordDialogClass HildonGetPasswordDialogClass;
 
 struct _HildonGetPasswordDialog {
@@ -70,31 +69,31 @@ struct _HildonGetPasswordDialogClass {
     GtkDialogClass parent_class;
 };
 
-GType hildon_get_password_dialog_get_type(void) G_GNUC_CONST;
+GType      hildon_get_password_dialog_get_type(void) G_GNUC_CONST;
 
-GtkWidget *hildon_get_password_dialog_new(GtkWindow * parent,
-                                          gboolean get_old_password_title);
+GtkWidget *hildon_get_password_dialog_new              (GtkWindow   *parent,
+                                                        gboolean     get_old_password_title);
 
-GtkWidget *hildon_get_password_dialog_new_with_default(GtkWindow *parent,
-                                                      const gchar *password,
-                                                      gboolean get_old_password_title);
+GtkWidget *hildon_get_password_dialog_new_with_default (GtkWindow   *parent,
+                                                       const gchar *password,
+                                                       gboolean     get_old_password_title);
 
-void hildon_get_password_dialog_set_domain(HildonGetPasswordDialog *dialog, 
-                                          const gchar *domain);
+void       hildon_get_password_dialog_set_domain       (HildonGetPasswordDialog *dialog, 
+                                                       const gchar             *domain);
 
-void hildon_get_password_dialog_set_title(HildonGetPasswordDialog *dialog,
-                                         const gchar *new_title);
+void       hildon_get_password_dialog_set_caption      (HildonGetPasswordDialog *dialog,
+                                                       const gchar             *new_caption);
 
-void hildon_get_password_dialog_set_caption(HildonGetPasswordDialog *dialog,
-                                                 const gchar *new_caption);
+void       hildon_get_password_dialog_set_max_characters(HildonGetPasswordDialog *dialog,
+                                                        gint                     max_characters);
 
+const gchar * hildon_get_password_dialog_get_password(HildonGetPasswordDialog * dialog);
 
-void hildon_get_password_dialog_set_max_characters(HildonGetPasswordDialog *dialog,
-                                                  gint max_characters);
 
-const gchar
-    *hildon_get_password_dialog_get_password(HildonGetPasswordDialog *
-                                             dialog);
+#ifndef HILDON_DISABLE_DEPRECATED
+void       hildon_get_password_dialog_set_title        (HildonGetPasswordDialog *dialog,
+                                                       const gchar             *new_title);
+#endif /* HILDON_DISABLE_DEPRECATED */
 
 G_END_DECLS
-#endif
+#endif /* __HILDON_GET_PASSWORD_DIALOG_H__ */