Ticket #175 (closed defect: wontfix)
MOKO_FINGER_WINDOW has to show_all and then hide to initialize
| Reported by: | tonyguan@… | Owned by: | mickey@… |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | openmoko-libs | Version: | unspecified |
| Severity: | normal | Keywords: | |
| Cc: | buglog@…, thomas@… | Blocked By: | |
| Blocking: | Estimated Completion (week): | ||
| HasPatchForReview: | PatchReviewResult: | ||
| Reproducible: |
Description
There are cases that I don't wanna show MOKO_FINGER_WINDOW when it's
initialized, but I have to call _show_all and then _hide to achieve such aim.
And this will cause splash-like effects. I don't think it's good.
Is there some way to avoid this?please refer the following src codes and give
me some advise. thanks!
window = MOKO_FINGER_WINDOW (moko_finger_window_new ());
moko_finger_window_set_contents (window, GTK_WIDGET (vbox));
gtk_widget_show_all (GTK_WIDGET (window));
gtk_widget_hide (GTK_WIDGET (window));
Change History
comment:2 Changed 6 years ago by tonyguan@…
There are some widget will show with conditions.
But the wheel and toolbar depend on the parent window to initiate properly,
mainly for the position.
comment:3 Changed 6 years ago by mickey@…
- Cc thomas@… added
Thomas changed this in dialer, is this ok now or do we need to do something more
in libmokoui?
comment:4 Changed 6 years ago by tonyguan@…
I saw the modification of the application.
g_object_set (G_OBJECT (content_dtmf), "no-show-all", TRUE);
...
...
but that seems not work well, you can see the effect if you have a debug board
and make a phone call or receive one. the display is not proper.
please, do something in the libmokoui.
it may be MOKO_FINGER_WINDOW or wheel or toolbox.
And I will revert the modification for now. Pardon me, thomas.
comment:5 Changed 6 years ago by thomas@…
We do not have a phone working to test incoming calls with, so I apologise if it
caused problems.
The no-show-all property should be used so that you do not need to use
gtk_widget_show_all and then hide certain widgets.
comment:6 Changed 6 years ago by tonyguan@…
The problem is that MOKO_FINGER_WINDOW will not display well when you don't
use gtk_widget_show_all, especially when there are wheel & toolbox attached to
the window.
You can test every window by modifying the main() temporarily.
I guess some modification has to be done to the libmokoui.

Why don't you just leave out the gtk_window_show_all( GTK_WIDGET(window) ) and
call it only when you want to show it?