Mercurial > audlegacy-plugins
changeset 448:da802c766018 trunk
[svn] status icon plugin: ensure that the size-allocate signal is called for the tray icon widget
author | giacomo |
---|---|
date | Tue, 16 Jan 2007 19:40:59 -0800 |
parents | d6da090ec4ee |
children | ddff38b16849 |
files | ChangeLog src/statusicon/si_ui.c |
diffstat | 2 files changed, 19 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Tue Jan 16 16:59:59 2007 -0800 +++ b/ChangeLog Tue Jan 16 19:40:59 2007 -0800 @@ -1,3 +1,11 @@ +2007-01-17 00:59:59 +0000 William Pitcock <nenolod@sacredspiral.co.uk> + revision [978] + - chase dirbrowser removal + + trunk/src/disk_writer/disk_writer.c | 1 - + 1 file changed, 1 deletion(-) + + 2007-01-16 23:00:41 +0000 Alexandr Orlov <alxorlov@pochta.ru> revision [976] Add string "ru" to po/LINGUAS
--- a/src/statusicon/si_ui.c Tue Jan 16 16:59:59 2007 -0800 +++ b/src/statusicon/si_ui.c Tue Jan 16 19:40:59 2007 -0800 @@ -242,9 +242,9 @@ GtkWidget *si_image; GtkWidget *si_rmenu; GtkWidget *si_popup; - gint w, h; - GtkSettings *settings = NULL; GtkTrayIcon *si_applet; + GtkRequisition req; + GtkAllocation allocation; si_applet = si_ui_statusicon_create(); if ( si_applet == NULL ) @@ -279,8 +279,16 @@ gtk_container_add( GTK_CONTAINER(si_evbox), si_image ); gtk_container_add( GTK_CONTAINER(si_applet), si_evbox ); + + gtk_widget_show_all( GTK_WIDGET(si_applet) ); - gtk_widget_show_all( GTK_WIDGET(si_applet) ); + gtk_widget_size_request( GTK_WIDGET(si_applet) , &req ); + allocation.x = 0; + allocation.y = 0; + allocation.width = req.width; + allocation.height = req.height; + gtk_widget_size_allocate( GTK_WIDGET(si_applet) , &allocation ); + return; }