Re: Questions about Gtk::Toolbar

May be I think something wrong (you can do anything you want with your
application of course) but dragging window for any its part looks very
bad idea itself-- as far as I know window positioning is the work of
window manager but gtk. Different people use different windows
managers, some of them does not ever allow user to move any window
(like tiled window managers). I can remember much of ms-windows apps
which interact that way, but can't remember any linux/gnome/gtk
application which I can drag for any its part, including toolbar.

On Thu, Aug 12, 2010 at 9:13 AM, Tao Wang <dancefire gmail com> wrote:
> Hi,
> I created a window with toolbar by UIManager and Gtk::Builder. I want to
> have a feature that when user press mouse button at any place within the
> window, and move the mouse with button pressed, the window will also moved,
> just like what we do on press and move on title bar. (The window doesn't
> have a titlebar and border)
> The Window contains a Toolbar and a Label. I set the event mask of Window
> to:
> And override the function: on_button_press_event() and
> on_motion_notify_event().
> Now, I can press mouse button on the Label and drag the Window to move,
> however, I cannot do the samething on Toolbar. When I press and move mouse
> on Toolbar, I found "on_motion_notify_event()" cannot receive the
> GDK_BUTTON1_MASK from event->state. Does Toolbar stop the GDK_BUTTON1_MASK?
> I tried set event mask of Toolbar, but it doesn't work. How should I let
> "on_motion_notify_event()" successfully receive the event?
> The glade file I used is here:
> The minimized program is here:
> I also have a problem on the button in the Toolbar with Stock Id:
> "gtk-media-play", it's disabled by default. Could anyone tell me why? and
> should I have to set it sensitive to use? And what else Stock items are
> disabled?
> Thank you in advance.
> --
> Regards
> Tao Wang
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org

С уважением, Алексей Саварцов

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