You are not logged in.

#51 2016-08-20 15:47:28

o9000
tint2 developer
From: Network Neighborhood
Registered: 2015-10-24
Posts: 399
Website

Re: tint2 16.2 released :)

Can you reproduce the original issue reliably? I don't see it but I don't understand what I should do to reproduce it. I downloaded the latest Firefox ESR binaries as released by mozilla (45.3.0).

If I start tint2 after firefox, as mentioned in the bug report, the icon is correct.

Offline

#52 2016-08-20 16:08:14

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: tint2 16.2 released :)

Oh yes, quite reliably.

1. Use blob script from BL menu 'Accessories' to save your config settings. Save all settings.
2. Make sure firefox-esr is up and tint2 is showing its icon.
3. Use the same BL menu entry to restore your settings.
4. Watch how tint2 is stopped by the script, restarted, and now shows the generic icon.

Offline

#53 2016-08-20 16:32:44

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: tint2 16.2 released :)

I just rebuilt tint2 from your latest commit and get the same behaviour - tint2 shows generic item.

Log messages:

(merlindev ✓) /h/m/g/b/bunsen-utilities systray window 39845903
tint2 : systray started
add_icon: 33554544 (volumeicon), pid 1533, visual 0x1a07580, colormap 33554435, depth 32, width 24, height 24
add_icon: 37748873 (xfce4-power-manager), pid 1568, visual 0x1a07580, colormap 37748739, depth 32, width 24, height 24
add_icon: 41943069 (variety), pid 1562, visual 0x1a07580, colormap 41943043, depth 32, width 24, height 24
add_icon: 29360280 (NetworkManager Applet), pid 1564, visual 0x1a07580, colormap 29360131, depth 32, width 24, height 24
task_update_icon: Got 48x48 icon via _NET_WM_ICON for BLOB Config Manager
task_update_icon: Got 48x48 icon via _NET_WM_ICON for YAD
remove_icon: 29360280 (NetworkManager Applet)
remove_icon: 41943069 (variety)
remove_icon: 37748873 (xfce4-power-manager)
remove_icon: 33554544 (volumeicon)

Offline

#54 2016-08-20 16:38:35

o9000
tint2 developer
From: Network Neighborhood
Registered: 2015-10-24
Posts: 399
Website

Re: tint2 16.2 released :)

I reproduced it too, thanks for the instructions.

This is not a tint2 problem. You may see that the Alt-Tab switcher of Openbox also shows the default icon. Also xprop on the Firefox window shows the default icon.

I'm not sure how to help you find out what's wrong though.

Offline

#55 2016-08-20 16:46:24

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: tint2 16.2 released :)

Well, thanks for your help anyway.
Perhaps we will need to use a workaround: restart firefox in the BLOB script when we detect that firefox was active when the restore operation started. And only overwrite the tint2 config file when it actually differs from the current version. Rather drastic, but I don't see a better solution until we find out more about what exactly happens. Seems  to be firefox specific.

Offline

#56 2016-08-22 15:09:15

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 1,930
Website

Re: tint2 16.2 released :)

When I switch workspaces (And no app is active) then some app on another workspace gets active automagically, is that an intended behaviour?

Offline

#57 2016-08-22 15:36:32

o9000
tint2 developer
From: Network Neighborhood
Registered: 2015-10-24
Posts: 399
Website

Re: tint2 16.2 released :)

If I kill tint2 the behvaiour persists as far as I can see. In both Openbox and xfwm.

Offline

#58 2016-08-22 15:59:16

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 1,930
Website

Re: tint2 16.2 released :)

Right, so nothing tint2 related.

Offline

#59 2016-10-02 12:27:40

o9000
tint2 developer
From: Network Neighborhood
Registered: 2015-10-24
Posts: 399
Website

Re: tint2 16.2 released :)

A user has contributed a separator plugin, which I've just added to master (no new release yet so to try it you'll have to pull and compile from source).

Can work in 3 modes: blank, draw a line, or draw dots.

Here is a screenshot with 3 of them (red, green and black):

separator.png

The separator code in panel_items is ":". Here is the documentation: https://gitlab.com/o9000/tint2/blob/mas … #separator

So the config would look like this:

panel_items = :C:S:T

# ...

#-------------------------------------
# Separator 1
separator = new
separator_background_id = 0
separator_color = #fc3c3c 100
separator_style = dots
separator_size = 5
separator_padding = 1 0

