[epiphany] Use gtk_popover_popup
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Use gtk_popover_popup
- Date: Thu, 12 Jan 2017 02:50:54 +0000 (UTC)
commit c5818c444688f471ba6cf099d95871b968e01a34
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Wed Jan 11 20:49:43 2017 -0600
Use gtk_popover_popup
For the add bookmark popover and security popover. It has a subtle
animation instead of the sudden appearance of gtk_widget_show, and
matches our existing menu buttons.
src/bookmarks/ephy-add-bookmark-popover.c | 2 +-
src/ephy-window.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/bookmarks/ephy-add-bookmark-popover.c b/src/bookmarks/ephy-add-bookmark-popover.c
index 89718d9..d3c74af 100644
--- a/src/bookmarks/ephy-add-bookmark-popover.c
+++ b/src/bookmarks/ephy-add-bookmark-popover.c
@@ -216,5 +216,5 @@ ephy_add_bookmark_popover_show (EphyAddBookmarkPopover *self)
self->address = g_strdup (address);
}
- gtk_widget_show (GTK_WIDGET (self));
+ gtk_popover_popup (GTK_POPOVER (self));
}
diff --git a/src/ephy-window.c b/src/ephy-window.c
index a533173..c052240 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -2804,7 +2804,7 @@ title_widget_lock_clicked_cb (EphyTitleWidget *title_widget,
G_CALLBACK (gtk_widget_destroy), NULL);
gtk_popover_set_pointing_to (GTK_POPOVER (security_popover), lock_position);
gtk_popover_set_position (GTK_POPOVER (security_popover), GTK_POS_BOTTOM);
- gtk_widget_show (security_popover);
+ gtk_popover_popup (GTK_POPOVER (security_popover));
}
static GtkWidget *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]