aboutsummaryrefslogtreecommitdiffstats
path: root/src/window-commands.c
diff options
context:
space:
mode:
authorChristian Persch <chpe+gnomebugz@stud.uni-saarland.de>2003-05-26 01:25:41 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-05-26 01:25:41 +0800
commitee8f00175fc21b994eed32a4e44770d639444254 (patch)
tree386d293337db5f7d4647235bb8fc796c32c298c3 /src/window-commands.c
parent2c5dc444c9de699eb9d895c804e884331a03daaa (diff)
downloadgsoc2013-epiphany-ee8f00175fc21b994eed32a4e44770d639444254.tar
gsoc2013-epiphany-ee8f00175fc21b994eed32a4e44770d639444254.tar.gz
gsoc2013-epiphany-ee8f00175fc21b994eed32a4e44770d639444254.tar.bz2
gsoc2013-epiphany-ee8f00175fc21b994eed32a4e44770d639444254.tar.lz
gsoc2013-epiphany-ee8f00175fc21b994eed32a4e44770d639444254.tar.xz
gsoc2013-epiphany-ee8f00175fc21b994eed32a4e44770d639444254.tar.zst
gsoc2013-epiphany-ee8f00175fc21b994eed32a4e44770d639444254.zip
shift force reload
2003-05-16 Christian Persch <chpe+gnomebugz@stud.uni-saarland.de> * src/window-commands.c: shift force reload
Diffstat (limited to 'src/window-commands.c')
-rw-r--r--src/window-commands.c26
1 files changed, 25 insertions, 1 deletions
diff --git a/src/window-commands.c b/src/window-commands.c
index 9c6147043..77a0db07f 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -208,11 +208,35 @@ window_cmd_view_reload (EggAction *action,
EphyWindow *window)
{
EphyEmbed *embed;
+ GdkEvent *event;
+ GdkEventType type;
+ guint state = 0;
+ gboolean force = FALSE;
embed = ephy_window_get_active_embed (window);
g_return_if_fail (embed != NULL);
- ephy_embed_reload (embed, EMBED_RELOAD_NORMAL);
+ event = gtk_get_current_event ();
+ type = event->type;
+
+ if (type == GDK_BUTTON_RELEASE)
+ {
+ state = event->button.state;
+ }
+ else if (type == GDK_KEY_RELEASE)
+ {
+ state = event->key.state;
+ }
+
+ gdk_event_free (event);
+
+ if (state & GDK_SHIFT_MASK)
+ {
+ force = TRUE;
+ }
+
+ ephy_embed_reload (embed, force ? EMBED_RELOAD_NORMAL
+ : EMBED_RELOAD_BYPASSCACHE);
}
void