Re: Using a GTK/Gnome program under KDE
- From: Tristan Van Berkom <vantr touchtunes com>
- To: Thijs Assies <thijs_a gmx net>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Using a GTK/Gnome program under KDE
- Date: Mon, 28 Oct 2002 16:50:51 -0500
Q1: (KDE / GNOME differences ... )
A1: I havn't got a clue.
Q2: Porting to gtk 2.0
A2: Of course this implies installing
the packages (pango/atk etc...). For the most
part; the depricated stuff can be emulated
with compiler flags
(i.e. in the headers:
#if defined(THAT_FLAG_THAT_I_FORGOT_WHAT_IT_WAS)
#define gtk_widget_destroy g_object_unref
#endif
and alot of such stuff)
If you use the CList; you'll need to change for
some other widget (hmm TreeView I think ?)
I would estimate 3 or 4 hours of
development/testing per 1000 lines of code.
Unless of course you run into some
design issues. (Unless you have to think ;-) )
Sorry I cant help on your major problem :-\
Cheers,
-Tristan
Thijs Assies wrote:
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,
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]