[gnome-power-manager] gpm: gtk_widget_size_request is deprecated.
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-power-manager] gpm: gtk_widget_size_request is deprecated.
- Date: Mon, 4 Oct 2010 07:47:11 +0000 (UTC)
commit 42f5f342e1974d75cfde6bda21cdaccbca3f53b9
Author: Alban Browaeys <prahal yahoo com>
Date: Wed Sep 22 02:26:47 2010 +0200
gpm: gtk_widget_size_request is deprecated.
Use gtk_widget_get_preferred_size.
Signed-off-by: Richard Hughes <richard hughsie com>
src/gpm-backlight.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gpm-backlight.c b/src/gpm-backlight.c
index 2658cfd..dba2823 100644
--- a/src/gpm-backlight.c
+++ b/src/gpm-backlight.c
@@ -216,7 +216,7 @@ gpm_backlight_dialog_show (GpmBacklight *backlight)
* know its true size, yet, so we need to jump through hoops
*/
gtk_window_get_default_size (GTK_WINDOW (backlight->priv->popup), &orig_w, &orig_h);
- gtk_widget_size_request (backlight->priv->popup, &win_req);
+ gtk_widget_get_preferred_size(backlight->priv->popup, &win_req, NULL);
if (win_req.width > orig_w) {
orig_w = win_req.width;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]