1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-12-04 20:07:36 +00:00

treewide: Remove icon size from constructors

Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/714>
This commit is contained in:
Anton Lazarev 2023-12-13 14:51:25 -08:00
parent 4b0b20eb0a
commit 52a0963e6c
3 changed files with 3 additions and 4 deletions

View file

@ -224,8 +224,7 @@ update_time (CallsCallRecordRow *self,
}
gtk_image_set_from_icon_name (self->type,
get_call_icon_symbolic_name (inbound, !answered),
GTK_ICON_SIZE_MENU);
get_call_icon_symbolic_name (inbound, !answered));
}

View file

@ -67,7 +67,7 @@ set_party (CallsCallSelectorItem *self)
{
CuiCall *call;
// FIXME: use AdwAvatar and the contact avatar
GtkWidget *image = gtk_image_new_from_icon_name ("avatar-default-symbolic", GTK_ICON_SIZE_DIALOG);
GtkWidget *image = gtk_image_new_from_icon_name ("avatar-default-symbolic");
gtk_box_pack_start (self->main_box, image, TRUE, TRUE, 0);
gtk_widget_show (image);

View file

@ -36,7 +36,7 @@ insert_phonenumber (CallsContactsRow *self,
const gchar *number)
{
GtkWidget *label = gtk_label_new (number);
GtkWidget *button = gtk_button_new_from_icon_name ("call-start-symbolic", GTK_ICON_SIZE_BUTTON);
GtkWidget *button = gtk_button_new_from_icon_name ("call-start-symbolic");
gtk_widget_set_halign (label, GTK_ALIGN_START);
gtk_label_set_ellipsize (GTK_LABEL (label), PANGO_ELLIPSIZE_END);