Changeset 2320

Show
Ignore:
Timestamp:
01/24/08 16:34:10 (12 months ago)
Author:
edmanm
Message:

r74@lysithea: edmanm | 2008-01-24 16:34:07 -0500
Here's the other, uh, 90% of r2319.

Location:
vidalia/trunk
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • vidalia/trunk/CMakeLists.txt

    r2319 r2320  
    5555  check_include_file_cxx("qsystemtrayicon.h" HAVE_QSYSTEMTRAYICON_H) 
    5656  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) 
    6258  endif(HAVE_QSYSTEMTRAYICON_H) 
    6359endif(NOT APPLE) 
  • vidalia/trunk/config.h.in

    r2223 r2320  
    11 
    22#cmakedefine HAVE_QSYSTEMTRAYICON_H 
     3 
     4#cmakedefine USE_QSYSTEMTRAYICON 
    35 
    46#cmakedefine HAVE_QSSLSOCKET_H 
  • vidalia/trunk/src/vidalia/mainwindow.cpp

    r2222 r2320  
    6868/* Decide which of our four sets of tray icons to use. */ 
    6969#if defined(Q_WS_WIN) 
    70 #if defined(HAVE_QSYSTEMTRAYICON_H) 
     70#if defined(USE_QSYSTEMTRAYICON) 
    7171/* QSystemTrayIcon on Windows wants 16x16 .png files */ 
    7272#define IMG_TOR_STOPPED  ":/images/16x16/tor-off.png" 
  • vidalia/trunk/src/vidalia/tray/trayicon.cpp

    r2310 r2320  
    7272TrayIcon::mouseButtonPress(QMouseEvent *event) 
    7373{ 
    74 #if defined(Q_WS_X11) && !defined(HAVE_QSYSTEMTRAYICON_H) 
     74#if defined(Q_WS_X11) && !defined(USE_QSYSTEMTRAYICON) 
    7575  if (_contextMenu) { 
    7676    _contextMenu->popup(event->globalPos()); 
     
    153153#if defined(Q_WS_MAC) 
    154154  qt_mac_set_dock_menu(menu); 
    155 #elif defined(HAVE_QSYSTEMTRAYICON_H) 
     155#elif defined(USE_QSYSTEMTRAYICON) 
    156156  TrayIconImpl::setContextMenu(menu); 
    157157#else 
     
    165165                             BalloonMessageIcon balloonIcon) 
    166166{ 
    167 #if defined(HAVE_QSYSTEMTRAYICON_H) 
     167#if defined(USE_QSYSTEMTRAYICON) 
    168168  QSystemTrayIcon::MessageIcon icon; 
    169169  switch (balloonIcon) { 
     
    189189  /* We always have a tray on Win32 or a dock on OS X */ 
    190190  return true; 
    191 #elif defined(HAVE_QSYSTEMTRAYICON_H) 
     191#elif defined(USE_QSYSTEMTRAYICON) 
    192192  /* Ask Qt if there is a tray available */ 
    193193  return QSystemTrayIcon::isSystemTrayAvailable(); 
     
    204204TrayIcon::supportsBalloonMessages() 
    205205{ 
    206 #if defined(HAVE_QSYSTEMTRAYICON_H) 
     206#if defined(USE_QSYSTEMTRAYICON) 
    207207#if defined(Q_WS_WIN) 
    208208  return (QSystemTrayIcon::supportsMessages() 
  • vidalia/trunk/src/vidalia/tray/trayicon.h

    r2218 r2320  
    3636 
    3737/* Include the correct tray icon implementation */ 
    38 #if defined(HAVE_QSYSTEMTRAYICON_H) 
     38#if defined(USE_QSYSTEMTRAYICON) 
    3939#include "trayicon_qt.h" 
    4040#elif defined(Q_WS_WIN)