Add some padding to the location dialog

It looked awful with Ubuntu's theme.
This commit is contained in:
Přemysl Eric Janouch 2022-01-07 03:47:57 +01:00
parent e70bb20934
commit 06ab13797d
Signed by: p
GPG Key ID: A0420B94F92B9493

View File

@ -333,6 +333,8 @@ on_show_enter_location(
g_free(label); g_free(label);
GtkWidget *content = gtk_dialog_get_content_area(GTK_DIALOG(dialog)); GtkWidget *content = gtk_dialog_get_content_area(GTK_DIALOG(dialog));
g_object_set(content, "margin", 5, NULL);
gtk_box_set_spacing(GTK_BOX(content), 5);
gtk_container_add(GTK_CONTAINER(content), entry); gtk_container_add(GTK_CONTAINER(content), entry);
gtk_container_add(GTK_CONTAINER(content), protocols); gtk_container_add(GTK_CONTAINER(content), protocols);
gtk_dialog_set_default_response(GTK_DIALOG(dialog), GTK_RESPONSE_ACCEPT); gtk_dialog_set_default_response(GTK_DIALOG(dialog), GTK_RESPONSE_ACCEPT);