Commit 9b065e8c authored by Dan Williams's avatar Dan Williams
Browse files

bluetooth: don't enlarge dialog wider than screen on some errors

Constrain the GTK label so GTK doesn't make it larger than the
screen by failing to wordwrap.
parent eb64b0f0
......@@ -1127,6 +1127,8 @@ get_config_widgets (const char *bdaddr, const char **uuids)
gtk_box_pack_start (GTK_BOX (hbox), info->hbox, FALSE, FALSE, 0);
info->label = gtk_label_new ("");
gtk_label_set_max_width_chars (GTK_LABEL (info->label), 80);
gtk_label_set_line_wrap (GTK_LABEL (info->label), TRUE);
gtk_box_pack_start (GTK_BOX (hbox), info->label, FALSE, TRUE, 6);
default_adapter_powered_changed (G_OBJECT (info->btclient), NULL, info);
Supports Markdown
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