Re: Preventing fade on loss of focus?
On Tue, Sep 6, 2016 at 3:54 PM, Mark Farverwrote: > I launch gstreamer as if it was an embedded video, but the output > plugin supplied by the graphics vendor (imxeglvivsink) still causes > the GTK main window to lose focus even when handed a parent window id. I never found a way to make gstreamer render on my window so I wouldn't lose focus, but a workaround was to load a stylesheet that overrides the default behavior and keeps the same font color for labels whether the window is active or inactive: ---my-app.css GtkLabel { color: black; } GtkLabel:active { color: black; } GtkLabel:inactive { color: black; } --- ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Preventing fade on loss of focus?
On Tue, Sep 6, 2016 at 3:26 PM, Gergely Polonkaiwrote: > how exactly do you play the video? Do you open a separate video player like > Totem, or you embed it somehow to your main window? I launch gstreamer as if it was an embedded video, but the output plugin supplied by the graphics vendor (imxeglvivsink) still causes the GTK main window to lose focus even when handed a parent window id. /* Initialize GStreamer */ gst_init (NULL, NULL); data.playbin = gst_element_factory_make ("playbin", "playbin"); /* Create the IMX EGL Sink */ data.sink = gst_element_factory_make ("imxeglvivsink", "videosink"); g_object_set (GST_OBJECT (data.sink), "parent", gtk_widget_get_window (mainwindow), NULL); g_object_set (GST_OBJECT (data.sink), "borderless-window", TRUE, NULL); //w = 400; h = 300; /* Create the IMX EGL Sink */ g_object_set (GST_OBJECT (data.sink), "window-width", w, NULL); g_object_set (GST_OBJECT (data.sink), "window-height", h, NULL); g_object_set (GST_OBJECT (data.sink), "window-x-coord", x, NULL); g_object_set (GST_OBJECT (data.sink), "window-y-coord", y, NULL); snprintf(cmd, sizeof(cmd), "file://%s", filename); g_object_set (data.playbin, "uri", cmd, NULL); g_object_set (GST_OBJECT (data.playbin), "video-sink", data.sink, NULL); /* Start playing */ gst_element_set_state (data.playbin, GST_STATE_PLAYING); Mark ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Preventing fade on loss of focus?
Hello, how exactly do you play the video? Do you open a separate video player like Totem, or you embed it somehow to your main window? Best, Gergely On Tue, Sep 6, 2016, 21:00 Mark Farverwrote: > I am using GTK3 with Weston/Wayland and when I play a video using > gstreamer my main window loses focus and all the labels dim. This is > not the behavior I want since the video is part of the window. This > is an ATM like kiosk, so there is no user interface issues related to > the loss of focus. > > Is there a way to modify the window system to disable the dimming > feature, or set the focus/unfocused styles the same? > > Thank you > Mark Farver > ___ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list > ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Preventing fade on loss of focus?
I am using GTK3 with Weston/Wayland and when I play a video using gstreamer my main window loses focus and all the labels dim. This is not the behavior I want since the video is part of the window. This is an ATM like kiosk, so there is no user interface issues related to the loss of focus. Is there a way to modify the window system to disable the dimming feature, or set the focus/unfocused styles the same? Thank you Mark Farver ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list