[gnome-control-center] Use gtk_widget_get_preferred_size() instead gtk_size_request_get_size()
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] Use gtk_widget_get_preferred_size() instead gtk_size_request_get_size()
- Date: Thu, 30 Sep 2010 17:44:22 +0000 (UTC)
commit 0df3b0324770d9eede0842959c443b70ecbd758e
Author: Javier Jardón <jjardon gnome org>
Date: Thu Sep 30 19:42:23 2010 +0200
Use gtk_widget_get_preferred_size() instead gtk_size_request_get_size()
As GtkSizeRequest was moved into GtkWidget
shell/gnome-control-center.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/shell/gnome-control-center.c b/shell/gnome-control-center.c
index 44deac4..e9d598a 100644
--- a/shell/gnome-control-center.c
+++ b/shell/gnome-control-center.c
@@ -162,8 +162,9 @@ activate_panel (GnomeControlCenter *shell,
/* resize to the preferred size of the panel */
gtk_widget_set_size_request (priv->window, FIXED_WIDTH, -1);
- gtk_size_request_get_size (GTK_SIZE_REQUEST (priv->window), &min,
- &nat);
+
+ gtk_widget_get_preferred_size (priv->window,
+ &min, &nat);
gtk_window_resize (GTK_WINDOW (priv->window), FIXED_WIDTH,
nat.height);
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]