[gtk/gtk-3-24] EmojiCompletion: Use Box:spacing instead of CSS
- From: Daniel Boles <dboles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gtk-3-24] EmojiCompletion: Use Box:spacing instead of CSS
- Date: Wed, 20 Jun 2018 19:40:50 +0000 (UTC)
commit 934b40f4f36ef7c10b1451bee7bc1f54fd9da00a
Author: Daniel Boles <dboles src gmail com>
Date: Wed Jun 20 20:33:45 2018 +0100
EmojiCompletion: Use Box:spacing instead of CSS
master uses CSS border-spacing, but that is not available in GTK+ 3.
Close https://gitlab.gnome.org/GNOME/gtk/issues/1166
gtk/gtkemojicompletion.c | 2 +-
gtk/theme/Adwaita/_common.scss | 2 --
2 files changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/gtk/gtkemojicompletion.c b/gtk/gtkemojicompletion.c
index 4a868e1729..331809bc91 100644
--- a/gtk/gtkemojicompletion.c
+++ b/gtk/gtkemojicompletion.c
@@ -537,7 +537,7 @@ add_emoji (GtkWidget *list,
child = gtk_list_box_row_new ();
gtk_widget_show (child);
gtk_widget_set_focus_on_click (child, FALSE);
- box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
+ box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 10);
gtk_widget_show (box);
gtk_container_add (GTK_CONTAINER (child), box);
gtk_box_pack_start (GTK_BOX (box), label, FALSE, FALSE, 0);
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index 9a8b87fefa..29fc3aeea0 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -4573,8 +4573,6 @@ popover.emoji-completion arrow {
}
popover.emoji-completion contents row box {
- // FIXME: needs redone in a GTK+ 3 compatible way
- //border-spacing: 10px;
padding: 2px 10px;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]