Skip to content

Commit

Permalink
Set 10 as the minimum number of emoji per line
Browse files Browse the repository at this point in the history
because actually fixing #72 looks really difficult
  • Loading branch information
maoschanz committed Oct 20, 2020
1 parent 8705be2 commit 64281a7
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 44 deletions.
3 changes: 2 additions & 1 deletion [email protected]/emojiButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ var EmojiButton = class EmojiButton {
// name of the emoji he's copying.
this.super_btn.connect('notify::hover', (a, b) => {
if (a.hover) {
// FIXME #72 labels too long
category.super_item.label.text = this.keywords[0];
} else {
category.super_item.label.text = category.categoryName;
Expand All @@ -66,7 +67,7 @@ var EmojiButton = class EmojiButton {
}

destroy() {
//TODO ?
// TODO ?
this.super_btn.destroy();
}

Expand Down
87 changes: 44 additions & 43 deletions [email protected]/prefs.ui
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</object>

<object class="GtkAdjustment" id="adjustment_nbcols">
<property name="lower">2</property>
<property name="lower">10</property>
<property name="upper">60</property>
<property name="step_increment">1</property>
<property name="page_increment">10</property>
Expand Down Expand Up @@ -74,27 +74,28 @@
</packing>
</child>

<child>
<object class="GtkLabel">
<property name="expand">False</property>
<property name="halign">end</property>
<property name="label" translatable="yes">Size of emojis (px)</property>
</object>
<packing>
<property name="left-attach">0</property>
<property name="top-attach">4</property>
</packing>
</child>
<child>
<object class="GtkSpinButton" id="size_spinbtn">
<property name="expand">False</property>
<property name="adjustment">adjustment_size</property>
</object>
<packing>
<property name="left-attach">1</property>
<property name="top-attach">4</property>
</packing>
</child>

<child>
<object class="GtkLabel">
<property name="expand">False</property>
<property name="halign">end</property>
<property name="label" translatable="yes">Size of emojis (px)</property>
</object>
<packing>
<property name="left-attach">0</property>
<property name="top-attach">4</property>
</packing>
</child>
<child>
<object class="GtkSpinButton" id="size_spinbtn">
<property name="expand">False</property>
<property name="adjustment">adjustment_size</property>
</object>
<packing>
<property name="left-attach">1</property>
<property name="top-attach">4</property>
</packing>
</child>

<child>
<object class="GtkSeparator">
Expand Down Expand Up @@ -192,27 +193,27 @@
</packing>
</child>

<child>
<object class="GtkLabel">
<property name="expand">False</property>
<property name="halign">end</property>
<property name="label" translatable="yes">Always show the icon</property>
</object>
<packing>
<property name="left-attach">0</property>
<property name="top-attach">17</property>
</packing>
</child>
<child>
<object class="GtkSwitch" id="always_show_switch">
<property name="expand">False</property>
<property name="halign">start</property>
</object>
<packing>
<property name="left-attach">1</property>
<property name="top-attach">17</property>
</packing>
</child>
<child>
<object class="GtkLabel">
<property name="expand">False</property>
<property name="halign">end</property>
<property name="label" translatable="yes">Always show the icon</property>
</object>
<packing>
<property name="left-attach">0</property>
<property name="top-attach">17</property>
</packing>
</child>
<child>
<object class="GtkSwitch" id="always_show_switch">
<property name="expand">False</property>
<property name="halign">start</property>
</object>
<packing>
<property name="left-attach">1</property>
<property name="top-attach">17</property>
</packing>
</child>

</object>
</child>
Expand Down

0 comments on commit 64281a7

Please sign in to comment.