/*
* 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);
* 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
* 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
* 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
* 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
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);
+ }
+ }
}
/**
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));