[vlc-devel] commit: Qt: fix systrayIcon menu status to show correct tooltip and status. (Jean-Baptiste Kempf )

git version control git at videolan.org
Thu May 7 02:47:47 CEST 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu May  7 02:46:58 2009 +0200| [f999294c12e0d6d5a659a7e66e85f3e75199dcd1] | committer: Jean-Baptiste Kempf 

Qt: fix systrayIcon menu status to show correct tooltip and status.

Noticed by fenrir.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f999294c12e0d6d5a659a7e66e85f3e75199dcd1
---

 modules/gui/qt4/main_interface.cpp |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp
index 22e4051..ab0eb9a 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -161,6 +161,11 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
      ********************/
     MainInputManager::getInstance( p_intf );
 
+    /*********************************
+     * Create the Systray Management *
+     *********************************/
+    initSystray();
+
     /**************************
      * Various CONNECTs on IM *
      **************************/
@@ -197,6 +202,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
                  this, updateSystrayTooltipStatus( int ) );
     }
 
+
     /* END CONNECTS ON IM */
 
     dialogHandler = new DialogHandler (p_intf);
@@ -271,10 +277,6 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
     updateGeometry();
     resize( sizeHint() );
 
-    /*****************************************************
-     * End everything by creating the Systray Management *
-     *****************************************************/
-    initSystray();
 }
 
 MainInterface::~MainInterface()
@@ -1094,6 +1096,7 @@ void MainInterface::updateSystrayTooltipStatus( int i_status )
                 break;
             }
     }
+    QVLCMenu::updateSystrayMenu( this, p_intf );
 }
 
 /************************************************************************




More information about the vlc-devel mailing list