diff options
Diffstat (limited to 'mate-dictionary/src/gdict-window.c')
| -rw-r--r-- | mate-dictionary/src/gdict-window.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/mate-dictionary/src/gdict-window.c b/mate-dictionary/src/gdict-window.c index 7d6a6bb2..1f2f235d 100644 --- a/mate-dictionary/src/gdict-window.c +++ b/mate-dictionary/src/gdict-window.c @@ -1640,10 +1640,7 @@ gdict_window_size_allocate (GtkWidget *widget, GdictWindow *window = GDICT_WINDOW (widget); if (!window->is_maximized) - { - window->current_width = allocation->width; - window->current_height = allocation->height; - } + gtk_window_get_size (GTK_WINDOW (window), &window->current_width, &window->current_height); if (GTK_WIDGET_CLASS (gdict_window_parent_class)->size_allocate) GTK_WIDGET_CLASS (gdict_window_parent_class)->size_allocate (widget, |
