[gnome-media] Fix deprecated use of gtk_widget_size_request()
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-media] Fix deprecated use of gtk_widget_size_request()
- Date: Mon, 18 Oct 2010 15:31:08 +0000 (UTC)
commit 56e4c2c14f6b65298fed100c6b587ce419faac9d
Author: Bastien Nocera <hadess hadess net>
Date: Mon Oct 18 16:30:47 2010 +0100
Fix deprecated use of gtk_widget_size_request()
sound-theme/gvc-sound-theme-chooser.c | 2 +-
sound-theme/gvc-sound-theme-editor.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/sound-theme/gvc-sound-theme-chooser.c b/sound-theme/gvc-sound-theme-chooser.c
index 120d84f..676c510 100644
--- a/sound-theme/gvc-sound-theme-chooser.c
+++ b/sound-theme/gvc-sound-theme-chooser.c
@@ -1006,7 +1006,7 @@ constrain_list_size (GtkWidget *widget,
/* constrain height to be the tree height up to a max */
max_height = (gdk_screen_get_height (gtk_widget_get_screen (widget))) / 4;
- gtk_widget_size_request (to_size, &req);
+ gtk_widget_get_preferred_size (to_size, NULL, &req);
requisition->height = MIN (req.height, max_height);
}
diff --git a/sound-theme/gvc-sound-theme-editor.c b/sound-theme/gvc-sound-theme-editor.c
index 061c670..cec408e 100644
--- a/sound-theme/gvc-sound-theme-editor.c
+++ b/sound-theme/gvc-sound-theme-editor.c
@@ -1271,7 +1271,7 @@ constrain_list_size (GtkWidget *widget,
/* constrain height to be the tree height up to a max */
max_height = (gdk_screen_get_height (gtk_widget_get_screen (widget))) / 4;
- gtk_widget_size_request (to_size, &req);
+ gtk_widget_get_preferred_size (to_size, NULL, &req);
requisition->height = MIN (req.height, max_height);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]