Running the official JSplitPane demo http://java.sun.com/docs/books/tutorial/uiswing/components/splitpane.html on my Ubuntu system gives a resize cursor like --> over the divider. The behavior of native split panes gives <--> resize cursors.
Does this qualify as a bug that should be reported to Sun (eh, Oracle)? Is there a workaround?
...
I want to add a MenuToolItem to my Toolbar. It contains two RadioMenuItems. However, when I click the drop-down arrow, I see this:
This is my current code:
MenuToolButton reviewModeToolButton =
new MenuToolButton (Stock.Preferences);
toolbar.Add (reviewModeToolButton);
Menu reviewModeMenu = new Menu ();
reviewModeToolButton.Menu...
I'm trying to write a simple gui-based application in pygtk which provides 'live' previewing of text-based markup. The markup processing, however, can be quite computationally expensive and slow to run, so updating the preview on every keystroke is not really viable. Instead I'd like to have the update run only when user input lapses. ...
The program saves a settings file as text which contains floating point numbers of type long double. The settings file can only be saved via the GUI (GTK2), while files can also be loaded via the command line and without bringing up the GUI.
Unfortunately, a user reports that in the files he has saved, due to his locale setting, the num...
According to GObject reference
g_signal_connect_swapped(instance, detailed_signal, c_handler, data); connects a GCallback function to a signal for a particular object. The instance on which the signal is emitted and data will be swapped when calling the handler.
I don't quite get what this means. Does this mean that the data will ...
Apart from GTextView being multiline and able to display text in different styles (font, color etc. using tags), what are other obvious differences between the two?
...
How can I get a multi-platform system colors collection in GTK# (like System.Drawing.SystemColors in .NET)?
I want an equivalent to System.Drawing.SystemColors.Control and System.Drawing.SystemColors.Highlight, ...
...
My program draws circles moving on the window. I think I must be missing some basic gtk/cairo concept because it seems to be running too slowly/stutteringly for what I am doing. Any ideas? Thanks for any help!
#!/usr/bin/python
import gtk
import gtk.gdk as gdk
import math
import random
import gobject
# The number of circles and the w...
I am writing a custom widget for Gtkmm that is supposed to display a huge dataset (imagine something like a 4096x256 character datasheet).
Mostly for reasons of elegance, but also for a possible usage in a Glade/Gtk-Builder editor, I want this widget to support ScrolledWindow natively, that is, once it is set as the child of ScrolledWin...
Hi.
i'm creating a dialog that finds out what is focused element.
that's what i wrote:
import gtk
import gobject
class FocusedElementPath(gtk.Dialog):
def __init__(self, parent, title=None):
gtk.Dialog.__init__(self, title or 'Show path', parent)
self.catch_within = parent
self.catch_focus = True
...
I am using opencv 1.0.0 and gtk2.0. I want to grab images continuously from a video stream. So far I have successfully been able to grab still image. This is non standard IP camera not VGA/USB /V4L one so need to know explicit method to refresh or update images continuously for video streaming!
GtkWidget *image;
...
...
IplImage* ba...
From reading the documentation, it seems like you must send an array of bytes as the data. That makes sense for cross-program interoperability, but I just want to exchange data within my application. Is it possible to pass an object reference as the data?
...
self.button = gtk.Button(stock=gtk.STOCK_DELETE)
Only Shows:
Delete
...
Hi - How can I install GTKMM on a Red Hat enterprise Linux 3?
...
I'm trying to use g_rename and compiler gives me strange message "error: called object ‘rename’ is not a function" for line in code "if (g_rename(old_file_name, full_new_file_name) == -1)".
I don't understand why.
I'm compiling with command "cc -Wall -g pkg-config --cflags --libs gtk+-2.0 app.c -o app".
Gcc version = gcc (Ubuntu 4.4....
I'm testing a window that looks something like this:
Dragging a Tag to a Card links the Tag to the Card. So does dragging a Card to a Tag.
It's meaningless to drop a tag between two cards, or a card between two tags. I can ignore these outcomes in the Handle...DataReceived function like this:
if (dropPos != TreeViewDropPosition.Into...
Basically, what I want to do is put some buttons before the tabs in a gtk.Notebook. I tried making my own notebook type widget and it worked well, but it would have required lots more work to make it as flexible as I would like, also it wasn't as efficient.
Here is a mock-up of what I'm trying to achieve: http://imagebin.ca/view/84SC0d....
When I add many different timeouts (with each intervall==0) in a thread, which is not the main thread (where gtk_main() resides)...
g_timeout_add(0, func, NULL);
... will then the different func() callbacks occur in the same order I called the corresponding g_timeout_add()'s?
The reason I'm asking is because GTK# is using internally...
I have a ListStore modeling a list of Tags. This list may change apart from the ListStore. What I'd like to do is listen to the TagRemoved event in my TagList class, and remove the Tag from the ListStore when the event is triggered. However, I can't seem to find a way to search a ListStore for the row containing a given Tag, so that I ca...
I am using glib in my application, and I see there are convenience wrappers in glib for C's remove, unlink and rmdir. But these only work on a single file or directory at a time.
As far as I can see, neither the C standard nor glib include any sort of recursive directory walk functionality. Nor do I see any specific way to delete an ent...