aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: 1 [2]

Author Topic: Amule icons (priscilla skin)  (Read 20404 times)

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Amule icons (priscilla skin)
« Reply #15 on: June 21, 2008, 06:23:57 PM »

Turns out this should never happen, because ShowConnectionState() is called at the end of the Apply_Toolbar_Skin() function.

Would be interesting to know why this didn't happen...
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Amule icons (priscilla skin)
« Reply #16 on: June 21, 2008, 08:16:19 PM »

I've changed the behaviour of the function slightly and one can now force the update.

Code: [Select]
Index: src/amuleDlg.cpp
===================================================================
--- src/amuleDlg.cpp (revisione 8719)
+++ src/amuleDlg.cpp (copia locale)
@@ -646,7 +646,7 @@
 }
 
 
-void CamuleDlg::ShowConnectionState()
+void CamuleDlg::ShowConnectionState(bool skinChanged)
 {
  static wxImageList status_arrows(16,16,true,0);
  if (!status_arrows.GetImageCount()) {
@@ -748,7 +748,7 @@
  currentState = ECS_Disconnected;
  }
 
- if (currentState != s_oldState) {
+ if ( (true == skinChanged) || (currentState != s_oldState) ) {
  wxWindowUpdateLocker freezer(m_wndToolbar);
 
  wxToolBarToolBase* toolbarTool = m_wndToolbar->RemoveTool(ID_BUTTONCONNECT);
@@ -1333,7 +1333,7 @@
  wndToolbar->Realize();
 
  // Updates the "Connect" button, and so on.
- ShowConnectionState();
+ ShowConnectionState(true);
 }
 
 
Index: src/amuleDlg.h
===================================================================
--- src/amuleDlg.h (revisione 8719)
+++ src/amuleDlg.h (copia locale)
@@ -118,7 +118,7 @@
  void ResetLog(int id);
 
  void ShowUserCount(const wxString& info = wxEmptyString);
- void ShowConnectionState();
+ void ShowConnectionState(bool skinChanged = false);
  void ShowTransferRate();
 
  bool StatisticsWindowActive()
Logged

niklotea

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
Re: Amule icons (priscilla skin)
« Reply #17 on: July 18, 2008, 04:07:43 PM »

i like your icons...

greek

  • Full Member
  • ***
  • Karma: 2
  • Offline Offline
  • Posts: 128
Re: Amule icons (priscilla skin)
« Reply #18 on: July 19, 2008, 03:40:34 PM »

thaks, you can post feedback. I would like to improve them :)
Logged
Pages: 1 [2]