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;
|
pos = user_data;
|
||||||
|
|
||||||
gtk_widget_size_request (GTK_WIDGET (menu), &req);
|
gtk_widget_get_preferred_size (GTK_WIDGET (menu), &req, NULL);
|
||||||
|
|
||||||
*x = pos->x;
|
*x = pos->x;
|
||||||
*y = pos->y;
|
*y = pos->y;
|
||||||
|
@ -356,7 +356,7 @@ meta_ui_tab_popup_new (const MetaTabEntry *entries,
|
|||||||
/* Efficiency rules! */
|
/* Efficiency rules! */
|
||||||
gtk_label_set_markup (GTK_LABEL (popup->label),
|
gtk_label_set_markup (GTK_LABEL (popup->label),
|
||||||
te->title);
|
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);
|
max_label_width = MAX (max_label_width, req.width);
|
||||||
|
|
||||||
tmp = tmp->next;
|
tmp = tmp->next;
|
||||||
|
Loading…
Reference in New Issue
Block a user