Questions tagged [gdk]

Used to tag things that relate to the GIMP Drawing Kit. The GIMP Drawing Kit is the low-level library that provides platform abstraction for the GTK+ widget toolkit.

Best used to tag things that relate to the GIMP Drawing Kit.

Unfortunately there's some overlap with which deals with the (Google) Glass Development Kit.

317 questions
0
votes
1 answer

ubuntu c++ how get the name of the current active keyboard

In Ubuntu C++ how can I get the name of the current keyboard? I want to use a c++ program not the command line.
user3443063
  • 1,455
  • 4
  • 23
  • 37
0
votes
0 answers

How to embed an native application running in debian into Java SWT application?

I am trying to embed a native app running in Debian such as LibreOffice into a Java SWT application. I have written the SWT code in Java. I send the handle of SWT Composite through the JNI call and embed the child window into it. But it is not…
user123
  • 1
  • 1
0
votes
0 answers

Finding visible windows with gdk / wnck

I'm trying to expand a small utility that draws an additional stylised border around a window. I have an i3 desktop with multiple monitors each with multiple workspaces. I can currently happily / find draw ALL windows, but I'm at a point where I…
Chris Phillips
  • 140
  • 1
  • 1
  • 8
0
votes
1 answer

What is the preferred route for accessing Xbox APIs in a C# PC Application

The documentation on GDK and XSAPI is very sparse on mentions of C#. I can see in NuGet packages from 2017-18 that some of these Xbox Live APIs were available natively, but they seem to have moved away from that way of providing the APIs. Are there…
L-S
  • 107
  • 7
0
votes
1 answer

How to correct GTK theme difference across platforms?

I have a GTK3 application with buttons which contain a transparent image over a coloured background, when I compile it on a Linux Mint machine I get a perfectly normal "flat" image, but when I compile it on a Raspberry Pi (in Raspbian OS) I get…
John U
  • 2,886
  • 3
  • 27
  • 39
0
votes
0 answers

Simple GTK/GDK app very slow to update/refresh window & buttons

Apologies in advance, I'm not a GTK/GDK master and have been feeling my way round some code written by someone else who's no longer around. Edited to add TL;DR - Full question below with some detail. The TL;DR is that gtk_button_set_image seems to…
John U
  • 2,886
  • 3
  • 27
  • 39
0
votes
0 answers

Get current cursor type with GDK

There is a function gdk_cursor_get_cursor_type(GdkCursor* cursor) in a library GDK. How to get this current cursor type? Getting a current mouse device is quite simple: GdkSeat* seat =…
Ragdoll Car
  • 141
  • 6
0
votes
0 answers

How to retrive information of desktop number for each monitor under linux (by vala language)

I'm working on a plank plugin recently, I want this plugin to display current desktop number and total number of desktops under current monitor. I'm trying to get above numbers by examing root window's properties such as _NET_CURRENT_DESKTOP,…
Hacksign
  • 416
  • 2
  • 7
  • 17
0
votes
1 answer

Writing solely pixel data to a GTK_IMAGE

I have raw pixel data with simple boolean color (on = 1, off = 0). Essentially, a black and white image written in hex. I am trying to place this data on a GTK_IMAGE in my GUI using the following code (NOTE, c++): GtkWidget *image GdkPixbufLoader…
MamaShark
  • 19
  • 2
0
votes
0 answers

Are there any ways to loop in a button press callback method until the button is released?

So im using gtkmm specifically here. What I'm working on: I'm implementing a feature in which when I press in a certain window a parameter is increased/decreased depending on if the mouse moves left/right. What needs to be done: To be able to…
0
votes
1 answer

Rust. GTK3. get_screen() method not found in `gtk::Window`

I want to use css for my window using "add_provider_for_screen" method. pub fn add_provider_for_screen(screen: &gdk::Screen, provider: &impl IsA, priority: u32) To do this, I need to convert the window to a GdkScreen using the…
Aiany
  • 13
  • 2
0
votes
1 answer

GTK: How do I grab keyboard input for a dialog/splash window, so that keyinput works out of window region?

I noticed that when my mouse is out of the dialog area, the keyboard input stops working. This is detrimental since I want this small app to grab keyboard, so that I could handle it through keyboard without having to move my mouse. I…
Abastro
  • 73
  • 1
  • 6
0
votes
1 answer

Concurent memory access from a GDK Event handler and GtkDrawinaArea on_draw function

I am implementing a simple program that will allow me to place rectangles in a grid when I click on an empty placement in a grid. I have also made it scrollable, so that the size of the grid can be quite big. Here is a brief overview of what it…
Vladouch
  • 165
  • 1
  • 7
0
votes
1 answer

How do you use GdkRectangle to determine whether you size-allocate is growing or shrinking?

I have a callback for the size-allocate signal on my GtkScrolledWindow. I want to scroll to the right when I am adding stuff to that window. This works fine but introduces a subtle bug when removing items from that window. I would like to only…
Mad Rapper X
  • 311
  • 4
  • 16
0
votes
1 answer

How to use set_source_pixbuf in rust?

I have a code where i use set_source_pixbuf, use gdk::prelude::*; use gdk_pixbuf::{Colorspace, Pixbuf}; use gtk::prelude::*; use std::sync::{Arc, Mutex}; use super::prelude::*; mod control_panel; use…