| 132 wgaim_nid.hWnd = hWnd; |
132 wgaim_nid.hWnd = hWnd; |
| 133 wgaim_nid.uID = 0; |
133 wgaim_nid.uID = 0; |
| 134 wgaim_nid.uFlags = NIF_ICON | NIF_MESSAGE | NIF_TIP; |
134 wgaim_nid.uFlags = NIF_ICON | NIF_MESSAGE | NIF_TIP; |
| 135 wgaim_nid.uCallbackMessage = WM_TRAYMESSAGE; |
135 wgaim_nid.uCallbackMessage = WM_TRAYMESSAGE; |
| 136 wgaim_nid.hIcon = icon; |
136 wgaim_nid.hIcon = icon; |
| 137 lstrcpy(wgaim_nid.szTip, "Gaim"); |
137 lstrcpy(wgaim_nid.szTip, PIDGIN_NAME); |
| 138 Shell_NotifyIcon(NIM_ADD, &wgaim_nid); |
138 Shell_NotifyIcon(NIM_ADD, &wgaim_nid); |
| 139 gaim_gtk_docklet_embedded(); |
139 gaim_gtk_docklet_embedded(); |
| 140 } |
140 } |
| 141 |
141 |
| 142 static void systray_change_icon(HICON icon) { |
142 static void systray_change_icon(HICON icon) { |
| 179 char *locenc = NULL; |
179 char *locenc = NULL; |
| 180 locenc = g_locale_from_utf8(tooltip, -1, NULL, NULL, NULL); |
180 locenc = g_locale_from_utf8(tooltip, -1, NULL, NULL, NULL); |
| 181 lstrcpyn(wgaim_nid.szTip, locenc, sizeof(wgaim_nid.szTip) / sizeof(TCHAR)); |
181 lstrcpyn(wgaim_nid.szTip, locenc, sizeof(wgaim_nid.szTip) / sizeof(TCHAR)); |
| 182 g_free(locenc); |
182 g_free(locenc); |
| 183 } else { |
183 } else { |
| 184 lstrcpy(wgaim_nid.szTip, "Gaim"); |
184 lstrcpy(wgaim_nid.szTip, PIDGIN_NAME); |
| 185 } |
185 } |
| 186 Shell_NotifyIcon(NIM_MODIFY, &wgaim_nid); |
186 Shell_NotifyIcon(NIM_MODIFY, &wgaim_nid); |
| 187 } |
187 } |
| 188 |
188 |
| 189 static void wgaim_tray_minimize(GaimGtkBuddyList *gtkblist) { |
189 static void wgaim_tray_minimize(GaimGtkBuddyList *gtkblist) { |