[gnote] Replace size_request by get_preferred_size in tray
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Replace size_request by get_preferred_size in tray
- Date: Wed, 1 Jun 2011 20:10:36 +0000 (UTC)
commit 2bd15fac42c05e6115994405dd45b1c091de1441
Author: Aurimas Ä?ernius <aurisc4 gmail com>
Date: Sun May 29 22:52:40 2011 +0300
Replace size_request by get_preferred_size in tray
src/tray.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/tray.cpp b/src/tray.cpp
index 47719db..8776b60 100644
--- a/src/tray.cpp
+++ b/src/tray.cpp
@@ -524,7 +524,8 @@ namespace gnote {
gtk_status_icon_get_geometry(gobj(), &cscreen, area.gobj(), &orientation);
val = area.get_y();
- Gtk::Requisition menu_req = m_tray->tray_menu()->size_request();
+ Gtk::Requisition menu_req, unused;
+ m_tray->tray_menu()->get_preferred_size(unused, menu_req);
if (val + menu_req.height >= gdk_screen_get_height(cscreen))
open_upwards = true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]