Log in

No account? Create an account
GIMP Toolkit's Journal
[Most Recent Entries] [Calendar View] [Friends]

Below are the 10 most recent journal entries recorded in GIMP Toolkit's LiveJournal:

Thursday, October 21st, 2010
4:27 pm
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
3:18 am
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);
gtk_tree_view_append_column(GTK_TREE_VIEW(view), col);

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
11:03 am
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
8:26 am
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:
for(i=0x00;i<LAST_TEMP;i++){ radio_temper[i] = g_object_new(GTK_TYPE_RADIO_BUTTON,"use-underline",TRUE,NULL); gtk_box_pack_start_defaults(GTK_BOX(vbox[RADIO]),GTK_WIDGET(radio_temper[i])); } 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
5:05 am
different Glib versions ?
reading "Official Gnome 2 Developer's Guide" :
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 to error_dest else deallocate error_src .

ok . let's try :

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
uninitialized memory.

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;

before g_propagate_error(one_error,another_error);
everything is OK .

what's wrong ? different Glibs' versions?
Monday, May 17th, 2004
6:02 pm
buttons size
i'm a newbie to GTK
and trying to set buttons size this way :
gtk_widget_set_usize(GTK_WIDGET(button),30,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
9:32 am
3d Geek Draft Email - Review! Give suggestions!
I'm planning on writing this up as an email and sending it to a ton of people who are interested in 3D development and design. Have a look. Make a comment or two. ;)

Email to 3d GeeksCollapse )
Friday, April 18th, 2003
2:01 am
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
4:26 pm
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?
1:02 am
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.
gtk.org   About LiveJournal.com