summaryrefslogtreecommitdiff
path: root/tikzit/src/gtk/PreviewWindow.m
diff options
context:
space:
mode:
Diffstat (limited to 'tikzit/src/gtk/PreviewWindow.m')
-rw-r--r--tikzit/src/gtk/PreviewWindow.m6
1 files changed, 4 insertions, 2 deletions
diff --git a/tikzit/src/gtk/PreviewWindow.m b/tikzit/src/gtk/PreviewWindow.m
index bde39a4..2540dda 100644
--- a/tikzit/src/gtk/PreviewWindow.m
+++ b/tikzit/src/gtk/PreviewWindow.m
@@ -64,7 +64,7 @@ static gboolean window_configure_event_cb (GtkWindow *window,
GtkWidget *pdfArea = gtk_drawing_area_new ();
gtk_container_add (GTK_CONTAINER (window), pdfArea);
- gtk_widget_set_size_request (pdfArea, 150.0, 150.0);
+ //gtk_widget_set_size_request (pdfArea, 150.0, 150.0);
gtk_widget_show (pdfArea);
surface = [[WidgetSurface alloc] initWithWidget:pdfArea];
[surface setRenderDelegate:previewer];
@@ -114,8 +114,10 @@ static gboolean window_configure_event_cb (GtkWindow *window,
double height = (double)h;
[previewer setWidth:width];
[previewer setHeight:height];
+ gdk_window_resize(gtk_widget_get_window([surface widget]), w, h);
[surface invalidate];
- //NSLog(@"got that resize event! --> (%d, %d)", w, h);
+
+ //NSLog(@"got that resize event! --> (%d, %d)", [surface width], [surface height]);
}
- (BOOL) update {