[Libreoffice-commits] core.git: libreofficekit/source
Michael Meeks
michael.meeks at collabora.com
Fri Jan 16 10:09:46 PST 2015
libreofficekit/source/gtk/lokdocview.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 07703967551da769faa896bc89d3dca94cbc3b5b
Author: Michael Meeks <michael.meeks at collabora.com>
Date: Fri Jan 16 18:10:59 2015 +0000
gtktiledviewer: improve table attach properties.
Change-Id: I344efb9ea71d5eccdfb6255526db912622d115df
diff --git a/libreofficekit/source/gtk/lokdocview.c b/libreofficekit/source/gtk/lokdocview.c
index d9be2df..b0c1c64 100644
--- a/libreofficekit/source/gtk/lokdocview.c
+++ b/libreofficekit/source/gtk/lokdocview.c
@@ -172,7 +172,10 @@ void renderDocument( LOKDocView* pDocView )
pDocView->pCanvas[nRow * nColumns + nColumn] = gtk_image_new();
gtk_image_set_from_pixbuf( GTK_IMAGE( pDocView->pCanvas[nRow * nColumns + nColumn] ), pPixBuf );
g_object_unref(G_OBJECT(pPixBuf));
- gtk_table_attach_defaults(GTK_TABLE(pDocView->pTable), pDocView->pCanvas[nRow * nColumns + nColumn], nColumn, nColumn + 1, nRow, nRow + 1);
+ gtk_table_attach(GTK_TABLE(pDocView->pTable),
+ pDocView->pCanvas[nRow * nColumns + nColumn],
+ nColumn, nColumn + 1, nRow, nRow + 1,
+ GTK_SHRINK, GTK_SHRINK, 0, 0);
gtk_widget_show(pDocView->pCanvas[nRow * nColumns + nColumn]);
}
}
More information about the Libreoffice-commits
mailing list