| ... |
... |
@@ -20,6 +20,7 @@ import nbxmpp |
|
20
|
20
|
from nbxmpp.util import is_error_result
|
|
21
|
21
|
from gi.repository import Gtk
|
|
22
|
22
|
from gi.repository import Gdk
|
|
|
23
|
+from gi.repository import Pango
|
|
23
|
24
|
|
|
24
|
25
|
from gajim.common import app
|
|
25
|
26
|
from gajim.common import ged
|
| ... |
... |
@@ -39,7 +40,8 @@ class ServerInfoDialog(Gtk.Dialog): |
|
39
|
40
|
self.account = account
|
|
40
|
41
|
self._destroyed = False
|
|
41
|
42
|
self.set_transient_for(app.interface.roster.window)
|
|
42
|
|
- self.set_resizable(False)
|
|
|
43
|
+ self.set_resizable(True)
|
|
|
44
|
+ self.set_size_request(300, 500)
|
|
43
|
45
|
|
|
44
|
46
|
grid = Gtk.Grid()
|
|
45
|
47
|
grid.set_name('ServerInfoGrid')
|
| ... |
... |
@@ -65,7 +67,11 @@ class ServerInfoDialog(Gtk.Dialog): |
|
65
|
67
|
clipboard_button.connect('clicked', self.on_clipboard_button_clicked)
|
|
66
|
68
|
|
|
67
|
69
|
box = self.get_content_area()
|
|
68
|
|
- box.pack_start(grid, True, True, 0)
|
|
|
70
|
+ scrolled = Gtk.ScrolledWindow()
|
|
|
71
|
+ scrolled.set_max_content_height(500)
|
|
|
72
|
+ scrolled.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC)
|
|
|
73
|
+ scrolled.add(grid)
|
|
|
74
|
+ box.pack_start(scrolled, True, True, 0)
|
|
69
|
75
|
box.pack_start(clipboard_button, False, True, 0)
|
|
70
|
76
|
box.set_property('margin', 12)
|
|
71
|
77
|
box.set_spacing(18)
|
| ... |
... |
@@ -274,15 +280,17 @@ class ServerInfoItem(Gtk.Grid): |
|
274
|
280
|
def __init__(self, info):
|
|
275
|
281
|
super().__init__()
|
|
276
|
282
|
self.tooltip = info.tooltip
|
|
277
|
|
- self.set_hexpand(True)
|
|
278
|
283
|
self.insert_column(0)
|
|
279
|
|
- self.set_column_homogeneous(True)
|
|
280
|
284
|
|
|
281
|
285
|
self.info = Gtk.Label(label=info.name)
|
|
282
|
286
|
self.info.set_halign(Gtk.Align.START)
|
|
283
|
|
- self.info.set_hexpand(True)
|
|
|
287
|
+ self.info.set_xalign(0)
|
|
|
288
|
+ self.info.set_size_request(160, -1)
|
|
284
|
289
|
self.value = Gtk.Label(label=info.value)
|
|
285
|
290
|
self.value.set_halign(Gtk.Align.START)
|
|
|
291
|
+ self.value.set_ellipsize(Pango.EllipsizeMode.END)
|
|
|
292
|
+ self.value.set_width_chars(20)
|
|
|
293
|
+ self.value.set_xalign(0)
|
|
286
|
294
|
self.value.set_hexpand(True)
|
|
287
|
295
|
self.value.set_selectable(True)
|
|
288
|
296
|
|