#-------------------------------------
# Separator 2
separator = new
separator_background_id = 0
separator_color = #4fd95b 100
separator_style = line
separator_size = 3
separator_padding = 0 0

#-------------------------------------
# Separator 3
separator = new
separator_background_id = -1
separator_color = #000000 100
separator_style = dots
separator_size = 3
separator_padding = 0 0

Last edited by o9000 (2016-10-02 12:31:58)

Offline

#60 2016-10-03 18:47:44

o9000
tint2 developer
From: Network Neighborhood
Registered: 2015-10-24
Posts: 399
Website

Re: tint2 16.2 released :)

The same user provided a patch to allow adding gradients as backgrounds. I redesigned it a bit and just pushed it to master.

No tint2conf support is available yet for gradients. The configuration is documented here with a couple of examples: https://gitlab.com/snippets/27748

Simple gradients can be added with just a couple of lines of config. But it's also possible to add pretty complex ones.

Let me know how it goes if you try it.

gradients.png

Last edited by o9000 (2016-10-03 18:52:51)

Offline

#61 2016-10-03 20:08:29

damo
....moderator....
Registered: 2015-08-20
Posts: 5,251

Re: tint2 16.2 released :)

Thanks for your work on this....

I've built the latest master, and added separators ( great feature, btw smile ), however the taskbar background has disappeared. Maybe it is another setting I am missing, but this scrot shows the tint2 from the repos (top), and the same tint2rc using the build from master, with and without a separator.

tint2s.th.png

NB the scrot.moe thumbnail crops the sides, so you need to click on it for the full image.

Before playing with the new gradients feature I'd like to get this sorted....

EDIT: I guess I should post the config (running on a bunsenified Mint Sarah):

#---- Generated by tint2conf caee ----
# See https://gitlab.com/o9000/tint2/wikis/Configure for 
# full documentation of the configuration options.
#-------------------------------------
# Backgrounds
# Background 1: Default task, Panel
rounded = 2
border_width = 1
background_color = #6C759C 38
border_color = #d8d8d8 20
background_color_hover = #282828 38
border_color_hover = #d8d8d8 0
background_color_pressed = #282828 38
border_color_pressed = #d8d8d8 0

# Background 2: Active taskbar
rounded = 2
border_width = 1
background_color = #172a56 21
border_color = #ffffff 60
background_color_hover = #172a56 21
border_color_hover = #a39e9e 60
background_color_pressed = #172a56 21
border_color_pressed = #a39e9e 60

# Background 3: Active task, Iconified task, Systray
rounded = 1
border_width = 0
background_color = #596b94 52
border_color = #ffffff 100
background_color_hover = #596b94 52
border_color_hover = #ffffff 100
background_color_pressed = #596b94 52
border_color_pressed = #ffffff 100

# Background 4: Taskbar
rounded = 2
border_width = 1
background_color = #282828 38
border_color = #d8d8d8 30
background_color_hover = #282828 38
border_color_hover = #d8d8d8 20
background_color_pressed = #282828 38
border_color_pressed = #d8d8d8 0

# Background 5: 

rounded = 2
border_width = 1
background_color = #172a56 21
border_color = #a39e9e 60
background_color_hover = #172a56 21
border_color_hover = #a39e9e 60
background_color_pressed = #172a56 21
border_color_pressed = #a39e9e 60

#-------------------------------------
# Separator 1
separator = new
separator_background_id = 0
separator_color = #4fd95b 60
separator_style = dots
separator_size = 3
separator_padding = 1 0

# Separator 2
separator = new
separator_background_id = 0
separator_color = #4fd95b 60
separator_style = dots
separator_size = 3
separator_padding = 0 0

# Separator 3
separator = new
separator_background_id = 0
separator_color = #4fd95b 60
separator_style = dots
separator_size = 3
separator_padding = 0 0

# Separator 4
separator = new
separator_background_id = 0
separator_color = #4fd95b 60
separator_style = dots
separator_size = 3
separator_padding = 0 0
#-------------------------------------
# Panel
panel_items = :T:S:C:
panel_size = 98% 28
panel_margin = 1 1
panel_padding = 4 0 4
panel_background_id = 1
wm_menu = 0
panel_dock = 0
panel_position = bottom center horizontal
panel_layer = top
panel_monitor = all
primary_monitor_first = 0
autohide = 0
autohide_show_timeout = 0.3
autohide_hide_timeout = 1.5
autohide_height = 6
strut_policy = follow_size
panel_window_name = tint2
disable_transparency = 0
mouse_effects = 0
font_shadow = 0
mouse_hover_icon_asb = 100 0 10
mouse_pressed_icon_asb = 100 0 0

