mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 11:32:04 +00:00
ui: Replace deprecated gtk_widget_size_request
This commit is contained in:
parent
162213be0d
commit
a2726f41c9
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user