Re: Titles in Gtk::Dialogs

Dear Mr Kjell,

I wrote the sample code as follows,

#include <gtkmm.h>

class DialogTest
:    public Gtk::Dialog
    virtual ~DialogTest();
    Gtk::Box vbox;
    Gtk::Label label;

:    label ("Label"),
    set_title ("Dialog Title");
    set_deletable (false);
    set_border_width (5);
    vbox.pack_start (label, true, true);
    get_content_area()->pack_start (vbox);
    add_button ("Close", Gtk::RESPONSE_CLOSE);


int main (int argc, char *argv[])
        DialogTestApp = Gtk::Application::create (argc, argv, "");

    DialogTest dialogtest;

    return DialogTestApp->run (dialogtest);

And I get still the same result as that described before by me...

I have a png window snapshot... but I don't know where can I upload it.


2014-04-02 18:37 GMT+02:00 Kjell Ahlstedt <kjell ahlstedt bredband net>:
I don't understand what what you mean. Are your dialog titles written twice?
I downloaded the latest versions of gtk+, gtkmm etc. from the git repository today. Then I added a title to one of the message dialogs in gtkmm-documentation/examples/book/dialogs/messagedialog. The attached file shows the dialog, with a title in the title bar. Are your dialogs different?


2014-04-02 11:33, Glus Xof skrev:

2014-03-31 16:38 GMT+02:00 Glus Xof <gtglus gmail com>:
Hi guys,

In current last releases, titles assigned in Gtk::Dialog objects not only appear attached in window decorations but also at the top of the windows themself...

I lookup it up the reference unsuccessfully for the property/method in order to manage the visibility of this kind of "label"...

About this, I just discovered that a relation exists with dialogs decoration property: it appears when dialogs are decorated.

My code is compiled with Gtk+-3.0 (3.12.1) and Gtkmm-3.0 (3.11.9)...

I don't know if it's a new Gtk+ feature, but I'd like to suggest that the visibility of this "label" could be managed in order to choose (as it can be possible) the title showing window areas.

Could anyone help me ?

Attachment: dialogtest.png
Description: PNG image

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]