[gnome-robots] Fix window size growing out of control with GTK+ 3.20
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-robots] Fix window size growing out of control with GTK+ 3.20
- Date: Sun, 14 Feb 2016 17:49:18 +0000 (UTC)
commit a4f110171ac91800694fef580af1ffcf1e1b83a9
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Sun Feb 14 11:48:11 2016 -0600
Fix window size growing out of control with GTK+ 3.20
src/gnome-robots.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/src/gnome-robots.c b/src/gnome-robots.c
index f6a35fa..caff11d 100644
--- a/src/gnome-robots.c
+++ b/src/gnome-robots.c
@@ -285,10 +285,7 @@ static gboolean
window_configure_event_cb (GtkWidget *widget, GdkEventConfigure *event)
{
if (!window_is_maximized)
- {
- window_width = event->width;
- window_height = event->height;
- }
+ gtk_window_get_size (GTK_WINDOW (window), &window_width, &window_height);
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]