ui: Replace deprecated gtk_widget_size_request

This commit is contained in:
Rico Tzschichholz 2011-11-11 09:33:42 +01:00
parent 162213be0d
commit a2726f41c9
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;