Taskbar Buttons
- From: Glus Xof <gtglus gmail com>
- To: gtkmm-list gnome org
- Subject: Taskbar Buttons
- Date: Fri, 26 Oct 2012 17:23:37 +0200
Hi guys,
Here goes a simple code:
---
#include <gtkmm.h>
class sWindow
: public Gtk::Window
{
public:
sWindow();
virtual ~sWindow(){}
};
sWindow::sWindow()
{
set_title ("2nd Window");
}
class mWindow
: public Gtk::Window
{
public:
mWindow();
virtual ~mWindow(){}
void show_swindow();
private:
sWindow swindow;;
};
void mWindow::show_swindow()
{
set_title ("1st Window");
swindow.show_all();
}
mWindow::mWindow()
{
show_all();
show_swindow();
}
int main (int argc, char *argv[])
{
Glib::RefPtr<Gtk::Application> mApp =
Gtk::Application::create (argc, argv, "org.gtk");
mWindow window;
return mApp->run (window);
}
---
This simply throws two Gtk::Window objects... with their own buttons
on my desktop taskbar, one for each window.
If need to minimize the "1st Window", I only click one of its own
buttons (the "_" in the window decoration or the taskbar one) , while
the "2nd Window" rests visible in screen... but,
(My question is:) There is a way to joint these two windows in the
same button to minimize / maximize them together ?
Glus
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]