[gnome-panel/gtk3] Fix use of deprecated gtk_widget_get_child_requisition()
- From: Germán Poó Caamaño <gpoo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel/gtk3] Fix use of deprecated gtk_widget_get_child_requisition()
- Date: Fri, 7 Jan 2011 10:38:07 +0000 (UTC)
commit 5979390ad5912b29bb24c85e84aa015216af0e98
Author: Germán Póo-Caamaño <gpoo gnome org>
Date: Fri Jan 7 02:37:40 2011 -0800
Fix use of deprecated gtk_widget_get_child_requisition()
Replaced gtk_widget_get_child_requisition() by
gtk_widget_get_preferred_size().
https://bugzilla.gnome.org/show_bug.cgi?id=627455
Signed-off-by: Germán Póo-Caamaño <gpoo gnome org>
applets/wncklet/window-list.c | 2 +-
gnome-panel/panel-widget.c | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/applets/wncklet/window-list.c b/applets/wncklet/window-list.c
index ccaadb3..39244fd 100644
--- a/applets/wncklet/window-list.c
+++ b/applets/wncklet/window-list.c
@@ -391,7 +391,7 @@ applet_size_request (GtkWidget *widget,
GtkRequisition child_req;
WnckTasklist *wncktl = WNCK_TASKLIST (tasklist->tasklist);
- gtk_widget_get_child_requisition (tasklist->applet, &child_req);
+ gtk_widget_get_preferred_size (tasklist->applet, &child_req, NULL);
size_hints = wnck_tasklist_get_size_hint_list (wncktl, &len);
g_assert (len % 2 == 0);
diff --git a/gnome-panel/panel-widget.c b/gnome-panel/panel-widget.c
index 697a50b..d57dbe7 100644
--- a/gnome-panel/panel-widget.c
+++ b/gnome-panel/panel-widget.c
@@ -1401,7 +1401,7 @@ panel_widget_size_allocate(GtkWidget *widget, GtkAllocation *allocation)
AppletData *ad = list->data;
GtkAllocation challoc;
GtkRequisition chreq;
- gtk_widget_get_child_requisition(ad->applet,&chreq);
+ gtk_widget_get_preferred_size (ad->applet, &chreq, NULL);
ad->constrained = i;
@@ -1452,7 +1452,7 @@ panel_widget_size_allocate(GtkWidget *widget, GtkAllocation *allocation)
AppletData *ad = list->data;
GtkRequisition chreq;
- gtk_widget_get_child_requisition(ad->applet,&chreq);
+ gtk_widget_get_preferred_size (ad->applet, &chreq, NULL);
if (!ad->expand_major || !ad->size_hints) {
if(panel->orient == GTK_ORIENTATION_HORIZONTAL)
@@ -1522,7 +1522,7 @@ panel_widget_size_allocate(GtkWidget *widget, GtkAllocation *allocation)
AppletData *ad = list->data;
GtkAllocation challoc;
GtkRequisition chreq;
- gtk_widget_get_child_requisition(ad->applet,&chreq);
+ gtk_widget_get_preferred_size (ad->applet, &chreq, NULL);
challoc.width = chreq.width;
challoc.height = chreq.height;
if(panel->orient == GTK_ORIENTATION_HORIZONTAL) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]