Deactivate emoji button for gtk < 3.24
This commit is contained in:
parent
0f0e838a1f
commit
83cea47bb1
|
@ -58,6 +58,8 @@ public class View : Box {
|
||||||
|
|
||||||
encryption_widget.get_style_context().add_class("dino-chatinput-button");
|
encryption_widget.get_style_context().add_class("dino-chatinput-button");
|
||||||
|
|
||||||
|
// Emoji button for emoji picker (recents don't work < 3.22.19, category icons don't work <3.23.2)
|
||||||
|
if (Gtk.get_major_version() >= 3 && Gtk.get_minor_version() >= 24) {
|
||||||
MenuButton emoji_button = new MenuButton() { relief=ReliefStyle.NONE, margin_top=3, valign=Align.START, visible=true };
|
MenuButton emoji_button = new MenuButton() { relief=ReliefStyle.NONE, margin_top=3, valign=Align.START, visible=true };
|
||||||
emoji_button.get_style_context().add_class("flat");
|
emoji_button.get_style_context().add_class("flat");
|
||||||
emoji_button.get_style_context().add_class("dino-chatinput-button");
|
emoji_button.get_style_context().add_class("dino-chatinput-button");
|
||||||
|
@ -70,6 +72,8 @@ public class View : Box {
|
||||||
emoji_button.set_popover(chooser);
|
emoji_button.set_popover(chooser);
|
||||||
|
|
||||||
outer_box.add(emoji_button);
|
outer_box.add(emoji_button);
|
||||||
|
}
|
||||||
|
|
||||||
outer_box.add(encryption_widget);
|
outer_box.add(encryption_widget);
|
||||||
|
|
||||||
text_input.key_press_event.connect(on_text_input_key_press);
|
text_input.key_press_event.connect(on_text_input_key_press);
|
||||||
|
|
Loading…
Reference in a new issue