Commit dd3c47de authored by Adrien Plazas's avatar Adrien Plazas
Browse files

info: Ellipsize the default app choosers

This allows the Default Applications panel to reach nrrower widths.
parent 39e31e91
......@@ -137,10 +137,17 @@ info_panel_setup_default_app (CcInfoDefaultAppsPanel *self,
GtkWidget *button;
GtkWidget *label;
g_autoptr(GList) cells = NULL;
GList *cell;
button = gtk_app_chooser_button_new (data->content_type);
g_object_set_data (G_OBJECT (button), "cc-default-app-data", data);
cells = gtk_cell_layout_get_cells (GTK_CELL_LAYOUT (button));
for (cell = cells; cell; cell = cell->next)
if (GTK_IS_CELL_RENDERER_TEXT (cell->data))
g_object_set (G_OBJECT (cell->data), "ellipsize", PANGO_ELLIPSIZE_END, NULL);
gtk_app_chooser_button_set_show_default_item (GTK_APP_CHOOSER_BUTTON (button), TRUE);
gtk_grid_attach (GTK_GRID (self->default_apps_grid), button, left_attach, top_attach,
1, 1);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment