Questions tagged [gtk3]

The GIMP ToolKit (GTK+) in its version 3.x. GTK+ is a highly usable, feature-rich toolkit for creating graphical user interfaces (GUIs) that boasts cross platform compatibility and an easy to use API.

Filter by
Sorted by
Tagged with
0
votes
0answers
19 views

Xamarin.Forms.Platform.Gtk handle main window close button click (application exit)

I'm having Xamarin.Forms application with GTK platform implementation. What I'm trying to do is to show confirmation alert once user closes main window. The alert should ask user if he wants to ...
0
votes
0answers
33 views

Hide terminal window in Haskell GUI program [duplicate]

Using the following initial code, I'm displaying a GTK window: module Main where import Control.Monad import Graphics.UI.Gtk main :: IO () main = do void initGUI window <- windowNew ...
1
vote
0answers
12 views

Is it possible to draw GTK widgets on a GTK drawing area, then update the graphics?

Suppose I draw a line diagram of, in my case, a model train layout. I can change the colors of the various drawing components when I update the drawing, for example indicating an alarm condition. I ...
0
votes
1answer
42 views

GTK+3 compile error "Could not find signal handler `` Did you compile with -rdynamic?

I am making a GUI with Glade and GTK+3. I have followed many tutorials, read many forum posts but still I can get rid of "Gtk-WARNING **: 14:50:06.794: Could not find signal handler '...
1
vote
0answers
15 views

How to isolate GTK3 google protobuf 2.6.1 dependency from Google protobuf 3.8.0 for rest of Cmake project

TL;DR I have run into a dependency issue with mismatched versions of Google Protobufs. END TL;DR I have been using Google protobufs for a while now and I have run into a strange dilemma. I have ...
0
votes
0answers
8 views

What .js file should i load from ublock in webgtk

I am creating a basic web-browser Python/GTK/Webkit2. I want to automatically use ublock-origin in the browser. I tried using the run_javascript() function in WebKit2 and directing it to the hd-main....
1
vote
1answer
48 views

Emit signal from separate thread in glib/gtk

I've programmed a GTK3 application in C. To speed up performance I want to put some calculations in separate threads. Currently I have not yet decided how to exactly implement it. But I think I will ...
0
votes
0answers
62 views

Python3/Gtk3: unable to get the XDS protocol (full) working

I've wrote a simple program that should let archive managers such as Engrampa and Xarchiver to unpack in the destination folder any archive. Here is the sample code: import gi gi.require_version('Gtk'...
2
votes
1answer
45 views

Change font face/size of the top GTKWindow?

I'm trying to use .NET Core GTK. For WinForms, we can select the form, and then click the Font property to change the font face or size within the Form designer. If we change the top form's font, it ...
1
vote
1answer
41 views

How to make a one-window program with GTK, python and glade?

I'd like to write a program that has one main window and if I click on a button it changes the content of the window (or something similar) and the user can go back after that to the "home page". I'm ...
0
votes
0answers
12 views

Gtk::TextView with constant string?

I am using Gtkmm 3+ and What I am trying to do is have the text buffer have the constant string "> " even if the user tries to delete it. In addition when the user pressed return it will automatically ...
0
votes
0answers
19 views

Is There a Windows Display Bug for CSS in GTK+ for GtkTreeView?

