gtk

Will GTK's pango and cairo work well in Cocoa and MFC applications.

I'm writing a GUI program and decided to go native on all platforms. But for all the stuff i need to draw myself i would like to use the same drawing routines because font and unicode handling is so difficult and complex. Do you see any negative points in useing Pango/Cairo. Well on MacOSX i havent succeded installing Pango/Cairo yet....

Inserting newlines into a GtkTextView widget (GTK+ programming)

I've got a button which when clicked copies and appends the text from a GtkEntry widget into a GtkTextView widget. (This code is a modified version of an example found in the "The Text View Widget" chapter of Foundations of GTK+ Development.) I'm looking to insert a newline character before the text which gets copied and appended, such ...

How do I edit GTKAssistant on Glade

How do I edit a GTKAssistant and add other GTK widgets with Glade? Every time I try to do this it just goes wrong. ...

converting an array of characters to a const gchar*

I've got an array of characters which contains a string: char buf[MAXBUFLEN]; buf[0] = 'f'; buf[1] = 'o'; buf[2] = 'o'; buf[3] = '\0'; I'm looking to pass this string as an argument to the gtk_text_buffer_insert function in order to insert it into a GtkTextBuffer. What I can't figure out is how to convert it to a const gchar *, which ...

GTK Progressbar pulsing python

How can I get a Progressbar to "pulse" while another function is run? ...

How to access the theming Fonts and Colors on GTK/Gnome

Lets say i want to write a special text editor widget. How can i get the default themed colors for texts, selected text and background and which are the users default fonts? I see that GNOME does define 5 special system fonts and default sizes for this purpose in the GNOME Appearance Configuration dialog, but i haven't found a single w...

Newbie: Render RGB to GTK widget -- howto?

Hi All, Big picture: I want to render an RGB image via GTK on a linux box. I'm a frustrated GTK newbie, so please forgive me. I assume that I should create a Drawable_area in which to render the image -- correct? Do I then have to create a graphics context attached to that area? How? my simple app (which doesn't even address the r...

Finding file icon given a MIME type using GTK

Hi everyone! Is there a way to find out which icon to use for a given MIME type, using GTK/pygtk? I know about gio.File(filename).query_info("standard::icon").get_icon(), but I need to find the icon without having to read the file. ...

MonoDevelop/GTK OS X Usability Issues?

Does anyone else have infuriating usability issues while trying to work with MonoDevelop in OS X Snow Leopard? The ones that interrupt my flow the most are associated with button clicks not responding until I move the window around a little bit. Afterwards, I can get maybe one or two button presses in before I have to repeat moving the w...

In Gtk, is it possible to make widgets fade in and out?

I would like to have a Label (or at least the text on the label) do a quick fade-in. It looks like this is possible in clutter, but I don't want to use clutter until clutter-sharp is packaged for Ubuntu. Is there any way to do this that doesn't involve using clutter? ...

Catch PyGTK TreeView reorder

I have a simple gtk.TreeView with a gtk.ListStore model and set_reorderable(True), I want to catch the signal/event emited when the user reorder through drag&drop the list, but the documentation does not help much: "The application can listen to these changes by connecting to the model's signals" So I tried to connect the model (ListS...

Print the text of GtkTextView

How can I print (for example in a label) the text into a GtkTextView? For GtkLabel and GtkEntry there are gtk_label_get_text() and gtk_entry_get_text(), but for GtkTextView? ...

Multiple selection with GtkCombo

Hi. Somebody knows if it is posible to make a GtkCombo which allows multiple entries selection?In affirmative case how can i make this? ...

Multiple GTK windows with Cairo graphics

I've got a GTK graphics window showing communcation between various devices, and I'd like to bring up another window giving more detail when the user clicks on one of the devices. I'm using pixbufs for the drawing, and the windows won't be modal. What's the simplest way to bring up more windows that can overlap and be moved around inde...

GtkLabel reset and GtkTextView max length

I've a NULL gtklabel. Upon the occurrence of an event, I set a text in this label (with gtk_label_set_text). How can I reset the gtklabel after the event (reset to NULL)? How can I set the max length (characters) of a GtkTextView? What's the easiest way to set the distance from the margin of a widget in a GtkTable? ...

remove border of a gtk.button

Hi, I want to remove the border of the gtk.button, but i Don't know how to do it. I tried with : button = gtk.Button() button.set_style("inner-border",0) but i have an error : the property doesn't exist. I tried too to create a new gtk.Style and use it for the button, but same error. Anyone has an idea ? Thanks ...

Change workarea size of Linux desktop

I'm trying to write a taskbar/panel for Linux (like fbpanel or pypanel) using GTK# and am a little hung up. I've created a Gtk.Window to act as the panel and positioned/resized it appropriately. I've also set its WindowTypeHint to Dock so that it remains on top of other windows. So far it 'looks' like a panel. However, if the panel i...

GTK# on Windows: how to get desktop alpha-blending working?

Subj. I found this and translated into code below. But it shows only a dark-blue rectangle with no transparency at all. class MainClass { public static void Main (string[] args) { Application.Init(); Gtk.Window w = new Gtk.Window(Gtk.WindowType.Toplevel); w.ExposeEvent += new ExposeEventHandler(w_ExposeEv...

How can I create a GUI on top of a Python APP so it can do either GUI or CLI?

Hello, I am trying to write an app in python to control a motor using serial. This all works in a CLI situation fine and is generally stable. but I was wondering how simple it was to add a GUI on top of this code base? I assume there will be more code, but is there a simple way of detecting something like GTK, so it only applied the co...

update table in gtk

I have window that contains a table on screen, now I want to attach a widget to that table I use gtk_table_attach(GTK_TABLE(table), label, ...) the function is correct and it runs without any error but table does not respond to that line I mean there is no change on my table, I think I need something to tell that table update it self...