#-------------------------------------
# Taskbar
taskbar_mode = multi_desktop
taskbar_padding = 3 0 6
taskbar_background_id = 4
taskbar_active_background_id = 2
taskbar_name = 0
taskbar_hide_inactive_tasks = 0
taskbar_hide_different_monitor = 0
taskbar_always_show_all_desktop_tasks = 0
taskbar_name_padding = 0 0
taskbar_name_background_id = 0
taskbar_name_active_background_id = 0
taskbar_name_font_color = #000000 100
taskbar_name_active_font_color = #000000 100
taskbar_distribute_size = 0
taskbar_sort_order = center
task_align = left

#-------------------------------------
# Task
task_text = 0
task_icon = 1
task_centered = 1
urgent_nb_of_blink = 20
task_maximum_size = 25 30
task_padding = 2 2 2
task_font = monospace 06_55 6
task_tooltip = 1
task_font_color = #d8d8d8 60
task_active_font_color = #d8d8d8 100
task_urgent_font_color = #ffffff 100
task_iconified_font_color = #d8d8d8 60
task_icon_asb = 90 0 0
task_active_icon_asb = 100 0 0
task_urgent_icon_asb = 100 0 0
task_iconified_icon_asb = 90 0 0
task_background_id = 1
task_active_background_id = 3
task_urgent_background_id = 0
task_iconified_background_id = 3
mouse_left = toggle_iconify
mouse_middle = none
mouse_right = maximize_restore
mouse_scroll_up = toggle
mouse_scroll_down = iconify

#-------------------------------------
# System tray (notification area)
systray_padding = 4 2 3
systray_background_id = 3
systray_sort = ascending
systray_icon_size = 24
systray_icon_asb = 100 0 0
systray_monitor = 1

#-------------------------------------
# Launcher
launcher_padding = 0 0 0
launcher_background_id = 0
launcher_icon_background_id = 0
launcher_icon_size = 0
launcher_icon_asb = 100 0 0
launcher_icon_theme_override = 0
startup_notifications = 0
launcher_tooltip = 0

#-------------------------------------
# Clock
time1_format = %H:%M:%S
time2_format = %a %d %b
time1_font = monospace 8
time1_timezone = 
time2_timezone = 
time2_font = monospace 6
clock_font_color = #ffffff 100
clock_padding = 4 4
clock_background_id = 0
clock_tooltip = 
clock_tooltip_timezone = 
clock_lclick_command = gnome-calculator
clock_rclick_command = gnome-calendar
clock_mclick_command = 
clock_uwheel_command = 
clock_dwheel_command = 

#-------------------------------------
# Battery
battery_tooltip = 1
battery_low_status = 20
battery_low_cmd = notify-send "battery low"
bat1_font = Free Serif 8
bat2_font = Free Serif 8
battery_font_color = #f9ea02 100
battery_padding = 2 0
battery_background_id = 0
battery_hide = 0
battery_lclick_command = 
battery_rclick_command = 
battery_mclick_command = 
battery_uwheel_command = 
battery_dwheel_command = 
ac_connected_cmd = 
ac_disconnected_cmd = 

#-------------------------------------
# Tooltip
tooltip_show_timeout = 0
tooltip_hide_timeout = 0
tooltip_padding = 2 2
tooltip_background_id = 0
tooltip_font_color = #d8d8d8 100
tooltip_font = monospace normal 8.0

#------------------------------------
# Executor

Last edited by damo (2016-10-03 20:29:28)


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#62 2016-10-03 21:29:28

o9000
tint2 developer
From: Network Neighborhood
Registered: 2015-10-24
Posts: 399
Website

Re: tint2 16.2 released :)

Indeed I broke it:) I'll take a look tomorrow.

Offline

#63 2016-10-03 21:32:27

damo
....moderator....
Registered: 2015-08-20
Posts: 5,251

Re: tint2 16.2 released :)

^ not just me then big_smile


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#64 2016-10-04 12:24:53

o9000
tint2 developer
From: Network Neighborhood
Registered: 2015-10-24
Posts: 399
Website

Re: tint2 16.2 released :)

Should be fine now. It was just a line of code I changed accidentally when I patched in the gradients.

