gtk

Python, Webkit: how to get the DOM after the page has loaded?

In my code I've connected to the WebView's load-finished event. The particular callback function takes a webview object and frame object as arguments. Then I tried executing get_dom_document() on the frame & the webview objects respectively. It seems this method doesn't exist for those objects... PS: i started with the tips i got here h...

Can I use icons with RGBA transparency when using GTK+ drag and drop?

Hi, I am in the process of adding drag and drop support to an existing Mono/C#/GTK# application. I was wondering whether it was possible to use RGBA transparency on the icons that appear under the mouse pointer when I start dragging an object. So far, I realized the following: I can set the bitmap in question by calling the Gtk.Drag.S...

Support for SMIL animation in libwebkt on Ubuntu 10.04

I'm just starting to explore the use of libwebkit in GTK+ applications on Ubuntu 10.04. I was curious about whether SVG with SMIL animation would be supported, so I created a small test using python-webkit: import gtk import webkit view = webkit.WebView() sw = gtk.ScrolledWindow() sw.add(view) win = gtk.Window(gtk.WINDOW_TOPLEVE...

How to change the default font size in the Swing GTK LookAndFeel?

Is there a way to change the default font size in the Swing GTK LaF? The GTK LaF seems to assume 72dpi, so all the fonts are only 3/4 of the size they should be when using a 96dpi screen. See this Fedora bug for details. I'd like to find a workaround in the meantime, while I wait for the fix. I've already tried resetting the font size ...

How to make Gtk+ window background transparent?

I'd like to make the background of a Gtk+ window transparent so that only the widgets in the window are visible. I found a few tutorials: http://mikehearn.wordpress.com/2006/03/26/gtk-windows-with-alpha-channels/ http://macslow.thepimp.net/?p=26 But they both appear to listen to the "expose" event, and then delegate to Cairo to do the...

gtk DrawingArea expand inside Fixed

I currently load a DrawingArea widget inside a Frame - and it always expands to fill the frame. I can then set the configure event on the DrawingArea to allocate a pixmap of the same size as the window, draw on it, then draw the pixmap to the DrawingArea (using draw_drawable). However, now I want to overlay invisible widgets ontop of th...

GtkFileChooserDialog in Cocoa

Hi, I justa want to know if there's a class like GtkFileChooserDialog in Cocoa. This class is used in gtk for opening a file. ...

gtk minimum size

Is there an easy way to request that a GTK widget have a minimum width/height? I know you can do it on the column of a TreeView, but is it available for general widgets? ...

How are "out parameters" represented for Seed JavaScript GObject bindings?

I've just started using Seed for development. One thing that Seed's web page mentions is that it "Maps C-isms (say, out arguments, or enums) to things that make sense in JavaScript." Unfortunately, I can't find any documentation or examples for how out arguments should work. So, for example, the following call in Seed: window.get_size()...

PyGTK - Adding Rows to gtk.TreeStore

After following the official tutorial here: tutorial I'm still having issues adding rows/creating a TreeIter object. Here's what my code looks like: builder = gtk.Builder() self.treeview = builder.get_object("treeview") self.treestore = gtk.TreeStore(str) self.treeview.set_model(self.treestore) self.id = gtk.TreeV...

GtkAboutDialog Close Button Bug

I use GtkAboutDialog and everything works fine except the close button of this widget. All other buttons works fine, I don't know how but all buttons have default callbacks and they create and destroy the windows. But the "Close" button of GtkAboutDialog widget does not work. I can not even see it's widget. So, can I access it? [CLARIF...

NSTextView compatibilty class in Linux

Hi All, Is there any class in Linux system which is compatible to NSTextView in cocoa framework. ...

Bullets and numbering in GtkTextView

Hi All, Is is possible to add bullets and numbering on text in GtkTextView. If so, please let me know with link for tutorial(if exists). Regards, iSight ...

Localisation of application in Linux

Hi All, I have an application where UI language is in English, how can i make its UI set to other languages such as Italy. ...

Writing bullets and number text GTKTextView

Hi All, How can i add bullets and number using GTKTextView in Linux working environment. ...

Saving GtkTreeView data when pressing a button

I have a TreeView connected to a model (a ListStore). The TreeView shows the data that is stored in the ListStore and the ListStore gets updated when the user enters data into a cell, so you could say it works fine. Except in the following case: once the user is done editing, he presses a button in order to go to the next step. If the u...

gtk.treeviewcolumn not sorting

I've gotten a sortable treeview working. Clicking on the columns makes it sort by ascending order, and clicking it again makes it sort by descending order. However, if I click on the column header a third time, it goes to some "unsorted" state, instead of back to ascending. I connected a function to the clicked signal of the column, and ...

Arabic localisation in GTK

Does GTK (on GNU/Linux) support Arabic localisation, if so how can it be done? ...

getting all the misspelled words in gtktextview while using gtkspell

Hi, How can i get all the texts which are misspelled on gtktextview so that i can put those on container and use for future actions. ...

Giving keyboard focus to a GtkMenu

I'm popping-up a GtkMenu at random coordinates on the screen (outside of my application's main window). I'd like to give keyboard focus to this GtkMenu. Since I'm using Windows, I tried: SetForegroundWindow(GDK_WINDOW_HWND(menu->window)); But that causes the menu to immediately disappear, as does: SetFocus(GDK_WINDOW_HWND(menu->wind...