Gtk, alternate color for GtkMenu items.
Can we have alternate Row color to GtkMenu items? and how to increase menu item spacing size? using Gtk+ and C. ...
Can we have alternate Row color to GtkMenu items? and how to increase menu item spacing size? using Gtk+ and C. ...
How to set gtk "Style Properties" listed in gtk documentation? like for GtkWidget there are Style Properties: "separator-height" gint : Read "separator-width" gint : Read So how to get and set them? using GTK+ and C. Thanks, PP. ...
I have a worker thread spawned from a GUI (for GUI performance), how do I access GUI, such as spawning new windows/widgets from the thread itself? I tried using delegates but it doesn't seem to be working. Any ideas? Possibly examples? Thank you. ...
Hello, I'm writing a GTK-Theme that is pretty dark. It works with most programs but some toolbars look pretty strange (in Bluefish and NetBeans for example). Now I need to get the name of the toolbar widget to write a workaround. ...
I'm using gtk.combo_box_new_text() to make combobox list, this uses a gtk.ListStore to store only strings, so there are some way to add a separator between items without use a complex gtk.TreeModel? If this is not possible, what is the simplest way to use a gtk.TreeModel to able secuential widget addition? ...
Not sure if yall can help this time, as I'm just using this particular program not coding with it... I downloaded Deluge, a free torrent app, and it requires GTK2 Runtime which I've also installed. Unfortunately, on my English WinXP with East Asian Language support Deluge sets itself to Chinese menus and has no option to alter the langu...
I have a treeview with an editable CellRendererText: self.renderer = gtk.CellRendererText() self.renderer.set_property('editable', True) But now I need to launch the edition from code instead from user, this is to focus the user attention in the fact he just created a new row and needs to be named. I tried this but does not work: sel...
Hiya. I used glade to create some gtk buttons. is it possible to add an sdl-opengl window to a glade application ? if so, how ? how can I interact between the gtk events and the sdl events inside the gtk window ? thanks ...
I want to display a gtk.Image with a high level of zoom, but scale the image to a new pixbuf with the gtk.gdk.Pixbuf methods waste a lot of memory and processor. Are there some simply way to display a zoomed image? ...
I'm a newbie programmer writting a program in MonoDevelop in C# and have a porblem with my gtk MessageDialogs. The close button on the window boarders of my GTK Message dialogues require a double click to actually close them. The close button on the dialogue its self works fine. Could someone please tell me how I can fix this below is t...
I trying to set separate style for particular widgets, like for one button with different style and another one with other style. this style will be specified in gtkrc file. I tried following stuff but it did not work. In gtkrc file: style "my-style" { engine "pixmap" { ... } .....
I noticed when a Eventbox is added into a Layout some events are missed, this does not happend for example adding it to a Fixed (very similar widget), I tried to restore the event mask in this way with no sucess: import pygtk import gtk def foo(widget, event): print event pygtk.require('2.0') window = gtk.Window(gtk.WINDOW_TOPL...
Hi, I have recently implemented a scrolling text across an area of limited screen estate using a timers repeating every 100ms, and some simple string appending. However, after this very implementation, I have come to realise that my GUI is getting randomly bugged/corrupted after a certain while. That is to say that some widgets/windows...
Being resonably new to using GTK+, im not fully aware of all its functionality. Basically, I have a GtkTreeView widget that has 4 Columns. I need to update the text displayed in the 4 columns every couple of seconds, but im not aware how to do this in GTK+. I'm aware that I could flush the data using gtk_tree_store_clear, but I'm not ...
Hi, Question regarding GtkBuilder. When we unref builder pointer does it destroys all the screens/widgets the builder had created? if( builder_ptr ) g_object_unref(G_OBJECT(builder_ptr)); Suppose we have created one screen using Glade/XML with some 2-3 top_level windows in it gtk_builder_add_from_file(builder_ptr, "Test.glade...
I want to be able to make a line graph using GTK+ but I'm unsure how to approach this. Has anyone got any hints or tips? ...
I've got a gtk file chooser button on my application I am writing in c# using Mono Develop. I would like to set the file chooser's default location to the users' home directory regardless of what user is running it. I've tried the ~/ short cut - fchFolder1.SetCurrentFolder("~/"); - but this did not work. I was just wondering if there wa...
I want to set my GtkComboBox to have some default value/name, on it as follows: +---------------+---+ | Image Options | X | +---------------+---+ | Image Option 1 | +-------------------+ | Image Option 2 | +-------------------+ | Image Option 3 | +-------------------+ "Image Options" will be just a ...
I have a GTK/C++ program that uses a ScrolledWindow. I keep adding data to the list within the scrolled window, and I want to keep focus on the newest item. But I also want to allow the user to scroll through the data to select an old item. Is there a way to do this? I've looked everywhere but can't find anything. ...
Hi, In Gtk application, there is 1 main loop which listens for events (e.g. mouse click, keyboard, etc). And when a modal dialog popup, the main loop is blocked until user clicks 'OK' in the dialog, right? (i.e. nothing will happen when user clicks on the main window). Is that correct? My question is how can firefox did its modal dia...