Offline

#65 2016-10-04 12:29:02

damo
....moderator....
Registered: 2015-08-20
Posts: 5,251

Re: tint2 16.2 released :)

o9000 wrote:

Should be fine now. It was just a line of code I changed accidentally when I patched in the gradients.

...and within 4 minutes of your post, I've git pulled, built, installed and.....everything is cool big_smile

EDIT: Screenshot

Last edited by damo (2016-10-04 13:33:35)


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#66 2017-02-19 18:19:00

o9000
tint2 developer
From: Network Neighborhood
Registered: 2015-10-24
Posts: 399
Website

Re: tint2 16.2 released :)

I removed all the element_gradient_id config options, instead the backgrounds have 3 options gradient_id, hover_gradient_id and pressed_gradient_id. Documented in https://gitlab.com/o9000/tint2/blob/mas … #gradients

Still no tint2conf support. I'd like to release a new version, as a few old bugs have been fixed, but without tint2conf in sync it's not right.

But I hate writing config GUIs, so I really don't feel like doing it any time soon sad

Or I could just add a text edit for the gradients and be done with it big_smile

Last edited by o9000 (2017-02-19 18:38:55)

Offline

#67 2017-02-20 19:02:13

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 1,930
Website

Re: tint2 16.2 released :)

Do I really need to define separator block twice to use it twice? (or I'am missing something)

if true;

   perhaps last one should be just reused by default (same for E)?

Last edited by brontosaurusrex (2017-02-20 19:04:35)

Offline

#68 2017-02-20 19:39:46

o9000
tint2 developer
From: Network Neighborhood
Registered: 2015-10-24
Posts: 399
Website

Re: tint2 16.2 released :)

Yes. I will think about it more.

Offline

#69 2017-02-20 23:13:28

ohnonot
...again
Registered: 2015-09-29
Posts: 4,159
Website

Re: tint2 16.2 released :)

i recently noticed that tint2-git depends on gtk2 - is that really so? i'm a little surprised. maybe it's only for tint2conf?

Offline

#70 2017-02-20 23:51:05

o9000
tint2 developer
From: Network Neighborhood
Registered: 2015-10-24
Posts: 399
Website

Re: tint2 16.2 released :)

Offline

#71 2017-02-21 19:54:19

ohnonot
...again
Registered: 2015-09-29
Posts: 4,159
Website

Re: tint2 16.2 released :)

^ just like i thought.
i'm not concerned by this; i was having a discussion with someone who was vaguely annoyed that even the most lightweight panels have "too many dependencies"...
roll
but thanks anyway.

Offline

#72 2017-02-21 21:13:53

o9000
tint2 developer
From: Network Neighborhood
Registered: 2015-10-24
Posts: 399
Website

Re: tint2 16.2 released :)

I could get rid of glib too, and I would actually like to, since it has an idiotically designed memory management that has caused some crazy problems (basically it hides under the carpet certain bugs, that end up biting you later; it's so bad that even advanced memory checking tools like Google's ASAN are unable detect the bugs). But it would have to be replaced with something else, maybe C++, which is something I don't have time for this spring.

Offline

#73 2017-02-21 21:15:24

o9000
tint2 developer
From: Network Neighborhood
Registered: 2015-10-24
Posts: 399
Website

Re: tint2 16.2 released :)

Heck, I think even valgrind wouldn't catch those problems. It's insane.

Offline

#74 2017-02-21 22:16:32

twoion
ほやほや
Registered: 2015-08-10
Posts: 2,553

Re: tint2 16.2 released :)

o9000 wrote:

Heck, I think even valgrind wouldn't catch those problems. It's insane.

I can recommend looking at libtalloc from the Samba project. It's a well-written tree allocator with special support for arrays and suchlike, has helped me tremendously in C when it came to more complex memory management. No hash tables however (though a simple HT implementation is simple, and existing small implementations could easily get adapted for talloc).


At the end of the river the sundown beams

Offline

#75 2017-02-21 22:29:31

Unia
Octo-portal-pussy
From: Stockholm, Sweden
Registered: 2015-09-17
Posts: 355
Website

Re: tint2 16.2 released :)

o9000 wrote:

Heck, I think even valgrind wouldn't catch those problems. It's insane.

https://github.com/dtrebbien/GNOME.supp

Might help...

Nevermind, you're talking about detection, not suppression. Leaving the link anyway!


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

Board footer

Powered by FluxBB