gtk3

Where can I download precompiled GTK+ 3 binaries or windows installer? [closed]

断了今生、忘了曾经 提交于 2019-11-27 18:10:56
I have taken a look at GTK+3 and I like it. But unfortunately compiling from source has never worked for me. Is there any okace with decent binaries or even better, a windows installer? 07/04/2017 update: To make it clear, since 23/06/2017, the GTK+ project doesn't provide binary bundles for Windows. These are now provided by the MSYS2 project, with the blessing of the GTK+ team. MSYS2 provides the most up-to-date versions of GTK+ for Windows, as well as a complete toolchain, and other useful GTK-related development tools like: Glade , the GUI designer Devhelp , the offline documentation

How do I make a gtkwindow background transparent on Linux?

China☆狼群 提交于 2019-11-27 16:43:21
问题 I would like to make the background transparent, and only the widgets are visible. Here is my code: #include <gtk/gtk.h> int main (int argc, char *argv[]) { gtk_init (&argc, &argv); GtkWidget *window = gtk_window_new (GTK_WINDOW_TOPLEVEL); // Title gtk_window_set_title(GTK_WINDOW (window), "Transparency"); //gtk_window_set_opacity(GTK_WINDOW(window), 0.5); // CSS GtkCssProvider *provider = gtk_css_provider_new(); GdkDisplay *display = gdk_display_get_default(); GdkScreen *screen = gdk_display

how to set a specific css class to a widget in gtk3? (c)

∥☆過路亽.° 提交于 2019-11-27 16:12:49
问题 I'm trying css in gtk3 and I don't understand how to use specific class. C code: provider = gtk_css_provider_new(); display = gdk_display_get_default(); screen = gdk_display_get_default_screen (display); gtk_style_context_add_provider_for_screen (screen, GTK_STYLE_PROVIDER(provider), GTK_STYLE_PROVIDER_PRIORITY_USER); gtk_css_provider_load_from_path(GTK_CSS_PROVIDER(provider),"styles.css",NULL); enter_button = gtk_button_new_with_label("Print"); g_signal_connect(G_OBJECT(enter_button),

GTK3 and multithreading, replacing deprecated functions

喜欢而已 提交于 2019-11-27 15:09:51
问题 I would like to replace deprecated functions gdk_threads_enter()/leave() in my application that uses threads. The application as it is now, works perfect ( although i am not sure if this is the right way to do it ). My main loop, runs the gtk_main and the signal handlers. When i receive a start button, i start a thread, that runs in the background along the main. How can i update the GUI from that thread. I know per the Documentation of GTK3 and GDK3, they say avoid it by using gdk_threads

How do you install GTK+ 3.0 on Windows?

谁说我不能喝 提交于 2019-11-27 11:09:00
问题 Trying to setup GTK+ 3.0 on Codeblocks Win7. Having some trouble finding exactly how to do this. The GTK website directs you to msys2. It seems there was once a direct download on the GTK site for an all-in-one Windows bundle that is no longer there. Having followed the instructions, installed and updated msys2, I see no reference to GTK+, in the installed files or on the mysys website that GTK directs you to. Its seems very linuxy in terms of being unnecessarily and stupidly unclear to do

Can I make Eclipse on Ubuntu look more compact? [duplicate]

浪子不回头ぞ 提交于 2019-11-27 09:19:36
问题 This question already has answers here : Closed 6 years ago . Possible Duplicate: Gigantic Tabs in Eclipse on Ubuntu Back when I was using Eclipse on Ubuntu 10.04 LTS, I found that the tabs and bars used a bit too much vertical spacing, which made the interface a bit too spacey for my taste. However, I didn't find a good way to make this right, and I learned to work with it. But now, after installing Ubuntu 12.10 (or actually Linux Mint 14 Cinnamon), it has gotten even bigger, the vertical

Error 3 error LNK1104: cannot open file 'gtk-3.lib'

假装没事ソ 提交于 2019-11-27 04:36:04
问题 I have been trying to get GTK 3.0 to work, and have followed all the steps here How to configure gtk on Visual studio 2010 And changing to 3.0 where needed to get GTK to work, and it seems to have loaded everything it needs in order to compile, but it gives me the error Error 3 error LNK1104: cannot open file 'gtk-3.lib' Whenever I try to run the program. I am using visual studios 2012, but this was the only place i found anything about getting GTK to run on any visual studios. Here is the

Python GTK+ 3 Safe Threading

房东的猫 提交于 2019-11-26 23:31:02
问题 So what should I run at the beginning of my program to make it thread-safe (or thread-aware as I've read in some places): from gi.repository import Gtk, Gdk, GLib, GObject import threading GLib.threads_init() # ? GObject.threads_init() # YES! Gdk.threads_init() # ? my_app() def my_threaded_func(): Glib.idle_add(lambda: some_gui_action()) Glib.timeout_add(300, lambda: some_gui_action()) t = threading.Thread(target=my_thread_func) t.daemon = True t.start() Gtk.main() Then, what should I do in

How to bind a text domain to a local folder for gettext under GTK3

坚强是说给别人听的谎言 提交于 2019-11-26 19:52:31
问题 With gettext you can either use the default system-wide locale directory, or specify one yourself using bindtextdomain . This is useful when running a program directly from source when the compiled .mo translation files are not available in the system's default location. In Python you would do this: import gettext from gettext import gettext as _ gettext.bindtextdomain('nautilus-image-manipulator', '/path/to/mo/folder') gettext.textdomain('nautilus-image-manipulator') where /path/to/mo/folder

Threading in Gtk python

怎甘沉沦 提交于 2019-11-26 16:57:16
问题 So I'm busy writing an application that needs to check for updates from a website after a certain amount ouf time, I'm using python with Gtk +3 main.py file class Gui: ... def on_update_click(): update() app=Gui() Gtk.main() update.py file def update(): #check site for updates time.sleep(21600) #check again in 6hrs I suspect I'll have to use threading. my thinking is: Gtk.main() runs the main thread. when the user clicks the update button, update() runs in the background. #thread 2 Is my