Add HildonAppMenu::changed signal
[hildon] / hildon / hildon-date-editor.c
index eb8dee4..6a89c3f 100644 (file)
@@ -799,13 +799,13 @@ hildon_date_editor_set_date                     (HildonDateEditor *editor,
 /**
  * hildon_date_editor_get_date:
  * @date: the @HildonDateEditor widget
- * @year: year
- * @month: month
- * @day: day
+ * @year: a pointer to store the selected year
+ * @month: a pointer to store the selected month
+ * @day: a pointer to store the selected day
  *
- * Gets the date represented by the date editor.
- * You can pass NULL to any of the pointers if
- * you're not interested in obtaining it. 
+ * Gets the date selected in @date.
+ * You can pass %NULL in any of the pointers if
+ * you're not interested in obtaining a particular field.
  *
  */
 void 
@@ -875,7 +875,7 @@ hildon_date_editor_entry_focus_in               (GtkWidget *widget,
                                                  GdkEventFocus *event,
                                                  gpointer data)
 {
-    g_idle_add ((GSourceFunc) hildon_date_editor_entry_select_all, GTK_ENTRY (widget));
+    gdk_threads_add_idle ((GSourceFunc) hildon_date_editor_entry_select_all, GTK_ENTRY (widget));
 
     return FALSE;
 }
@@ -1065,7 +1065,7 @@ hildon_date_editor_entry_validate               (GtkWidget *widget,
         {
             g_signal_emit (ed, date_editor_signals[DATE_ERROR], 0, error_code, &r);
 
-            g_idle_add ((GSourceFunc) hildon_date_editor_entry_select_all, widget);
+            gdk_threads_add_idle ((GSourceFunc) hildon_date_editor_entry_select_all, widget);
         }
     }
 
@@ -1080,12 +1080,7 @@ hildon_date_editor_entry_validate               (GtkWidget *widget,
 static gboolean
 hildon_date_editor_entry_select_all             (GtkWidget *widget)
 {
-    GDK_THREADS_ENTER ();
-
     gtk_editable_select_region (GTK_EDITABLE (widget), 0, -1);
-
-    GDK_THREADS_LEAVE ();
-
     return FALSE;
 }
 
@@ -1512,7 +1507,9 @@ hildon_date_editor_set_day                      (HildonDateEditor *editor,
 
 /**
  * hildon_date_editor_get_year:
- * @editor: the @HildonDateEditor widget
+ * @editor: the #HildonDateEditor widget
+ *
+ * Gets the year shown in the editor.
  *
  * Returns: the current year shown in the editor.
  */