Changeset 2320
- Timestamp:
- 01/24/08 16:34:10 (12 months ago)
- Location:
- vidalia/trunk
- Files:
-
- 5 modified
-
CMakeLists.txt (modified) (1 diff)
-
config.h.in (modified) (1 diff)
-
src/vidalia/mainwindow.cpp (modified) (1 diff)
-
src/vidalia/tray/trayicon.cpp (modified) (5 diffs)
-
src/vidalia/tray/trayicon.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
vidalia/trunk/CMakeLists.txt
r2319 r2320 55 55 check_include_file_cxx("qsystemtrayicon.h" HAVE_QSYSTEMTRAYICON_H) 56 56 if (HAVE_QSYSTEMTRAYICON_H) 57 option(WITH_QSYSTEMTRAYICON "Use Qt's tray icon implementation." ON) 58 if (NOT USE_QSYSTEMTRAYICON) 59 ## Disable the use of QSystemTrayIcon 60 set(HAVE_QSYSTEMTRAYICON_H "") 61 endif(NOT USE_QSYSTEMTRAYICON) 57 option(USE_QSYSTEMTRAYICON "Use Qt's tray icon implementation." ON) 62 58 endif(HAVE_QSYSTEMTRAYICON_H) 63 59 endif(NOT APPLE) -
vidalia/trunk/config.h.in
r2223 r2320 1 1 2 2 #cmakedefine HAVE_QSYSTEMTRAYICON_H 3 4 #cmakedefine USE_QSYSTEMTRAYICON 3 5 4 6 #cmakedefine HAVE_QSSLSOCKET_H -
vidalia/trunk/src/vidalia/mainwindow.cpp
r2222 r2320 68 68 /* Decide which of our four sets of tray icons to use. */ 69 69 #if defined(Q_WS_WIN) 70 #if defined( HAVE_QSYSTEMTRAYICON_H)70 #if defined(USE_QSYSTEMTRAYICON) 71 71 /* QSystemTrayIcon on Windows wants 16x16 .png files */ 72 72 #define IMG_TOR_STOPPED ":/images/16x16/tor-off.png" -
vidalia/trunk/src/vidalia/tray/trayicon.cpp
r2310 r2320 72 72 TrayIcon::mouseButtonPress(QMouseEvent *event) 73 73 { 74 #if defined(Q_WS_X11) && !defined( HAVE_QSYSTEMTRAYICON_H)74 #if defined(Q_WS_X11) && !defined(USE_QSYSTEMTRAYICON) 75 75 if (_contextMenu) { 76 76 _contextMenu->popup(event->globalPos()); … … 153 153 #if defined(Q_WS_MAC) 154 154 qt_mac_set_dock_menu(menu); 155 #elif defined( HAVE_QSYSTEMTRAYICON_H)155 #elif defined(USE_QSYSTEMTRAYICON) 156 156 TrayIconImpl::setContextMenu(menu); 157 157 #else … … 165 165 BalloonMessageIcon balloonIcon) 166 166 { 167 #if defined( HAVE_QSYSTEMTRAYICON_H)167 #if defined(USE_QSYSTEMTRAYICON) 168 168 QSystemTrayIcon::MessageIcon icon; 169 169 switch (balloonIcon) { … … 189 189 /* We always have a tray on Win32 or a dock on OS X */ 190 190 return true; 191 #elif defined( HAVE_QSYSTEMTRAYICON_H)191 #elif defined(USE_QSYSTEMTRAYICON) 192 192 /* Ask Qt if there is a tray available */ 193 193 return QSystemTrayIcon::isSystemTrayAvailable(); … … 204 204 TrayIcon::supportsBalloonMessages() 205 205 { 206 #if defined( HAVE_QSYSTEMTRAYICON_H)206 #if defined(USE_QSYSTEMTRAYICON) 207 207 #if defined(Q_WS_WIN) 208 208 return (QSystemTrayIcon::supportsMessages() -
vidalia/trunk/src/vidalia/tray/trayicon.h
r2218 r2320 36 36 37 37 /* Include the correct tray icon implementation */ 38 #if defined( HAVE_QSYSTEMTRAYICON_H)38 #if defined(USE_QSYSTEMTRAYICON) 39 39 #include "trayicon_qt.h" 40 40 #elif defined(Q_WS_WIN)
