Using a GTK/Gnome program under KDE



Hi, i'm creating a program, called Hottopic, wich allows you to add a topic of one of your faforite forums, And when there is a new reply you'll get a message (the windows version exists quite a while, but unfortunatily no linux version (until now ;-) )

the program is close to a stable release. I created is using GTK1.2 / GNOME1 and it workt. But when i start KDE (on the same computer, gnome/gtk is still installed). it doesnt do anything at all! no mainwindow. noting.

I ltraced the program using GNOME and using KDE and i see a weird thing: When it is started with KDE a lot of code (the most omportant code) is ignored! (i didn't recompile it);

the ltrace log of KDE looks like this:

status_docklet_new(0x080528b0, 0x0805e4a8, 0xbffffa28, 0x0804dc9c, 0x40695622) = 0x080784f0
gtk_signal_connect(0x080784f0, 0x08050cae, 0x0804de48, 0, 0x080528b0) = 4
_gnome_config_get_int_with_default(0x08050cd5, 0, 0, 0, 0x080528b0) = 15
status_docklet_get_type(0x0804dd56, 0x08050cd5, 0, 0, 0) = 47125
gtk_type_check_object_cast(0x080784f0, 47125, 0x0804dd56, 0x08050cd5, 0) = 0x080784f0
status_docklet_run(0x080784f0, 0, 0, 0, 0x080528b0) = 5
gtk_main(0x40695622, 0x406b5704, 0, 0, 0 <unfinished ...>


(after a few minutes i killed it)

the GNOME ltrace log looks like this:

<the same as KDE>
gtk_type_check_object_cast(0x08073768, 47125, 0x0804dd56, 0x08050cd5, 0) = 0x08073768
status_docklet_run(0x08073768, 0, 0, 0, 0x080528b0 <unfinished ...>
gtk_event_box_new(0x403b92b8, 0, 0, 0, 0)         = 0x08082aa0
gnome_popup_menu_new(0x080522b8, 0x40011700, 0xbffff638, 0x0804de53, 0x403b92b8) = 0x08083b48 gnome_popup_menu_attach(0x08083b48, 0x08082aa0, 0, 0x0804de53, 0x403b92b8) = 27 gnome_pixmap_new_from_file_at_size(0x08050ce6, 22, 22, 0x0804de53, 0x403b92b8 <unfinished ...>
g_free(0, 0x4040b7de, 0x403f1d10, 0x404059ea, 0x403f1d10) = 0
g_free(0, 0x4040b7de, 0x403f1d10, 0x404059ea, 0x403f1d10) = 0
g_free(0, 0x4040b7de, 0x403f1d10, 0x404059ea, 0x403f1d10) = 0
< many, many rules >

and the mainwindow startes.

I dont know how i can fix this? does any one knows? it couldn't be because of GTK. gaim, gnome and xchat work fine with KDE

and i've got another question: is the GTK1.2 API REALLY different with the GTK2.0 API? is it easy to port (GNOME1 is a little outdated ;-) ). I was thinking about just compiling it with GTK2.0 and fix the errors :)
Is there a way to make it run on both GNOME1 and 2?


I hope you can understand me :)

greeting,






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]