[maemo-commits] [maemo-commits] r13330 - in projects/haf/trunk/hildon-desktop: . libhildondesktop
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Wed Aug 22 12:25:12 EEST 2007
- Previous message: [maemo-commits] r13329 - in projects/haf/trunk/hildon-theme-layout-4: . rc
- Next message: [maemo-commits] r13331 - in projects/haf/trunk/hildon-desktop: . libhildondesktop
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: lucasr Date: 2007-08-22 12:25:10 +0300 (Wed, 22 Aug 2007) New Revision: 13330 Modified: projects/haf/trunk/hildon-desktop/ChangeLog projects/haf/trunk/hildon-desktop/libhildondesktop/hildon-desktop-panel-expandable.c Log: 2007-08-22 Lucas Rocha <lucas.rocha at nokia.com> * libhildondesktop/hildon-desktop-panel-expandable.c (hildon_desktop_panel_expandable_hide_on_delete, hildon_desktop_panel_expandable_constructor): set panel extension window as temporary and hide the window on delete event. Patch from Tapani Palli <tapani.palli at nokia.com>. Fixes NB#64386. Modified: projects/haf/trunk/hildon-desktop/ChangeLog =================================================================== --- projects/haf/trunk/hildon-desktop/ChangeLog 2007-08-22 08:49:00 UTC (rev 13329) +++ projects/haf/trunk/hildon-desktop/ChangeLog 2007-08-22 09:25:10 UTC (rev 13330) @@ -1,3 +1,11 @@ +2007-08-22 Lucas Rocha <lucas.rocha at nokia.com> + + * libhildondesktop/hildon-desktop-panel-expandable.c + (hildon_desktop_panel_expandable_hide_on_delete, + hildon_desktop_panel_expandable_constructor): set panel extension + window as temporary and hide the window on delete event. + Patch from Tapani Palli <tapani.palli at nokia.com>. Fixes NB#64386. + 2007-08-21 Lucas Rocha <lucas.rocha at nokia.com> * libhildondesktop/hildon-desktop-notification-manager.c Modified: projects/haf/trunk/hildon-desktop/libhildondesktop/hildon-desktop-panel-expandable.c =================================================================== --- projects/haf/trunk/hildon-desktop/libhildondesktop/hildon-desktop-panel-expandable.c 2007-08-22 08:49:00 UTC (rev 13329) +++ projects/haf/trunk/hildon-desktop/libhildondesktop/hildon-desktop-panel-expandable.c 2007-08-22 09:25:10 UTC (rev 13330) @@ -306,6 +306,17 @@ return FALSE; } +static gboolean +hildon_desktop_panel_expandable_hide_on_delete (GtkWidget *extension_window, + GdkEvent *event, + gpointer *panel) +{ + hildon_desktop_panel_expandable_hide_extension + (HILDON_DESKTOP_PANEL_EXPANDABLE (panel)); + + return TRUE; +} + static GObject * hildon_desktop_panel_expandable_constructor (GType gtype, guint n_params, @@ -327,6 +338,10 @@ gtk_window_set_type_hint (panel->priv->extension_window, GDK_WINDOW_TYPE_HINT_DIALOG); +#ifdef MAEMO_CHANGES + gtk_window_set_is_temporary (panel->priv->extension_window, TRUE); +#endif + gtk_window_set_decorated (panel->priv->extension_window, FALSE); panel->priv->extension_table = GTK_TABLE (gtk_table_new (1,panel->priv->items_p_row,TRUE)); @@ -353,6 +368,11 @@ (gpointer)panel); g_signal_connect (panel->priv->extension_window, + "delete-event", + G_CALLBACK (hildon_desktop_panel_expandable_hide_on_delete), + (gpointer)panel); + + g_signal_connect (panel->priv->extension_window, "button-release-event", G_CALLBACK (hildon_desktop_panel_expandable_extension_winevent), (gpointer)panel);
- Previous message: [maemo-commits] r13329 - in projects/haf/trunk/hildon-theme-layout-4: . rc
- Next message: [maemo-commits] r13331 - in projects/haf/trunk/hildon-desktop: . libhildondesktop
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]