aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/ephy-gui.c14
-rw-r--r--lib/ephy-gui.h3
2 files changed, 17 insertions, 0 deletions
diff --git a/lib/ephy-gui.c b/lib/ephy-gui.c
index 655e8fb4f..6b8a18497 100644
--- a/lib/ephy-gui.c
+++ b/lib/ephy-gui.c
@@ -26,6 +26,7 @@
#include <ctype.h>
#include <string.h>
#include <glib/gi18n.h>
+#include <gdk/gdkx.h>
#include <libgnome/gnome-help.h>
#include <gtk/gtktreemodel.h>
#include <gtk/gtkmessagedialog.h>
@@ -343,3 +344,16 @@ ephy_gui_is_middle_click (void)
return new_tab;
}
+
+void
+ephy_gui_window_update_user_time (GtkWidget *window,
+ guint32 user_time)
+{
+ if (user_time != 0)
+ {
+ gtk_widget_realize (window);
+ gdk_x11_window_set_user_time (window->window,
+ user_time);
+ }
+
+}
diff --git a/lib/ephy-gui.h b/lib/ephy-gui.h
index aa40c0de2..7a9847281 100644
--- a/lib/ephy-gui.h
+++ b/lib/ephy-gui.h
@@ -68,6 +68,9 @@ void ephy_gui_help (GtkWindow *parent,
const char *file_name,
const char *link_id);
+void ephy_gui_window_update_user_time (GtkWidget *window,
+ guint32 user_time);
+
G_END_DECLS
#endif