gtk

Timed disabling of button in pygtk

I want to show a dialog box with an OK button that is disabled for a short period of time (perhaps 5 seconds). The other buttons would still need to be responsive during this time. ...

How do I get my emacs to *always* use 6x13 on X11

I recently declared .emacs bankrupcy and reorganized my init stuff. In the process, I ripped out all the hacky font selection stuff I had accrued over the years, figuring there are probably easier ways to accomplish what I want in the most modern version of emacs. GNU Emacs 23.0.91.1 (i686-pc-linux-gnu, GTK+ Version 2.14.4) on a GNU/Lin...

Implementing autosave w/o disruption

I have been hacking on the code for Xournal in order to add auto-save functionality. My initial implementation was very dumb: every 60 or so seconds, do a save. The feature ostensibly works. However, after testing it out for a while, I've noticed that when auto-save runs, the application temporarily freezes up, which is quite annoying i...

GtkMozEmbed or WebkitGtk on Windows

Hello, does anyone knows how to compile either GtkMozEmbed or WebKitGtk on Windows? I'm using WebkitGtk on Linux, but now I need to port the application to Windows. I didn't find any binary and failed building from the source. I already have a gcc 3 + GTK+ 2 + make, binutils, etc, working (I can compile GTK+ 2 applications). ...

Should I learn GTK+ or GTKMM?

I am a C# programmer who started using ubuntu about 2 years ago. I'm wanting to learn GUI programming in either C or C++. I don't really like mono, it tends to crash on my system. I have a basic understanding of C++. I have never worked in C, but it looks cool. Which toolkit should I learn/use? Give Pro/Cons of each. Thanks! ...

Vala (C#-like language) compiles to C?

I'm a C# developer who stumbled across a new programming language for linux called vala. It has almost exactly the same syntax as C#, which is awesome. I never really was a big fan of Mono. This allows programmers to write GTK+ apps in a C# style language. My question is: Does vala get compiled into C? ...

How can I change the display text of a MenuItem in Gtk2?

I need to change the display text of a MenuItem. Is there any way of doing this without removing the MenuItem and then adding another one with a different text? ...

Is there a Python library that allows to build user interfaces without writing much code?

I am writing editing front ends in Python since several years now, and I am fed up with micromanaging every UI detail of a window or dialog every single time. Is there a technology that allows me to, say, specify the relations between a GTK+ Glade-designed interface and the tables and records of an SQLite database to do all the middle m...

Is there a Python library for easily writing zoomable UI's?

My next work is going to be heavily focused on working with data that is best understood when organized on a two-dimensional zoomable plane or canvas, instead of using lists and property forms. The library can be based on OpenGL, GTK+ or Cairo. It should allow me to: build widgets out of vector shapes and text (perhaps even SVG based?...

What signals should I catch for clipboard pasting and character insertion in GTK ?

I have a Window with a TextView, and I would like to perform some actions when the user pastes some text. I would also like to know what signal(s) should I catch in order to perform something when the user presses a key inside the TextView. Can you tell me what are the signals I must connect? ...

How can I add a page to a Gtk Notebook widget at runtime?

I have the following code : require "gtk2" # adds a page to the notebook with the given label def create_page(nb,label="untitled") # create a textview tx = Gtk::TextView.new # append it nb.append_page(tx,Gtk::Label.new(label)) end Gtk.init window = Gtk::Window.new window.set_default_size(800,600) window.signal_connect...

What design patterns should I use for a lightweight IDE?

I'm writing a lightweight IDE. I chose Ruby+Gtk2 for the task. I already have a minimal prototype for it, but right now, most of the code is inside my window class. I'll soon start working on the "real deal", but I would like to know what design patterns should I make use of. I'm planning for plugin support too, so that the app will be e...

Method for building lightweight, cross-platform, text editor

I'm planning to build a simple, lightweight text editor that combines a great look with keyboard focused input. I want to have a lot of control over things like antialiasing and all the graphics in general, but I don't care about having a whole library of widgets. Almost the entire UI will be text-based and in the main canvas/window of ...

Find the Window ID of a GTK widget on Mac OS-X

I'm trying to port a GTK-based Linux app to Mac OS-X. I have the GUI working OK but now I need to create a Widget which embeds MPlayer. I should be able to use the -wid option of MPlayer to embed it in my app but I need to find the Window ID. Does anyone know how to find the window ID of a GTK Widget or Container on OS-X ? ...

How do I make beautiful screenshots of web pages using ruby and a unix server?

I'm trying to programatically create beautiful thumbnail images of a large number of web pages that are hosted on my own ruby/rails-based website. I want to be able to code a stand-alone bit of ruby that looks something like this: require 'awesome-screenshot-maker' items.each do |id| url = "http://foo.com/bar/#{id}" shooter = Awes...

Charting widget for GTK or QT

Is there a widget for GTK or QT that would allow me to draw stock charts like this? http://smartquant.com/openquant/openquant_chart.jpg (copy&paste the URL due to hotlinking restriction) Thanks, Joel ...

Catching the scrolling event in gtk#

Which event from which widget should I catch when I need to run some code when ScrolledWindow is scrolled? Ths widgets tree I am using is: (my widget : Gtk.Container) > Viewport > ScrolledWindow I tried many combinations of ScrollEvent, ScrollChild, etc. event handlers connected to all of them, but the only one that runs anything is an...

HTTP uri in a GTK# FileChooserDialog

Can GTK#'s FileChooserDialog be used as a unified file/URI dialog? I'd like it to accept http/https/ftp URIs without "rewriting" them (prepending local directory). Even if I set LocalOnly=false and paste a http://.... uri into the text box inside the filechooser, I cannot get the original entry. Local directory is always prepended to th...

Persistent Windows in PyGTK

Is there a way to force a gtk.Window object to ignore the Window Manager's show/hide commands, such as "iconify" and "show desktop?" I'm trying to create a persistent window, stuck to the desktop, that will not disappear with all other windows when the desktop is exposed. EDIT: I guess what I'm wondering specifically is whether or not ...

Invoking the new NotifyOSD framework in C?

I want to make my GTK+ applications use the new notification area in Ubuntu. How can I do this? An example is shown below: ...