restrict-applications-selector: Adapt to GtkImage API changes
This was supposed to be a project-wide commit, but actually only MctRestrictApplicationsDialog had APIs to be updated. MctUseImage will undergo a major surgery soon, so it's left out.
This commit is contained in:
parent
8560ca0677
commit
360c5b0271
|
@ -323,7 +323,6 @@ create_row_for_app_cb (gpointer item,
|
|||
g_autoptr(GIcon) icon = NULL;
|
||||
GtkWidget *row, *w;
|
||||
const gchar *app_name;
|
||||
gint size;
|
||||
GtkStyleContext *context;
|
||||
|
||||
app_name = g_app_info_get_name (app);
|
||||
|
@ -339,9 +338,8 @@ create_row_for_app_cb (gpointer item,
|
|||
row = adw_action_row_new ();
|
||||
|
||||
/* Icon */
|
||||
w = gtk_image_new_from_gicon (icon, GTK_ICON_SIZE_DIALOG);
|
||||
gtk_icon_size_lookup (GTK_ICON_SIZE_DND, &size, NULL);
|
||||
gtk_image_set_pixel_size (GTK_IMAGE (w), size);
|
||||
w = gtk_image_new_from_gicon (icon);
|
||||
gtk_image_set_icon_size (GTK_IMAGE (w), GTK_ICON_SIZE_LARGE);
|
||||
adw_action_row_add_prefix (ADW_ACTION_ROW (row), w);
|
||||
|
||||
/* App name label */
|
||||
|
|
Loading…
Reference in New Issue