X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fhildon-window-private.h;h=281c8b796242f567c6fe0291c499a0e6b8710c86;hb=2cd50329538b9d88797e16e11383264ae84ee340;hp=92ea85eb08580ab4e4a5dc5b62900f50f97fc566;hpb=f6302d17784a0020efc9faef31b8d8c773b1ba44;p=hildon diff --git a/src/hildon-window-private.h b/src/hildon-window-private.h index 92ea85e..281c8b7 100644 --- a/src/hildon-window-private.h +++ b/src/hildon-window-private.h @@ -1,5 +1,5 @@ /* - * This file is part of hildon-libs + * This file is a part of hildon * * Copyright (C) 2006 Nokia Corporation, all rights reserved. * @@ -8,7 +8,7 @@ * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; version 2.1 of - * the License. + * the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of @@ -22,33 +22,64 @@ * */ +#ifndef __HILDON_WINDOW_PRIVATE_H__ +#define __HILDON_WINDOW_PRIVATE_H__ -#ifndef __HILDON_WINDOW_PRIVATE_H__ -#define __HILDON_WINDOW_PRIVATE_H__ +#include "hildon-program.h" + +#include G_BEGIN_DECLS -void -hildon_window_set_program (HildonWindow *self, GObject *program); +typedef struct _HildonWindowPrivate HildonWindowPrivate; + +struct _HildonWindowPrivate +{ + GtkWidget *menu; + GtkWidget *vbox; + + GtkBorder *borders; + GtkBorder *toolbar_borders; + + GtkAllocation allocation; + + guint fullscreen; + guint is_topmost; + guint escape_timeout; + gint visible_toolbars; + gint previous_vbox_y; -void -hildon_window_unset_program (HildonWindow *self); + HildonProgram *program; +}; -void -hildon_window_set_can_hibernate_property (HildonWindow *self, - gpointer can_hibernate); +#define HILDON_WINDOW_GET_PRIVATE(obj) \ + (G_TYPE_INSTANCE_GET_PRIVATE ((obj),\ + HILDON_TYPE_WINDOW, HildonWindowPrivate)) -void -hildon_window_take_common_toolbar (HildonWindow *self); +void G_GNUC_INTERNAL +hildon_window_set_program (HildonWindow *self, + GObject *program); -void -hildon_window_update_topmost (HildonWindow *self, Window window_id); +void G_GNUC_INTERNAL +hildon_window_unset_program (HildonWindow *self); -Window -hildon_window_get_active_window (void); +void G_GNUC_INTERNAL +hildon_window_set_can_hibernate_property (HildonWindow *self, + gpointer can_hibernate); -void -hildon_window_update_title (HildonWindow *window); +void G_GNUC_INTERNAL +hildon_window_take_common_toolbar (HildonWindow *self); + +void G_GNUC_INTERNAL +hildon_window_update_topmost (HildonWindow *self, + Window window_id); + +Window G_GNUC_INTERNAL +hildon_window_get_active_window (void); + +void G_GNUC_INTERNAL +hildon_window_update_title (HildonWindow *window); G_END_DECLS -#endif /* __HILDON_WINDOW_PRIVATE_H__ */ + +#endif /* __HILDON_WINDOW_PRIVATE_H__ */