Compare commits
13 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8a7ba9bf50 | ||
|
|
ffa6e5ba49 | ||
|
|
d1f5a46a73 | ||
|
|
131704081c | ||
|
|
21466cc94e | ||
|
|
e06b63e1dc | ||
|
|
9a03b8b4e6 | ||
|
|
47bc01d608 | ||
|
|
0e4b3bd32e | ||
|
|
9ac0cd1254 | ||
|
|
73ab9b6930 | ||
|
|
96361ab1cd | ||
|
|
b9589450bb |
1
AUTHORS
1
AUTHORS
@@ -6,6 +6,7 @@ tint2 is developped by :
|
||||
- Ovidiu M <mrovi9000 at gmail.com> : launcher, bug fixes
|
||||
- Mishael A Sibiryakov (death@junki.org) : freespace
|
||||
- Sebastian Reichel <sre@ring0.de> : battery, various fixes, debian package maintainer
|
||||
- Chris Lee <chrlee at protonmail> : bug fixes, maintainer starting with v16.3
|
||||
|
||||
tint2 is based on the ttm source code (http://code.google.com/p/ttm/)
|
||||
- 2007-2008 Pål Staurland <staura@gmail.com>
|
||||
|
||||
13
ChangeLog
13
ChangeLog
@@ -1,3 +1,14 @@
|
||||
2018-05-03 16.4
|
||||
- Update AUTHORS
|
||||
- Fixes:
|
||||
- Fix leak in image loading (issue #704)
|
||||
- Executors no longer log unless env var DEBUG_EXECUTORS is set
|
||||
|
||||
2018-04-17 16.3
|
||||
- Fixes:
|
||||
- Layout in executor (issue #695)
|
||||
- Other small issues
|
||||
|
||||
2018-01-21 16.2
|
||||
- Fixes:
|
||||
- Proper fix for issue #688
|
||||
@@ -993,3 +1004,5 @@ released tint-0.2
|
||||
.
|
||||
.
|
||||
.
|
||||
.
|
||||
.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Latest stable release: 16.2
|
||||
Changes: https://gitlab.com/o9000/tint2/blob/16.2/ChangeLog
|
||||
# Latest stable release: 16.4
|
||||
Changes: https://gitlab.com/o9000/tint2/blob/16.4/ChangeLog
|
||||
|
||||
Documentation: [doc/tint2.md](doc/tint2.md)
|
||||
|
||||
@@ -8,7 +8,7 @@ Compile it with (after you install the [dependencies](https://gitlab.com/o9000/t
|
||||
```
|
||||
git clone https://gitlab.com/o9000/tint2.git
|
||||
cd tint2
|
||||
git checkout 16.2
|
||||
git checkout 16.4
|
||||
mkdir build
|
||||
cd build
|
||||
cmake ..
|
||||
@@ -97,4 +97,3 @@ tint2 is a simple panel/taskbar made for modern X window managers. It was specif
|
||||
## More
|
||||
|
||||
* [Tint2 wiki](https://gitlab.com/o9000/tint2/wikis/Home)
|
||||
Home)
|
||||
|
||||
@@ -199,9 +199,9 @@ pre {
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="latest-stable-release-16-2"><span class="md2man-title">Latest</span> <span class="md2man-section">stable</span> <span class="md2man-date">release:</span> <span class="md2man-source">16.2</span><a name="latest-stable-release-16-2" href="#latest-stable-release-16-2" class="md2man-permalink" title="permalink"></a></h1><p>Changes: <a href="https://gitlab.com/o9000/tint2/blob/16.2/ChangeLog">https://gitlab.com/o9000/tint2/blob/16.2/ChangeLog</a></p><p>Documentation: <a href="manual.html">manual.html</a></p><p>Compile it with (after you install the <a href="https://gitlab.com/o9000/tint2/wikis/Install#dependencies">dependencies</a>):</p><pre class="highlight plaintext"><code>git clone https://gitlab.com/o9000/tint2.git
|
||||
<h1 id="latest-stable-release-16-4"><span class="md2man-title">Latest</span> <span class="md2man-section">stable</span> <span class="md2man-date">release:</span> <span class="md2man-source">16.4</span><a name="latest-stable-release-16-4" href="#latest-stable-release-16-4" class="md2man-permalink" title="permalink"></a></h1><p>Changes: <a href="https://gitlab.com/o9000/tint2/blob/16.4/ChangeLog">https://gitlab.com/o9000/tint2/blob/16.4/ChangeLog</a></p><p>Documentation: <a href="manual.html">manual.html</a></p><p>Compile it with (after you install the <a href="https://gitlab.com/o9000/tint2/wikis/Install#dependencies">dependencies</a>):</p><pre class="highlight plaintext"><code>git clone https://gitlab.com/o9000/tint2.git
|
||||
cd tint2
|
||||
git checkout 16.2
|
||||
git checkout 16.4
|
||||
mkdir build
|
||||
cd build
|
||||
cmake ..
|
||||
@@ -269,8 +269,7 @@ update-mime-database /usr/local/share/mime
|
||||
</ul>
|
||||
<h2 id="more">More<a name="more" href="#more" class="md2man-permalink" title="permalink"></a></h2>
|
||||
<ul>
|
||||
<li><a href="https://gitlab.com/o9000/tint2/wikis/Home">Tint2 wiki</a>
|
||||
Home)</li>
|
||||
<li><a href="https://gitlab.com/o9000/tint2/wikis/Home">Tint2 wiki</a></li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
.TH TINT2 1 "2018\-01\-21" 16.2
|
||||
.TH TINT2 1 "2018\-05\-03" 16.4
|
||||
.SH NAME
|
||||
.PP
|
||||
tint2 \- lightweight panel/taskbar
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# TINT2 1 "2018-01-21" 16.2
|
||||
# TINT2 1 "2018-05-03" 16.4
|
||||
|
||||
## NAME
|
||||
tint2 - lightweight panel/taskbar
|
||||
|
||||
@@ -194,3 +194,9 @@ if __name__ == '__main__':
|
||||
choice = raw_input().lower()
|
||||
if choice != "y":
|
||||
run("git reset --hard HEAD~ ; git tag -d %s ; git tag -d %s" % (version, readable_version))
|
||||
sys.exit(1)
|
||||
print "Publish? [y/n]"
|
||||
choice = raw_input().lower()
|
||||
if choice != "y":
|
||||
sys.exit(1)
|
||||
run("git push origin master && git push --tags origin master")
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
|
||||
#define MAX_TOOLTIP_LEN 4096
|
||||
|
||||
bool debug_executors = false;
|
||||
|
||||
void execp_timer_callback(void *arg);
|
||||
char *execp_get_tooltip(void *obj);
|
||||
void execp_init_fonts();
|
||||
@@ -332,7 +334,7 @@ void execp_compute_icon_text_geometry(Execp *execp,
|
||||
int available_w, available_h;
|
||||
if (panel_horizontal) {
|
||||
available_w = panel->area.width;
|
||||
available_h = area->height - 2 * *horiz_padding - left_right_border_width(area);
|
||||
available_h = area->height - 2 * *vert_padding - left_right_border_width(area);
|
||||
} else {
|
||||
available_w = !text_next_line
|
||||
? area->width - *icon_w - (*icon_w ? *interior_padding : 0) - 2 * *horiz_padding -
|
||||
@@ -635,7 +637,8 @@ void execp_timer_callback(void *arg)
|
||||
close(pipe_fd_stderr[0]);
|
||||
return;
|
||||
} else if (child == 0) {
|
||||
fprintf(stderr, "tint2: Executing: %s\n", execp->backend->command);
|
||||
if (debug_executors)
|
||||
fprintf(stderr, "tint2: Executing: %s\n", execp->backend->command);
|
||||
// We are in the child
|
||||
close(pipe_fd_stdout[0]);
|
||||
dup2(pipe_fd_stdout[1], 1); // 1 is stdout
|
||||
|
||||
@@ -8,6 +8,8 @@
|
||||
#include "common.h"
|
||||
#include "timer.h"
|
||||
|
||||
extern bool debug_executors;
|
||||
|
||||
// Architecture:
|
||||
// Panel panel_config contains an array of Execp, each storing all config options and all the state variables.
|
||||
// Only these run commands.
|
||||
|
||||
@@ -106,6 +106,7 @@ void handle_env_vars()
|
||||
debug_dnd = getenv("DEBUG_DND") != NULL;
|
||||
debug_thumbnails = getenv("DEBUG_THUMBNAILS") != NULL;
|
||||
debug_timers = getenv("DEBUG_TIMERS") != NULL;
|
||||
debug_executors = getenv("DEBUG_EXECUTORS") != NULL;
|
||||
if (debug_fps) {
|
||||
init_fps_distribution();
|
||||
char *s = getenv("TRACING_FPS_THRESHOLD");
|
||||
|
||||
@@ -229,6 +229,10 @@ void init_panel()
|
||||
p->scale = 1;
|
||||
if (ui_scale_monitor_size_ref > 0)
|
||||
p->scale *= server.monitors[p->monitor].height / ui_scale_monitor_size_ref;
|
||||
if (p->scale > 8 || p->scale < 1./8) {
|
||||
fprintf(stderr, RED "tint2: panel %d having scale %g outside bounds, resetting to 1.0" RESET "\n", i + 1, p->scale);
|
||||
p->scale = 1;
|
||||
}
|
||||
fprintf(stderr, BLUE "tint2: panel %d uses scale %g " RESET "\n", i + 1, p->scale);
|
||||
if (!p->area.bg)
|
||||
p->area.bg = &g_array_index(backgrounds, Background, 0);
|
||||
|
||||
@@ -758,8 +758,8 @@ void blink_urgent(void *arg)
|
||||
GSList *urgent_task = urgent_list;
|
||||
while (urgent_task) {
|
||||
Task *t = urgent_task->data;
|
||||
if (t->urgent_tick < max_tick_urgent) {
|
||||
if (t->urgent_tick++ % 2)
|
||||
if (t->urgent_tick <= max_tick_urgent) {
|
||||
if (++t->urgent_tick % 2)
|
||||
set_task_state(t, TASK_URGENT);
|
||||
else
|
||||
set_task_state(t, window_is_iconified(t->win) ? TASK_ICONIFIED : TASK_NORMAL);
|
||||
|
||||
@@ -789,11 +789,7 @@ Imlib_Image load_image(const char *path, int cached)
|
||||
{
|
||||
Imlib_Image image;
|
||||
#ifdef HAVE_RSVG
|
||||
if (cached) {
|
||||
image = imlib_load_image_immediately(path);
|
||||
} else {
|
||||
image = imlib_load_image_immediately_without_cache(path);
|
||||
}
|
||||
image = imlib_load_image(path);
|
||||
if (!image && g_str_has_suffix(path, ".svg")) {
|
||||
char tmp_filename[128];
|
||||
snprintf(tmp_filename, sizeof(tmp_filename), "/tmp/tint2-%d.png", (int)getpid());
|
||||
@@ -818,19 +814,17 @@ Imlib_Image load_image(const char *path, int cached)
|
||||
// Parent
|
||||
close(fd);
|
||||
waitpid(pid, 0, 0);
|
||||
image = imlib_load_image_immediately_without_cache(tmp_filename);
|
||||
image = imlib_load_image_immediately(tmp_filename);
|
||||
unlink(tmp_filename);
|
||||
}
|
||||
}
|
||||
} else
|
||||
#endif
|
||||
{
|
||||
if (cached) {
|
||||
image = imlib_load_image_immediately(path);
|
||||
} else {
|
||||
image = imlib_load_image_immediately_without_cache(path);
|
||||
}
|
||||
image = imlib_load_image(path);
|
||||
}
|
||||
imlib_context_set_image(image);
|
||||
imlib_image_set_changes_on_disk();
|
||||
return image;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user