Re: Notification Widget
- From: Vikram Ambrose <noel ambrose gmail com>
- To: gtk-list gnome org
- Subject: Re: Notification Widget
- Date: Wed, 17 Mar 2010 19:44:05 -0400
Now that we're done with who-knows-the-philosophy-of-libnoitfy better,
maybe we can get back to writing some code?
Three items remaining to solve for my notification widget's boarderless,
GTK_WINDOW_TOPLEVEL GtkWindow.
Vikram Noel Ambrose wrote:
[SNIP]... all my "notification widget" logic seems to work except:
2. If I add a gtk_box into the window and then later
gtk_widget_destroy an item from the box, the notification window does
not automatically resize. Calling either gtk_widget_queue_resize or
gtk_widget_reset_shapes on the notification window has no effect. How
do I get the notification window to resize once I've removed something
from it?
3. If the user moves the main application's TOPLEVEL window, the
notification window does not move with it. I have set
gtk_window_set_transient_for() . How do I get the notification's
TOPLEVEL window to move with the main application's TOPLEVEL window?
4. I don't know how to position the notification window properly. I'd
like the notification window to fit into the bottom left corner of the
main application's TOPLEVEL window.
------Main Window ------
| |
| |
| |
| |
|--NotifyWin--- |
| | |
| | |
------------------------
Hopefully my ascii art came through right. At the moment, I'm asking
the main window for its geometry and then doing the following
calculations.
Notify_X = Main_X;
Notify_Y = Main_Y + Main_Height - Notify_reqHeight;
The problem seems to be that Notify window's requested height can only
be captured after the gtk_window_show. This means I'll be moving the
window to its position while its visible to the user. I don't want to
do this. Is there a way of getting the notify window to just align
itself to that corner automagically? Window gravity perhaps?
Vik.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]