From 55268cdabc9575abb4b8f0fd91692e743bf9cc3f Mon Sep 17 00:00:00 2001 From: John Darrington Date: Mon, 28 Dec 2015 12:26:43 +0100 Subject: [PATCH] PsppireKeypad: Correct the attachment of buttons to the grid. This buglet appears to have crept in during the GtkTable -> GtkGrid transition. --- src/ui/gui/psppire-keypad.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/gui/psppire-keypad.c b/src/ui/gui/psppire-keypad.c index 7f238fb5d8..5cc7f52a6f 100644 --- a/src/ui/gui/psppire-keypad.c +++ b/src/ui/gui/psppire-keypad.c @@ -1,5 +1,5 @@ /* PSPPIRE - a graphical user interface for PSPP. - Copyright (C) 2007, 2010, 2011 Free Software Foundation, Inc. + Copyright (C) 2007, 2010, 2011, 2015 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -160,7 +160,7 @@ add_button (PsppireKeypad *kp, GtkWidget **button, { g_object_set (G_OBJECT (*button), "focus-on-click", FALSE, NULL); - gtk_grid_attach (GTK_GRID(kp->table), *button, x1, y1, 1, 1); + gtk_grid_attach (GTK_GRID(kp->table), *button, x1, y1, x2 - x1, y2 - y1); gtk_widget_set_size_request (*button, 30 * rows / (float) cols, -- 2.30.2