[gtk+] window: Use gtk_widget_queue_resize()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] window: Use gtk_widget_queue_resize()
- Date: Mon, 14 Sep 2015 21:37:16 +0000 (UTC)
commit 07a574ddddd971f7b8a4aa237f6bdb4a4a08c6b5
Author: Benjamin Otte <otte redhat com>
Date: Mon Sep 14 20:22:45 2015 +0200
window: Use gtk_widget_queue_resize()
_gtk_container_queue_resize() is a private function and probably
shouldn't have even been used in 1999 when this call was originally
added.
gtk/gtkwin32embedwidget.c | 2 +-
gtk/gtkwindow.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkwin32embedwidget.c b/gtk/gtkwin32embedwidget.c
index a4738c3..51b9732 100644
--- a/gtk/gtkwin32embedwidget.c
+++ b/gtk/gtkwin32embedwidget.c
@@ -190,7 +190,7 @@ gtk_win32_embed_widget_realize (GtkWidget *widget)
}
gtk_widget_size_allocate (widget, &allocation);
- _gtk_container_queue_resize (GTK_CONTAINER (widget));
+ gtk_widget_queue_resize (widget);
g_return_if_fail (!gtk_widget_get_realized (widget));
}
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index b693f94..7cb2497 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -7052,7 +7052,7 @@ gtk_window_realize (GtkWidget *widget)
allocation.height = MAX (allocation.height, h);
gtk_widget_size_allocate (widget, &allocation);
- _gtk_container_queue_resize (GTK_CONTAINER (widget));
+ gtk_widget_queue_resize (widget);
g_return_if_fail (!_gtk_widget_get_realized (widget));
}
@@ -7558,7 +7558,7 @@ gtk_window_configure_event (GtkWidget *widget,
priv->configure_notify_received = TRUE;
- _gtk_container_queue_resize (GTK_CONTAINER (widget));
+ gtk_widget_queue_resize (widget);
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]