Re: Taskbar Buttons
- From: jody <jody xha gmail com>
- To: Glus Xof <gtglus gmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: Taskbar Buttons
- Date: Fri, 26 Oct 2012 18:45:27 +0200
The straightforward way would be to catch the close event of the first window,
and then "manually" close the second window.
But maybe there are better ways...
Jody
On Fri, Oct 26, 2012 at 5:23 PM, Glus Xof <gtglus gmail com> wrote:
> 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
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> https://mail.gnome.org/mailman/listinfo/gtkmm-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]