diff options
author | fiaxh <git@mx.ax.lt> | 2017-11-06 01:02:13 +0100 |
---|---|---|
committer | fiaxh <git@mx.ax.lt> | 2017-11-16 14:09:30 +0100 |
commit | 1d0745177e7a116455811dfd26e07b848cb89b75 (patch) | |
tree | 7517c4b1e1fd932e22bff091c9eb93f1c1884b35 /main/src/ui/contact_details | |
parent | f6ac5bbd26638412a2289fd1d28ef12de1d7e8b5 (diff) | |
download | dino-1d0745177e7a116455811dfd26e07b848cb89b75.tar.gz dino-1d0745177e7a116455811dfd26e07b848cb89b75.zip |
Replace deprecated function usages
Diffstat (limited to 'main/src/ui/contact_details')
-rw-r--r-- | main/src/ui/contact_details/dialog.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/ui/contact_details/dialog.vala b/main/src/ui/contact_details/dialog.vala index 70e495d1..2f1fc81e 100644 --- a/main/src/ui/contact_details/dialog.vala +++ b/main/src/ui/contact_details/dialog.vala @@ -57,7 +57,7 @@ public class Dialog : Gtk.Dialog { private void setup_top() { if (conversation.type_ == Conversation.Type.CHAT) { name_label.visible = false; - jid_label.set_padding(new Button().get_style_context().get_padding(StateFlags.NORMAL).left + 1, 0); + jid_label.margin_start = new Button().get_style_context().get_padding(StateFlags.NORMAL).left + 1; name_hybrid.text = Util.get_conversation_display_name(stream_interactor, conversation); destroy.connect(() => { if (name_hybrid.text != Util.get_conversation_display_name(stream_interactor, conversation)) { @@ -79,7 +79,7 @@ public class Dialog : Gtk.Dialog { add_category(category); ListBoxRow list_row = new ListBoxRow() { activatable=false, visible=true }; - Box row = new Box(Orientation.HORIZONTAL, 20) { margin_left=15, margin_right=15, margin_top=3, margin_bottom=3, visible=true }; + Box row = new Box(Orientation.HORIZONTAL, 20) { margin_start=15, margin_end=15, margin_top=3, margin_bottom=3, visible=true }; list_row.add(row); Label label_label = new Label(label) { xalign=0, yalign=0.5f, hexpand=true, visible=true }; if (description != null && description != "") { |