Documentation updates
[hildon] / hildon / hildon-gtk.c
index 448be93..2583682 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is a part of hildon
  *
- * Copyright (C) 2008 Nokia Corporation, all rights reserved.
+ * Copyright (C) 2008, 2009 Nokia Corporation, all rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser Public License as published by
 #include <gdk/gdkx.h>
 
 #include "hildon-gtk.h"
+#include "hildon-window.h"
+#include "hildon-window-private.h"
+#include "hildon-edit-toolbar.h"
+#include "hildon-edit-toolbar-private.h"
 
 typedef void (*HildonFlagFunc) (GtkWindow *window, gpointer userdata);
 
@@ -110,8 +114,8 @@ hildon_gtk_menu_new                             (void)
  * This is a convenience function to create a #GtkButton setting its
  * size to one of the pre-defined Hildon sizes.
  *
- * Buttons created with this function also override the
- * "gtk-button-images" setting. Images set using
+ * Buttons created with this function also override
+ * #GtkSettings:gtk-button-images. Images set using
  * gtk_button_set_image() are always shown.
  *
  * Buttons created using this function have #GtkButton:focus-on-click
@@ -136,8 +140,8 @@ hildon_gtk_button_new                           (HildonSizeType size)
  * This is a convenience function to create a #GtkToggleButton setting
  * its size to one of the pre-defined Hildon sizes.
  *
- * Buttons created with this function also override the
- * "gtk-button-images" setting. Images set using
+ * Buttons created with this function also override
+ * #GtkSettings:gtk-button-images. Images set using
  * gtk_button_set_image() are always shown.
  *
  * Buttons created using this function have #GtkButton:focus-on-click
@@ -164,8 +168,8 @@ hildon_gtk_toggle_button_new                    (HildonSizeType size)
  * This is a convenience function to create a #GtkRadioButton setting
  * its size to one of the pre-defined Hildon sizes.
  *
- * Buttons created with this function also override the
- * "gtk-button-images" setting. Images set using
+ * Buttons created with this function also override
+ * #GtkSettings:gtk-button-images. Images set using
  * gtk_button_set_image() are always shown.
  *
  * Buttons created using this function have #GtkButton:focus-on-click
@@ -192,8 +196,8 @@ hildon_gtk_radio_button_new                     (HildonSizeType  size,
  * This is a convenience function to create a #GtkRadioButton setting
  * its size to one of the pre-defined Hildon sizes.
  *
- * Buttons created with this function also override the
- * "gtk-button-images" setting. Images set using
+ * Buttons created with this function also override
+ * #GtkSettings:gtk-button-images. Images set using
  * gtk_button_set_image() are always shown.
  *
  * Buttons created using this function have #GtkButton:focus-on-click
@@ -406,6 +410,13 @@ hildon_gtk_window_set_progress_indicator        (GtkWindow *window,
                                                  guint      state)
 {
     set_flag (window, (HildonFlagFunc) do_set_progress_indicator, GUINT_TO_POINTER (state));
+    if (HILDON_IS_WINDOW (window)) {
+        HildonWindowPrivate *priv = HILDON_WINDOW_GET_PRIVATE (window);
+        if (priv->edit_toolbar) {
+            HildonEditToolbar *tb = HILDON_EDIT_TOOLBAR (priv->edit_toolbar);
+            hildon_edit_toolbar_set_progress_indicator (tb, state);
+        }
+    }
 }
 
 /**
@@ -468,7 +479,6 @@ hildon_gtk_window_take_screenshot               (GtkWindow *window,
     ev->data_format = 32;
     ev->data.l[0] = take ? 1 : 0;
     ev->data.l[1] = GDK_WINDOW_XID (GTK_WIDGET (window)->window);
-    ev->data.l[2] = 0;
 
     gdk_event_send_client_message ((GdkEvent *) ev, GDK_WINDOW_XWINDOW (rootwin));