diff options
author | Carlos Garcia Campos <[email protected]> | 2012-09-29 16:06:39 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-03-22 08:44:32 +0100 |
commit | 63463849638784e91339acfc27b4b0645b8573f3 (patch) | |
tree | a3186211b3f597392b6f19a349695195ef75ba64 /shell/ev-loading-message.h | |
parent | 7d0ac843073635a917c48101f44947f04c1696c0 (diff) | |
download | atril-63463849638784e91339acfc27b4b0645b8573f3.tar.bz2 atril-63463849638784e91339acfc27b4b0645b8573f3.tar.xz |
Use GtkOverlay to show the loading message
Remove the EvLoadingWindow from libview and move the implementation to
the shell using a EvLoadingMessage widget and GtkOverlay. EvView has now
a is-loading property that allows the users to implement their own
loading notification system. This fixes several realted to the loading
window.
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-8&id=035c1cb
Diffstat (limited to 'shell/ev-loading-message.h')
-rw-r--r-- | shell/ev-loading-message.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/shell/ev-loading-message.h b/shell/ev-loading-message.h new file mode 100644 index 00000000..3034b792 --- /dev/null +++ b/shell/ev-loading-message.h @@ -0,0 +1,45 @@ +/* ev-loading-message.h + * this file is part of atril, a mate document viewer + * + * Copyright (C) 2010, 2012 Carlos Garcia Campos <[email protected]> + * + * Atril is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * Atril is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +#ifndef EV_LOADING_MESSAGE_H +#define EV_LOADING_MESSAGE_H + +#include <gtk/gtk.h> + +G_BEGIN_DECLS + +typedef struct _EvLoadingMessage EvLoadingMessage; +typedef struct _EvLoadingMessageClass EvLoadingMessageClass; + +#define EV_TYPE_LOADING_MESSAGE (ev_loading_message_get_type()) +#define EV_LOADING_MESSAGE(object) (G_TYPE_CHECK_INSTANCE_CAST((object), EV_TYPE_LOADING_MESSAGE, EvLoadingMessage)) +#define EV_IS_LOADING_MESSAGE(object) (G_TYPE_CHECK_INSTANCE_TYPE((object), EV_TYPE_LOADING_MESSAGE)) +#define EV_LOADING_MESSAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), EV_TYPE_LOADING_MESSAGE, EvLoadingMessageClass)) +#define EV_IS_LOADING_MESSAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), EV_TYPE_LOADING_MESSAGE)) +#define EV_LOADING_MESSAGE_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS((object), EV_TYPE_LOADING_MESSAGE, EvLoadingMessageClass)) + +GType ev_loading_message_get_type (void) G_GNUC_CONST; + +GtkWidget *ev_loading_message_new (void); + +G_END_DECLS + +#endif /* EV_LOADING_MESSAGE_H */ + |