]> www.fi.muni.cz Git - evince.git/blobdiff - shell/ev-navigation-action-widget.c
[dualscreen] fix crash on ctrl+w and fix control window closing
[evince.git] / shell / ev-navigation-action-widget.c
index 465a474fe071597d1b63e2b17a0f1c88f3992cac..c3de6958845d26609c563f0a98b4f215c1629967 100644 (file)
@@ -14,7 +14,7 @@
  *
  *  You should have received a copy of the GNU General Public License
  *  along with this program; if not, write to the Free Software
- *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  */
 
 #include "config.h"
@@ -134,7 +134,7 @@ menu_position_func (GtkMenu           *menu,
        gint monitor_num;
        GdkScreen *screen;
 
-       gtk_widget_size_request (GTK_WIDGET (button->menu), &menu_req);
+        gtk_widget_get_preferred_size (GTK_WIDGET (button->menu), &menu_req, NULL);
        direction = gtk_widget_get_direction (widget);
        screen = gtk_widget_get_screen (GTK_WIDGET (menu));