[epiphany/wip/exalm/timestamps: 4/4] window: Don't use a timestamp in present_on_idle_cb()
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/wip/exalm/timestamps: 4/4] window: Don't use a timestamp in present_on_idle_cb()
- Date: Mon, 21 Mar 2022 09:15:39 +0000 (UTC)
commit bedd7505e6ddb3fe946e2c9fb666591f6f7938f0
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Mon Mar 21 13:03:36 2022 +0400
window: Don't use a timestamp in present_on_idle_cb()
Here we should be able to have a real timestamp, but we don't at the
moment, and won't until the next libadwaita API break.
See https://gitlab.gnome.org/GNOME/libadwaita/-/issues/443
src/ephy-window.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index baaa19614..9cb748c79 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -194,8 +194,6 @@ struct _EphyWindow {
guint checking_modified_forms : 1;
guint confirmed_close_with_multiple_tabs : 1;
guint present_on_insert : 1;
-
- guint32 present_on_insert_user_time;
};
enum {
@@ -2619,10 +2617,7 @@ tab_view_setup_menu_cb (HdyTabView *tab_view,
static gboolean
present_on_idle_cb (GtkWindow *window)
{
- EphyWindow *ephy_window = EPHY_WINDOW (window);
-
- gtk_window_present_with_time (window, ephy_window->present_on_insert_user_time);
- ephy_window->present_on_insert_user_time = 0;
+ gtk_window_present (window);
return FALSE;
}
@@ -2960,7 +2955,6 @@ tab_view_create_window_cb (HdyTabView *tab_view,
new_window = ephy_window_new ();
new_window->present_on_insert = TRUE;
- new_window->present_on_insert_user_time = gtk_get_current_event_time ();
return ephy_tab_view_get_tab_view (new_window->tab_view);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]