GIMP Toolkit's Journal|
[Most Recent Entries]
Below are the 10 most recent journal entries recorded in
GIMP Toolkit's LiveJournal:
|Thursday, October 21st, 2010|
Any GTK/GLib coders out there?
How can I determine what program is associated with a given file type. Specifically a file with a .m3u extension ("MP3 audio (streamed").
I'm modifying this program
to send the playlist directly to the user's chosen media player.
I'm working in C, but given the function/method name in any reasonable language I should be able to figure out the system call.
|Tuesday, December 7th, 2004|
I am trying to figure out list widgets in gtk.
I read the docs pertaining to that, and made a small program to test everything out. I constantly encounter a problem.
I have a list, which contains four columns. I set up the columns like so:
ren = gtk_cell_renderer_text_new();
col = gtk_tree_view_column_new_with_attributes(
"Balance", ren, "text", ACT_BAL, NULL);
I am consistantly getting this message when I run the program.(account:803): Gtk-CRITICAL **: file gtktreeview.c: line 9224 (gtk_tree_view_append_column): assertion `column->tree_view == NULL' failed
I narrowed it down to the gtk_tree_view_append_column() call of the last colum. If I comment out that line for the last column, the message disappears. Strangely, the column still displays, and the program works as expected, which doesn't feel right to me.
I hunted around on google tonight, but didn't come up with anything matching my problem.
Anyone have any ideas?
|Thursday, November 4th, 2004|
Hmmmm, not much action around here...I posted this on linuxnewbies but figured it was more applicable here.
So I'm trying to get Emacs key bindings wherever possible in my linux environment, because they are pimp and I hate the arrow keys. But anyway, I put gtk-key-theme-name="Emacs" in .gtkrc-2.0, and that has worked pretty well so far. However, in many applications there are menu shortcuts that are overriding the emacs bindings. For example, in Gaim, Ctrl-B makes the text bold, and I want it to move back one character; and in LogJam, Ctrl-N tries to start a new entry, when I want it to scroll down one line.
So what I'm wondering is if there's a way to override app-specific menu shortcuts with Emacs commands.
I'm running Fluxbox on Gentoo.
|Monday, September 27th, 2004|
radio buttons ...
declaring radio buttons in the header file :
static GtkRadioButton *radio_temper [LAST_TEMP];
than allocating memory for them in the main function and place them in the vbox:
radio_temper[i] = g_object_new(GTK_TYPE_RADIO_BUTTON,"use-underline",TRUE,NULL);
till now (before calling gtk_main() method) G_IS_OBJECT(radio_temper[i]) is TRUE ;
but while getting radio button status from callback function i'm getting : 'G_IS_OBJECT (object)' failed
any ideas ? suggestions ... ?
|Sunday, June 27th, 2004|
different Glib versions ?
reading "Official Gnome 2 Developer's Guide" : g_propagate_error(error_dest,error_src)
if the destination isn't NULL this function simply copies the source to the destination .
However , if the destination is an act NULL , the function frees the source error .
i.e. if error_dest
not NULL just copy error_src
else deallocate error_src
ok . let's try :g_set_error(one_error,HOBBIT_ERROR,HOBBIT_ERROR_PANIC, "HOBBIT_ERROR_PANIC \n");
just do smtng
g_set_error(two_error,QUARK_ERROR,QUARK_ERROR_NO_INPUT, "QUARK_ERROR_NO_INPUT : %s\n", (g_quark_to_string(q)==0)?"TRUE":"FALSE");
just do smtng
trying to run applicatin and getting the output:(process:3196): GLib-WARNING **: GError set over the top of a previous GError or
This indicates a bug in someone's code. You must ensure an error is NULL before it's
The overwriting error message was: QUARK_ERROR_NO_INPUT quark = FALSE
and if i'll put g_error_free(*one_error);
*one_error = NULL;
everything is OK .
what's wrong ? different Glibs' versions?
|Monday, May 17th, 2004|
i'm a newbie to GTK
and trying to set buttons size this way :
0,30); // seems to be OK
but i'm getting a button 330x27 pixels .
how can i set button's size to 30x30 ?
|Monday, April 21st, 2003|
|Friday, April 18th, 2003|
I'm working on writing a 3d_modeler
with GTK+ - I'd like to make sure it's platform independent. How good is GTK+ 2.x at being platform independent? Are there any tricks I should know about? Evan, mostly I'm hoping you'll respond. You seem to know quite a bit about this subject...
|Thursday, June 6th, 2002|
In GTK+/GDK 1.2, given either a GtkWidget * (corresponding to a window) or GdkWindow*, how can I figure out if the corresponding window is visible/has focus?
I've tried GTK_WIDGET_HAS_FOCUS, GTK_WINDOW_IS_SENSITIVE, gdk_window_is_visible and gdk_window_is_viewable, all to no avail... any takers?
GTK developers unite!
I don't know how much of an interest there is in this sort of community, but I got a request and so I made it.
Some relevant links:GTK
, the toolkit itself;LogJam
, a GTK client for LiveJournal,GtkSpell
, a spellchecking addon for GTK that I maintain.