* src/hildon-dialog.c: Change indentation style
authorAlberto Garcia <agarcia@igalia.com>
Thu, 12 Jun 2008 15:11:48 +0000 (15:11 +0000)
committerAlberto Garcia <agarcia@igalia.com>
Thu, 12 Jun 2008 15:11:48 +0000 (15:11 +0000)
ChangeLog
src/hildon-dialog.c

index c64c064..44a74d8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2008-06-12  Alberto Garcia  <agarcia@igalia.com>
 
+       * src/hildon-dialog.c:
+       Change indentation style
+
        * src/hildon-note.c
        (hildon_note_button_release):
        Use root coordinates to check if the release event happened
index 97490d8..b7e7d14 100644 (file)
 G_DEFINE_TYPE (HildonDialog, hildon_dialog, GTK_TYPE_DIALOG);
 
 static void
-hildon_dialog_class_init                        (HildonDialogClass * dialog_class)
+hildon_dialog_class_init                        (HildonDialogClass *dialog_class)
 {
 }
 
 static void
-hildon_dialog_init (HildonDialog *self)
+hildon_dialog_init                              (HildonDialog *self)
 {
 }
 
@@ -99,55 +99,53 @@ hildon_dialog_new                               (void)
  * Return value: a new #HildonDialog
  */
 GtkWidget*
-hildon_dialog_new_with_buttons (const gchar    *title,
-                                GtkWindow      *parent,
-                                GtkDialogFlags  flags,
-                                const gchar    *first_button_text,
-                                ...)
+hildon_dialog_new_with_buttons                  (const gchar *title,
+                                                 GtkWindow *parent,
+                                                 GtkDialogFlags flags,
+                                                 const gchar *first_button_text,
+                                                 ...)
 {
-  GtkWidget *dialog;
+    GtkWidget *dialog;
 
-  dialog = g_object_new (HILDON_TYPE_DIALOG, NULL);
+    dialog = g_object_new (HILDON_TYPE_DIALOG, NULL);
 
-  /* This code is copied from gtk_dialog_new_empty(), as it's a
-   * private function that we cannot use here */
-  if (title)
-    gtk_window_set_title (GTK_WINDOW (dialog), title);
+    /* This code is copied from gtk_dialog_new_empty(), as it's a
+     * private function that we cannot use here */
+    if (title)
+        gtk_window_set_title (GTK_WINDOW (dialog), title);
 
-  if (parent)
-    gtk_window_set_transient_for (GTK_WINDOW (dialog), parent);
+    if (parent)
+        gtk_window_set_transient_for (GTK_WINDOW (dialog), parent);
 
-  if (flags & GTK_DIALOG_MODAL)
-    gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
+    if (flags & GTK_DIALOG_MODAL)
+        gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
 
-  if (flags & GTK_DIALOG_DESTROY_WITH_PARENT)
-    gtk_window_set_destroy_with_parent (GTK_WINDOW (dialog), TRUE);
+    if (flags & GTK_DIALOG_DESTROY_WITH_PARENT)
+        gtk_window_set_destroy_with_parent (GTK_WINDOW (dialog), TRUE);
 
-  if (flags & GTK_DIALOG_NO_SEPARATOR)
-    gtk_dialog_set_has_separator (dialog, FALSE);
+    if (flags & GTK_DIALOG_NO_SEPARATOR)
+        gtk_dialog_set_has_separator (dialog, FALSE);
 
-  /* This is almost copied from gtk_dialog_add_buttons_valist() */
-  if (first_button_text != NULL)
-    {
-      va_list args;
-      const gchar *text;
-      gint response_id;
+    /* This is almost copied from gtk_dialog_add_buttons_valist() */
+    if (first_button_text != NULL) {
+        va_list args;
+        const gchar *text;
+        gint response_id;
 
-      va_start (args, first_button_text);
-      text = first_button_text;
-      response_id = va_arg (args, gint);
+        va_start (args, first_button_text);
+        text = first_button_text;
+        response_id = va_arg (args, gint);
 
-      while (text != NULL)
-        {
-          gtk_dialog_add_button (GTK_DIALOG (dialog), text, response_id);
+        while (text != NULL) {
+            gtk_dialog_add_button (GTK_DIALOG (dialog), text, response_id);
 
-          text = va_arg (args, gchar*);
-          if (text == NULL)
-             break;
-          response_id = va_arg (args, int);
+            text = va_arg (args, gchar*);
+            if (text == NULL)
+                break;
+            response_id = va_arg (args, int);
         }
-      va_end (args);
+        va_end (args);
     }
 
-  return dialog;
+    return dialog;
 }