[mutter] ui: Replace deprecated gtk_widget_size_request
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] ui: Replace deprecated gtk_widget_size_request
- Date: Fri, 11 Nov 2011 08:34:23 +0000 (UTC)
commit a2726f41c931fe6bf73365e54ea13af18d2a824f
Author: Rico Tzschichholz <ricotz t-online de>
Date: Fri Nov 11 09:33:42 2011 +0100
ui: Replace deprecated gtk_widget_size_request
src/ui/menu.c | 2 +-
src/ui/tabpopup.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/ui/menu.c b/src/ui/menu.c
index eef421a..5372a8c 100644
--- a/src/ui/menu.c
+++ b/src/ui/menu.c
@@ -116,7 +116,7 @@ popup_position_func (GtkMenu *menu,
pos = user_data;
- gtk_widget_size_request (GTK_WIDGET (menu), &req);
+ gtk_widget_get_preferred_size (GTK_WIDGET (menu), &req, NULL);
*x = pos->x;
*y = pos->y;
diff --git a/src/ui/tabpopup.c b/src/ui/tabpopup.c
index f6d7e6a..c0868ee 100644
--- a/src/ui/tabpopup.c
+++ b/src/ui/tabpopup.c
@@ -356,7 +356,7 @@ meta_ui_tab_popup_new (const MetaTabEntry *entries,
/* Efficiency rules! */
gtk_label_set_markup (GTK_LABEL (popup->label),
te->title);
- gtk_widget_size_request (popup->label, &req);
+ gtk_widget_get_preferred_size (popup->label, &req, NULL);
max_label_width = MAX (max_label_width, req.width);
tmp = tmp->next;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]