I am using Gtkmm4, and lots of API has been removed. In Gtk3 one could use Gtk::Window::get_xid (inherited from Gdk::Window), but thats not possible anymore, because Gdk::Window has been renamed to Gdk::Surface, and Gtk::Window seems to not inherit from it anymore. But, one can always get the XId of a Gdk::Surface using GDK_SURFACE_XID(surface). How can i get the Gdk::Surface of a Gtk::Window, or alternatively, get the XId from a Gtk::Window directly ?
Note : i need only solutions using Gtkmm 4, not Gtkmm 3 !
How to get the XId of a Gtk::Window in Gtkmm4
621 Views Asked by TheEagle At
1
There are 1 best solutions below
Related Questions in C++
- C++ using std::vector across boundaries
- Linked list without struct
- Connecting Signal QML to C++ (Qt5)
- how to get the reference of struct soap inherited in C++ Proxy/Service class
- Why we can't assign value to pointer
- Conversion of objects in c++
- shared_ptr: "is not a type" error
- C++ template using pointer and non pointer arguments in a QVector
- C++ SFML 2.2 vectors
- Lifetime of temporary objects
- I want to be able to use 4 different variables in a select statement in c ++
- segmentation fault: 11, extracting data in vector
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- How can I print all the values in this linked list inside a hash table?
- Configured TTL for A record(s) backing CNAME records
Related Questions in X11
- How to edit the xorg.conf
- What exactly is X11 Channel
- Integrating XCB and libX11 event loops - hanging on select/poll inside Xt
- When I use hsqldb I have problems with GUI (JavaFx)
- X11 Xterm Keyboard layout is off by one or worse.
- libX11: XPutImage first call
- Wine InnoSetup CentOs
- How can I get screenshot from all displays with X11?
- How does Mplayer interface with external windows?
- Create window without title bar
- `XSetWMNormalHints` and `XSetWMSizeHints`
- X11: how to run an application after login?
- Xscreensaver renders nothing
- X11/Xorg to X11/Xorg developer OSX
- Why does XGrabKey return BadRequest?
Related Questions in XLIB
- Is it possible to upload an X client to a Linux server and show it like a website?
- Xlib xinput test device status if it got hanged
- XLib application not redrawing unless resized
- Xlib - Problems taking an screenshot
- CGO converting Xlib XEvent struct to byte array?
- Program with graphics being aborted, even though XInitThreads was called
- `XSetWMNormalHints` and `XSetWMSizeHints`
- window always on top using xlib
- al sending fake keyboard events, whitespace issues
- XLib: 'Soft-Closing' a window
- Redefine function name in a static library
- implement "X PRIMARY selection event monitor"
- After XResizeWindow, new window content drawn is not displayed
- How to darken image using x-window lib in linux
- Python xlib change cursor
Related Questions in GTKMM
- gtkmm compiler error when connecting signal
- Gtkmm - Save Gtk::DrawingArea to file
- Gsv::buffer error
- How to add a response to a button with Gtkmm
- GTK3: Mouse vanishes when using drag and drop
- Cannot embed gnuplot x11 window into Gtk3 socket
- How to retrieve node and particular element string from xml file in C++ using libxml2 without using xpath?
- How to launch a window as a function of the size of the screen?
- GtkOverlay not passing through input events
- GTKMM/C++11: How to create a custom composite widget out of other widgets?
- gtkmm app ignores system theme in 3.0, while OK in 2.4
- how do you convert a relative path to an absolute path under C++/ gtkmm?
- How to grey out a gtkmm menu item that cannot be clicked on
- Create a vector of grid with Gtkmm
- The signal signal_switch_page() does not work
Related Questions in GTKMM4
- Gtkmm columnview, custom class, large number of columns fails with assertion when selecting a row/column
- GTKMM 4.10 - convert treeview to columnview - obtain coordinates relative to columnview - when popping up a right click context menu
- Why Gdk::Pixbuf not load from resources, when execute outside MSYS2?
- Global Locale Warning using C++ and gtkmm
- gtkmm: How do I use a custom widget in a GtkBuilder XML file?
- GTKMM4 app is crashing on calling window hide()
- gtkmm-4.0 will not link on macOS Monterey
- How to change the entry's font size in gtkmm
- How to move the Gtk::Entry cursor?
- How to get the XId of a Gtk::Window in Gtkmm4
- How do I send text from TextView to 'Export to PDF'?
- gtkmm 4.0 header build errors when compiling own project
- why isn't GdkEventKey declared anywhere?
- How to create trigger a function when key is pressed in gtkmm?
- How to get a method called when the Gtk::DropDown selected item has changed?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The code that deals with the underlying surfaces got split off into a separate interface,
Gtk::Native, whichGtk::Windowthen implements.Gtk::Nativehas a methodget_surface()which should just work likeGtk::Window::get_window()did in GTK 3.