From 52a0963e6c398639ed84bacdd414abf660c965b7 Mon Sep 17 00:00:00 2001 From: Anton Lazarev Date: Wed, 13 Dec 2023 14:51:25 -0800 Subject: [PATCH] treewide: Remove icon size from constructors Part-of: --- src/calls-call-record-row.c | 3 +-- src/calls-call-selector-item.c | 2 +- src/calls-contacts-row.c | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/calls-call-record-row.c b/src/calls-call-record-row.c index 404ca16..edbf0e1 100644 --- a/src/calls-call-record-row.c +++ b/src/calls-call-record-row.c @@ -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)); } diff --git a/src/calls-call-selector-item.c b/src/calls-call-selector-item.c index 2736217..6151d87 100644 --- a/src/calls-call-selector-item.c +++ b/src/calls-call-selector-item.c @@ -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); diff --git a/src/calls-contacts-row.c b/src/calls-contacts-row.c index fdf5861..8eeb7c7 100644 --- a/src/calls-contacts-row.c +++ b/src/calls-contacts-row.c @@ -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);