all repos — tint2 @ 3926a0026cd1087c1ab5880dcf6ecfe3b44d6c16

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

src/tint2conf/main.cpp (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/**************************************************************************
*
* Tint2conf
*
* Copyright (C) 2009 Thierry lorthiois (lorthiois@bbsoft.fr)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
**************************************************************************/

#include <string>
#include <stdio.h>
#include <gtkmm.h>
#include <glib.h>

#include "mainwin.h"


// g++ `pkg-config --libs --cflags gtkmm-2.4 --libs gthread-2.0` -o tint2conf main.cpp mainwin.cpp thumbview.cpp

int main (int argc, char ** argv)
{
	// set up i18n
	//bindtextdomain(PACKAGE, LOCALEDIR);
	//bind_textdomain_codeset(PACKAGE, "UTF-8");
	//textdomain(PACKAGE);

	Gtk::Main kit(argc, argv);
	Glib::thread_init();

	MainWin window;

	window.view.set_dir("");
	window.view.load_dir();

	// rig up idle/thread routines
	Glib::Thread::create(sigc::mem_fun(window.view, &Thumbview::load_cache_images), true);
	Glib::Thread::create(sigc::mem_fun(window.view, &Thumbview::create_cache_images), true);

	//Shows the window and returns when it is closed.
	Gtk::Main::run(window);

	return 0;
}