Skip to content
Snippets Groups Projects
Commit 3af94489 authored by Marko Mecina's avatar Marko Mecina
Browse files

ellipsise displayed pool names

parent 3438f960
Branches
No related tags found
No related merge requests found
......@@ -43,7 +43,7 @@ TM_HEADER_LEN, TC_HEADER_LEN, PEC_LEN = [packet_config.TM_HEADER_LEN, packet_con
gi.require_version('Gtk', '3.0')
gi.require_version('Notify', '0.7')
from gi.repository import Gtk, Gdk, GdkPixbuf, GLib, Notify # NOQA
from gi.repository import Gtk, Gdk, GdkPixbuf, GLib, Notify, Pango # NOQA
# from event_storm_squasher import delayed
......@@ -148,7 +148,7 @@ class PlotViewer(Gtk.Window):
def create_toolbar(self):
toolbar = Gtk.HBox()
self.pool_label = Gtk.Label(tooltip_text=self.loaded_pool.filename)
self.pool_label = Gtk.Label(tooltip_text=self.loaded_pool.filename, ellipsize=Pango.EllipsizeMode.MIDDLE)
self.pool_label.set_markup('<span foreground=\"#656565\">{}</span>'.format(self.loaded_pool.pool_name))
toolbar.pack_start(self.pool_label, 0, 0, 10)
......@@ -232,7 +232,7 @@ class PlotViewer(Gtk.Window):
fig = Figure()
self.subplot = fig.add_subplot(111)
self.subplot.grid()
self.subplot.set_xlabel('CUC Time [s]')
self.subplot.set_xlabel('CUC time [s]')
self.subplot.callbacks.connect('xlim_changed', self._update_plot_xlimit_values)
self.subplot.callbacks.connect('ylim_changed', self._update_plot_ylimit_values)
......
......@@ -1568,6 +1568,9 @@ class TMPoolView(Gtk.Window):
self.pool_selector.set_model(pool_names)
cell = self.pool_selector.get_cells()[0]
cell.set_property('ellipsize', Pango.EllipsizeMode.MIDDLE)
type_cell = Gtk.CellRendererText(foreground='gray', style=Pango.Style.ITALIC)
self.pool_selector.pack_start(type_cell, 0)
self.pool_selector.add_attribute(type_cell, 'text', 2)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment