Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6cde7bef1e | ||
|
|
b9ab0ae58e | ||
|
|
2c90c5640e |
@@ -1,3 +1,7 @@
|
|||||||
|
2017-03-26 0.14.1
|
||||||
|
- Fixes:
|
||||||
|
- Fixed tint2conf problem under FreeBSD (or generally any system using clang).
|
||||||
|
|
||||||
2017-03-26 0.14
|
2017-03-26 0.14
|
||||||
- Enhancements:
|
- Enhancements:
|
||||||
- New plugin: button.
|
- New plugin: button.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# Latest stable release: 0.14
|
# Latest stable release: 0.14.1
|
||||||
Changes: https://gitlab.com/o9000/tint2/blob/0.14/ChangeLog
|
Changes: https://gitlab.com/o9000/tint2/blob/0.14.1/ChangeLog
|
||||||
|
|
||||||
Documentation: [doc/tint2.md](doc/tint2.md)
|
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
|
git clone https://gitlab.com/o9000/tint2.git
|
||||||
cd tint2
|
cd tint2
|
||||||
git checkout 0.14
|
git checkout 0.14.1
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake ..
|
cmake ..
|
||||||
|
|||||||
@@ -199,9 +199,9 @@ pre {
|
|||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1 id="latest-stable-release-0-14"><span class="md2man-title">Latest</span> <span class="md2man-section">stable</span> <span class="md2man-date">release:</span> <span class="md2man-source">0.14</span><a name="latest-stable-release-0-14" href="#latest-stable-release-0-14" class="md2man-permalink" title="permalink"></a></h1><p>Changes: <a href="https://gitlab.com/o9000/tint2/blob/0.14/ChangeLog">https://gitlab.com/o9000/tint2/blob/0.14/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-0-14-1"><span class="md2man-title">Latest</span> <span class="md2man-section">stable</span> <span class="md2man-date">release:</span> <span class="md2man-source">0.14.1</span><a name="latest-stable-release-0-14-1" href="#latest-stable-release-0-14-1" class="md2man-permalink" title="permalink"></a></h1><p>Changes: <a href="https://gitlab.com/o9000/tint2/blob/0.14.1/ChangeLog">https://gitlab.com/o9000/tint2/blob/0.14.1/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
|
cd tint2
|
||||||
git checkout 0.14
|
git checkout 0.14.1
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake ..
|
cmake ..
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
.TH TINT2 1 "2017\-03\-26" 0.14
|
.TH TINT2 1 "2017\-03\-26" 0.14.1
|
||||||
.SH NAME
|
.SH NAME
|
||||||
.PP
|
.PP
|
||||||
tint2 \- lightweight panel/taskbar
|
tint2 \- lightweight panel/taskbar
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# TINT2 1 "2017-03-26" 0.14
|
# TINT2 1 "2017-03-26" 0.14.1
|
||||||
|
|
||||||
## NAME
|
## NAME
|
||||||
tint2 - lightweight panel/taskbar
|
tint2 - lightweight panel/taskbar
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ gchar *import_no_overwrite(const char *filepath)
|
|||||||
if (!g_file_test(newpath, G_FILE_TEST_EXISTS)) {
|
if (!g_file_test(newpath, G_FILE_TEST_EXISTS)) {
|
||||||
copy_file(filepath, newpath);
|
copy_file(filepath, newpath);
|
||||||
theme_list_append(newpath);
|
theme_list_append(newpath);
|
||||||
g_timeout_add(SNAPSHOT_TICK, (GSourceFunc)update_snapshot, NULL);
|
g_timeout_add(SNAPSHOT_TICK, update_snapshot, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
return newpath;
|
return newpath;
|
||||||
@@ -138,7 +138,7 @@ void import_with_overwrite(const char *filepath, const char *newpath)
|
|||||||
if (theme_is_editable(newpath)) {
|
if (theme_is_editable(newpath)) {
|
||||||
if (!theme_existed) {
|
if (!theme_existed) {
|
||||||
theme_list_append(newpath);
|
theme_list_append(newpath);
|
||||||
g_timeout_add(SNAPSHOT_TICK, (GSourceFunc)update_snapshot, NULL);
|
g_timeout_add(SNAPSHOT_TICK, update_snapshot, NULL);
|
||||||
} else {
|
} else {
|
||||||
int unused = system("killall -SIGUSR1 tint2 || pkill -SIGUSR1 -x tint2");
|
int unused = system("killall -SIGUSR1 tint2 || pkill -SIGUSR1 -x tint2");
|
||||||
(void)unused;
|
(void)unused;
|
||||||
@@ -158,7 +158,7 @@ static void menuImportFile();
|
|||||||
static void menuSaveAs();
|
static void menuSaveAs();
|
||||||
static void menuDelete();
|
static void menuDelete();
|
||||||
static void menuReset();
|
static void menuReset();
|
||||||
static void edit_theme();
|
static gboolean edit_theme(gpointer ignored);
|
||||||
static void make_selected_theme_default();
|
static void make_selected_theme_default();
|
||||||
static void menuAbout();
|
static void menuAbout();
|
||||||
static gboolean view_onPopupMenu(GtkWidget *treeview, gpointer userdata);
|
static gboolean view_onPopupMenu(GtkWidget *treeview, gpointer userdata);
|
||||||
@@ -309,7 +309,7 @@ int main(int argc, char **argv)
|
|||||||
argc--, argv++;
|
argc--, argv++;
|
||||||
if (argc > 0) {
|
if (argc > 0) {
|
||||||
load_specific_themes(argv, argc);
|
load_specific_themes(argv, argc);
|
||||||
g_timeout_add(SNAPSHOT_TICK, (GSourceFunc)edit_theme, NULL);
|
g_timeout_add(SNAPSHOT_TICK, edit_theme, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
gtk_widget_show_all(g_window);
|
gtk_widget_show_all(g_window);
|
||||||
@@ -643,11 +643,11 @@ void select_theme(const char *given_path)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Edits the selected theme. If it is read-only, it copies first to ~.
|
// Edits the selected theme. If it is read-only, it copies first to ~.
|
||||||
static void edit_theme()
|
static gboolean edit_theme(gpointer ignored)
|
||||||
{
|
{
|
||||||
gchar *filepath = get_selected_theme_or_warn();
|
gchar *filepath = get_selected_theme_or_warn();
|
||||||
if (!filepath)
|
if (!filepath)
|
||||||
return;
|
return FALSE;
|
||||||
|
|
||||||
gboolean editable = theme_is_editable(filepath);
|
gboolean editable = theme_is_editable(filepath);
|
||||||
if (!editable) {
|
if (!editable) {
|
||||||
@@ -665,6 +665,8 @@ static void edit_theme()
|
|||||||
g_free(filepath);
|
g_free(filepath);
|
||||||
|
|
||||||
destroy_please_wait();
|
destroy_please_wait();
|
||||||
|
|
||||||
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void make_selected_theme_default()
|
static void make_selected_theme_default()
|
||||||
@@ -702,7 +704,7 @@ static void make_selected_theme_default()
|
|||||||
|
|
||||||
static void viewRowActivated(GtkTreeView *tree_view, GtkTreePath *path, GtkTreeViewColumn *column, gpointer user_data)
|
static void viewRowActivated(GtkTreeView *tree_view, GtkTreePath *path, GtkTreeViewColumn *column, gpointer user_data)
|
||||||
{
|
{
|
||||||
edit_theme();
|
edit_theme(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ====== Theme load/reload ======
|
// ====== Theme load/reload ======
|
||||||
@@ -834,7 +836,7 @@ static void load_all_themes()
|
|||||||
have_iter = gtk_tree_model_iter_next(model, &iter);
|
have_iter = gtk_tree_model_iter_next(model, &iter);
|
||||||
}
|
}
|
||||||
|
|
||||||
g_timeout_add(SNAPSHOT_TICK, (GSourceFunc)update_snapshot, NULL);
|
g_timeout_add(SNAPSHOT_TICK, update_snapshot, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -865,7 +867,7 @@ static void reload_all_themes()
|
|||||||
have_iter = gtk_tree_model_iter_next(model, &iter);
|
have_iter = gtk_tree_model_iter_next(model, &iter);
|
||||||
}
|
}
|
||||||
|
|
||||||
g_timeout_add(SNAPSHOT_TICK, (GSourceFunc)update_snapshot, NULL);
|
g_timeout_add(SNAPSHOT_TICK, update_snapshot, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -899,7 +901,7 @@ static void load_specific_themes(char **paths, int count)
|
|||||||
have_iter = gtk_tree_model_iter_next(model, &iter);
|
have_iter = gtk_tree_model_iter_next(model, &iter);
|
||||||
}
|
}
|
||||||
|
|
||||||
g_timeout_add(SNAPSHOT_TICK, (GSourceFunc)update_snapshot, NULL);
|
g_timeout_add(SNAPSHOT_TICK, update_snapshot, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -910,7 +912,7 @@ void refresh_current_theme()
|
|||||||
GtkTreeModel *model;
|
GtkTreeModel *model;
|
||||||
if (gtk_tree_selection_get_selected(GTK_TREE_SELECTION(sel), &model, &iter)) {
|
if (gtk_tree_selection_get_selected(GTK_TREE_SELECTION(sel), &model, &iter)) {
|
||||||
gtk_list_store_set(theme_list_store, &iter, COL_SNAPSHOT, NULL, -1);
|
gtk_list_store_set(theme_list_store, &iter, COL_SNAPSHOT, NULL, -1);
|
||||||
g_timeout_add(SNAPSHOT_TICK, (GSourceFunc)update_snapshot, NULL);
|
g_timeout_add(SNAPSHOT_TICK, update_snapshot, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -925,7 +927,7 @@ void refresh_theme(const char *given_path)
|
|||||||
gtk_tree_model_get(model, &iter, COL_THEME_FILE, &filepath, -1);
|
gtk_tree_model_get(model, &iter, COL_THEME_FILE, &filepath, -1);
|
||||||
if (g_str_equal(filepath, given_path)) {
|
if (g_str_equal(filepath, given_path)) {
|
||||||
gtk_list_store_set(theme_list_store, &iter, COL_SNAPSHOT, NULL, -1);
|
gtk_list_store_set(theme_list_store, &iter, COL_SNAPSHOT, NULL, -1);
|
||||||
g_timeout_add(SNAPSHOT_TICK, (GSourceFunc)update_snapshot, NULL);
|
g_timeout_add(SNAPSHOT_TICK, update_snapshot, NULL);
|
||||||
g_free(filepath);
|
g_free(filepath);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define SNAPSHOT_TICK 190
|
#define SNAPSHOT_TICK 190
|
||||||
gboolean update_snapshot();
|
gboolean update_snapshot(gpointer ignored);
|
||||||
void menuApply();
|
void menuApply();
|
||||||
void refresh_current_theme();
|
void refresh_current_theme();
|
||||||
extern GtkWidget *g_window;
|
extern GtkWidget *g_window;
|
||||||
|
|||||||
@@ -153,7 +153,7 @@ void theme_list_append(const gchar *path)
|
|||||||
g_free(suffix);
|
g_free(suffix);
|
||||||
}
|
}
|
||||||
|
|
||||||
gboolean update_snapshot()
|
gboolean update_snapshot(gpointer ignored)
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
gchar *tint2_cache_dir = g_build_filename(g_get_user_cache_dir(), "tint2", NULL);
|
gchar *tint2_cache_dir = g_build_filename(g_get_user_cache_dir(), "tint2", NULL);
|
||||||
|
|||||||
Reference in New Issue
Block a user