Hi,
ext kumar lomash wrote:
> I have been developing GUI using GTK +2.0 and now I am facing some
> performance issues. Let me first describe
>
> The implementation: -
> The UI consists of layouts (GtkContainers) which have event box and image
> widgets. At any given time only one of the four layouts is visible and the
> user can select a layout at any given time. On an average each layout has 25
> buttons (internally event boxes and image widgets). Every button has 3
> states so there are 6 (3 event + 3 image) widgets for every button. A total
> of 4 layouts make 600 widgets roughly at any given time.
>
> The Problem: -
> Whenever user switches between layouts, I hide other layouts (hide the
> containers) and show the selected layout. The problem is that it takes very
> long to do these operations.
You need to profile your application to see what is the bottleneck.
I think you could do it even on x86 (e.g. using Valgrind/callgrind
+ Kcachegrind).
If you have deep widget hierarchy, you could try reducing levels in it
(deep widget hierarchies can greatly increase the number of signals
needed to propagate changes).
> Is there a better way of doing this? I used event boxes and image widgets in
> place of gtkbuttons because I needed custom shaped buttons with custom
> bitmaps over them.
- Eero
_______________________________________________
maemo-developers mailing list
[email protected]
https://lists.maemo.org/mailman/listinfo/maemo-developers