Gems/Versions: gtk3 (3.3.6) ruby 2.5.5p157 (2019-03-15 revision 67260) [x64-mingw32] While theming my application in Ruby using GTK+ (GTK3) on Windows 10, the GtkTreeView header (where column ...
1
vote
1answer
45 views

No button click sound when application starts with startup applications

I'm writing GTK application with C. I wanted to add sound after clicking the button. I wanted to do it with as little effort as possible so i used the Bell sign from ascii (7), so it looks like this: ...
0
votes
0answers
18 views

How to resolve invalid signal “media-configure” in gstreamer when used along with GTK+3 source

I am using Gstreamer to create a video streaming server along with GTK+3 for GUI. I followed below procedure to setup the source code in Windows 64bit : GTK+3 is installed using vcpkg Gstreamer (ver ...
0
votes
0answers
23 views

Undefined symbol with GTK: gtk+-3.21.1/lib/libgtk-3.so.0: undefined symbol: g_cclosure_marshal_VOID__POINTERv

I am trying a simple hello world application using GTK+-3.0 on RHEL 6.7 I compiled the application and had to update PKG_CONFIG_PATH and LD_LIBRARY_PATH to get the compile to run successfully. I am ...
0
votes
1answer
25 views

Why is clipping considered to be “too slow with cairo”?

I picked up working on updating the classic GNOME Clearlooks theme (originally GTK2), featured prominently in Fedora 14, for GTK3 by forking the outdated Clearlooks-Phenix project. I've never worked ...
2
votes
1answer
24 views

can gtkmm change the css property of a class programmatically?

Gtk::StyleContext has methods for adding and removing a CSS class. Can I change the property of this class programmatically?
0
votes
0answers
14 views

Is it possible to reproduce a linear gradient for a border in a GTK3 theme?

I'm trying to recreate the original GTK2 Clearlooks theme in GTK3 for Mate. GTK3 supports theming through a subset of CSS: We loosely follow the CSS value definition specification in the ...
0
votes
0answers
14 views

Gtk::StyleContext problems with context_save()

using a Gtk::StyleContext() to draw... onto a Cairo canvas (in a Gtk::Layout). using Gtkmm 3.22 (which is admittedly somewhat dated) While it works as expected with a context retrieved from an ...
1
vote
0answers
22 views

Type checking for PyGObject/GTK3

I'm new to GTK3 so I thought it would be a good idea to use type checking to have instant access to the docs. However I can't make it work. This is the code I'm using to test if it works. import gi ...
1
vote
1answer
28 views

ruby and Gtk::FontChooserDialog.new font size

I am using ruby 2.6.3, installed by compiling the source. When using Gtk::FontChooserDialog.new, the default font size given is 10. Is it possible to call Gtk::FontChooserDialog.new with a different ...
0
votes
0answers
32 views

Why do the CSS fonts not line up with Pango's font description?

I'm trying to figure out why CSS fonts for a Gtk3 app don't line up with Pango's font description. If I create a simple CSS file called label.css like so: label { background-color: rgb(0,0,0); ...
0
votes
0answers
33 views

Gtk3 TextView modifying font size and keeping the current visible text on screen

I'm working with a Textview widget and I can modify the font-size of the Textview widget with the Ctrl key + mouse scroll wheel but my displayed text scrolls when I do it.... How do I keep the current ...
0
votes
1answer
33 views

Increase Gtk application font size

I have a Gtk application, but the font size is quite small and I want to make it bigger. For specific widgets, I increase the font size using CSS, so I tried the following to increase all the font ...
0
votes
0answers
25 views

[resolved]how to get close button widget from headerbar

i want to change default close, maximize, minimize buttons' icon. So i need to get default buttons. In gtk3, i used gtk_header_bar_set_show_close_button to enable default button, and used ...
0
votes
0answers
32 views

Can I make a certain part of a treeview scrollable in PyGTK (PyGObject)

I am using PyGObject to create a GUI, which makes it a little hard for me to understand the C-based documentation that the original project provides. I am looking for a way to make a certain range of ...
0
votes
0answers
38 views

How to find GTK installed by vcpkg in CMake

I install the GTK packages with: vcpkg install gtk:x64-windows I also set the environment variable CMAKE_TOOLCHAIN_FILE to C:\vcpkg\scripts\buildsystems\vcpkg.cmake, but find_package can't find GTK....
2
votes
1answer
35 views

Change font size for a TextView widget in a running Gtk3 Perl app

I'm trying to modify the font size, in a TextView widget, in a running Perl application and I'm having a difficult time of it. Here's one of my attempts(the relevant code is in the function ...
0
votes
2answers
100 views

How can I draw a rectangle over a widget without stealing its events?

I'm trying to implement a custom docking solution using a Gtk.DrawingArea placed upon a Gtk.Overlay, but when I attempt to show the Gtk.DrawingArea during a widget's drag_motion event it triggers the ...
2
votes
1answer
41 views

How do you modify the background color of a label in a running Gtk3(Perl) program?

I can't seem to find the proper way to modify the background color of a label in a running Gtk3 Perl program. I can hack at the CSS and modify it there(and the hack works but its sloppy as ****) but I ...
0
votes
0answers
63 views

How to embed the trimesh show in a python GTK3 app?

I need to make a GTK3 application in Python that includes a mesh visualized with Trimesh. mesh = trimesh.load(filename) mesh.is_watertight mesh.euler_number np.divide(mesh.volume, mesh.convex_hull....
1
vote
1answer
37 views

How do you modify font size in a running Gtk3 app?

I'm trying to find a way(the correct way) to modify the font size in a running Gtk3 Perl app using the Ctrl key plus mouse wheel. I can use the code below to modify the font-size but do you really ...
0
votes
0answers
22 views

Gtkmm 3.6 css - css provider fails to load the style

I'm using c++ and Visual Studio 2019 to test the Gtk library, in order to determine if I can use it for commercial projects I need to develop. I currently installed gtk 3.7.2 and gtkmm 3.6, and I'm ...
1
vote
0answers
20 views

Gtk creates new XEMBED Socket when Socket is moved from one Notebook to another

I am working on a GUI application using Python 3.7 and PyGTK 3.0. My GUI consists of multiple GTK.Notebooks, which are all in the same group and all their tabs are set to be detachable. This way, I ...
0
votes
0answers
29 views

How to emit a signal to an object in GTK3?

I have a subclass MySubClass of Gtk::DrawingArea. Suppose that in the constructor of this class, I want to call the signal signal_draw() (reference here) I tried: void MySubClass::MySubClass() { ...
1
vote
1answer
51 views

GTK3 OpenGL video rendering is mostly green (YUV420P)

I'm trying to render an video through OpenGL in GTK3 on linux. These Vertex and Fragment shaders were used with succes on QT. Actually all the opengl function calls are the same from working examples ...
1
vote
2answers
48 views

which widget is used to show color similar to color palette gtk3

im creating gui application using gtk3 C, where user will enter RGB value, i need to save that color and display it for later use, like color palette, default colorchoose widget is not suitable for my ...
0
votes
0answers
11 views

How to automatically turn on and off Bold tag depending on the cursor position in Gtk TextView (Python)

What I want is something similar to Google Docs or MS Word text formatting. so the text formatting get turned on and off depending on the cursor position. for example when the cursor is after a bold ...
0
votes
0answers
15 views

How to add the ability to insert bold characters in Gtk.TextView (PyGobject)?

I am making a simple app that allows the user to format text on a Gtk.TextView widget, and I want the user to be able to toggle the "bold text" button then start inserting bold characters until he ...
1
vote
2answers
45 views

How can I make a Lollypop like sidebar in Gtk?

I have been trying to make a simple Gtk application that includes a Side Bar similar to the side bar in the Lollypop music player (as seen here https://youtu.be/2IhJCrKz3N4 ), I don't which layout ...
0
votes
0answers
31 views

GTK3 : gtk_window_resize() vs gtk_widget_set_size_request()

I am trying to set [initial] size of GtkWindow but nothing works except of gtk_widget_set_size_request() function. GtkWindow* pw = …; This does not work, it gets some strange size instead: ...
0
votes
1answer
37 views

How to control the distance between a Gtk.Frame and Gtk.HBox inside?

Consider this example: You can see in this window, is a Gtk.Frame, named "Coefficients". Inside of that is a Gtk.HBox. Inside the Gtk.HBox, are ten Gtk.Scales. What I'd like to do, is control the ...
0
votes
0answers
19 views

Gtk_file_chooser_dialog crash app after bundling

I have a simple app with cmake that runs fine at the make step but crash after make install. Using otool at both stages I realised that the app uses /usr/local/Cellar libs at make stage but somehow ...
0
votes
1answer
18 views

Can I insert a zero-width tagged span in a GtkTextView?

I have a GtkTextView in which I would like to have some non-editable spans embedded in an otherwise freely editable document. The problem is, if I delete all the text between two such spans, they "...
1
vote
2answers
52 views

Right way to set GTK3 widget colours to a computed value

In my user interface (coded in Haskell) I want to set some widget background and foreground colours to values computed by the application (as opposed to a theme colour). I initially used ...
2
votes
0answers
46 views

Is there a way to run opengl command on a thread other than gtk's ui thread?

I am working on an project that requires the pipeline creation and render calls to gtk's glarea be made from another thread. I am using epoxy as the gl loader. I am also using mingw's gtk+ build on a ...
2
votes
0answers
41 views

How to convert GTK keyboard event keys to english in any language layouts?

I want to use keyboard chortcuts (like Ctrl+Z/Ctrl+C/Ctrl/V and etc) in my GTK-3 app. I get different keyboard events for different keyboard layouts. For example my keyboard have english and russian ...
2
votes
1answer
104 views

Why do gnome apps ignore parts of gtk 3 themes?

I am extremely new to making gtk 3 themes, and I have created a theme that is working with any app that is using titlebars, but any gnome app (such as shotwell, or rhythmbox) is ignoring the theme ...
0
votes
0answers
18 views

gtk.Entry with autocompletion without user key input [gtk3] [python3]

Working in Python3. I have an gtk3 entry box with completion and a model, a list store. This works as intended, e.g. I type the first few letters of a composer name and all possible completions show ...
0
votes
1answer
37 views

In GTK3, how do I get a DrawingArea to respond keyboard events?

In GTK3, how do I get a DrawingArea to respond keyboard events? Should I connect the DrawingArea with a signal or is it more compicated? I'm using GTK3 with the C language.