[dconf-editor] Use new GtkPopover functions.
- From: Arnaud Bonatti <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf-editor] Use new GtkPopover functions.
- Date: Wed, 31 Aug 2016 02:27:13 +0000 (UTC)
commit 5d88c63ce7bd4e58cce084fb4117c3ffe1212375
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Tue Aug 30 20:26:17 2016 +0200
Use new GtkPopover functions.
configure.ac | 2 +-
editor/key-list-box-row.vala | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 249cec6..4bf0da1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -32,7 +32,7 @@ APPSTREAM_XML
# Dependencies
DCONF_REQUIRED=0.25.1
GLIB_REQUIRED=2.46.0
-GTK_REQUIRED=3.21.3
+GTK_REQUIRED=3.21.5
PKG_CHECK_MODULES(DCONF_EDITOR, [
glib-2.0 >= $GLIB_REQUIRED
diff --git a/editor/key-list-box-row.vala b/editor/key-list-box-row.vala
index 7d5901c..cb26522 100644
--- a/editor/key-list-box-row.vala
+++ b/editor/key-list-box-row.vala
@@ -58,7 +58,7 @@ private abstract class ClickableListBoxRow : EventBox
public void hide_right_click_popover ()
{
if (nullable_popover != null)
- ((!) nullable_popover).hide ();
+ ((!) nullable_popover).popdown ();
}
public void show_right_click_popover (bool delayed_apply_menu, int event_x = (int) (get_allocated_width
() / 2.0))
@@ -83,7 +83,7 @@ private abstract class ClickableListBoxRow : EventBox
Gdk.Rectangle rect = { x:event_x, y:get_allocated_height (), width:0, height:0 };
((!) nullable_popover).set_pointing_to (rect);
- ((!) nullable_popover).show ();
+ ((!) nullable_popover).popup ();
}
}
@@ -364,7 +364,7 @@ private class ContextPopover : Popover
{
if (Gdk.keyval_name (event.keyval) != "Menu")
return false;
- hide ();
+ popdown ();
return true;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]