
* info-daemon/passphrase.glade - Set window title to " " * panel-applet/Makefile.am panel-applet/keyring.png - Deliver to correct place * panel-applet/NMWirelessApplet.[ch] - Add comments - Remove applet->have_active_device as its no longer used - (nmwa_load_theme): load keyring.png too - (error_dialog): remove - (show_warning_dialog): subsume functionality of error dialog too - (nmwa_destroy, nmwa_new): create and dispose of an application-wide GConfClient - (nmwa_handle_network_choice): add to deal with user clicking on an item from the networks menu - (nmwa_menu_item_activated): GtkMenuItem "activate" signal handler - (nmwa_button_clicked, nmwa_setup_widgets): create and populate the menu on startup and when we get broadcasts of changed wireless access points only, not when the user clicks on the button to display the menu (too long of a wait) - (nmwa_add_menu_item): Make active network bold, and place a keyring icon beside networks that are encrypted - (nmwa_dispose_menu, nmwa_menu_item_data_free): dispose of the data we place on each menu item with g_object_set_data() * panel-applet/NMWirelessAppletDbus.[ch] - (nmwa_dbus_get_bool): add method to return boolean value from dbus message - (nmwa_dbus_get_active_network): add (nmwa_dbus_get_string() wrapper to get active network) - (nmwa_dbus_add_networks_to_menu): clean up, only show one instance of each ESSID in the menu - (nmwa_dbus_set_network): force NetworkManager to use a particular network for wireless cards - (nmwa_dbus_init, nmwa_dbus_filter): Trap network appear/disappear and device activation/deactivation signals and rebuild the menu when they happen * src/NetworkManager.c - (main): use new nm_spawn_process() rather than system() * src/NetworkManagerDbus.c - (nm_dbus_devices_handle_request): don't compare AP structure addresses directly, but essids instead. Since we can now force best_aps to stick around, the AP structure to which dev->options.wireless.best_ap points to won't necessarily be in the device's device list if a scan has happened since the best_ap was frozen. Also add "setNetwork" method to freeze the best_ap. * src/NetworkManagerDevice.[ch] - (nm_device_activation_worker): Use new nm_spawn_process() call rather than system() - (nm_device_*_best_ap): add freeze/unfreeze/get_frozen functions, and don't really update the best_ap in nm_device_update_best_ap() if the best_ap is frozen AND in the device's ap list * src/NetworkManagerUtils.[ch] - (nm_spawn_process): add replacement for system() usage git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@48 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
82 lines
2.0 KiB
C
82 lines
2.0 KiB
C
/* NetworkManager Wireless Applet -- Display wireless access points and allow user control
|
|
*
|
|
* Dan Williams <dcbw@redhat.com>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
*
|
|
* (C) Copyright 2004 Red Hat, Inc.
|
|
*/
|
|
|
|
#ifndef NM_WIRELESS_APPLET_H
|
|
#define NM_WIRELESS_APPLET_H
|
|
|
|
#include <gnome.h>
|
|
#include <panel-applet.h>
|
|
#include <panel-applet-gconf.h>
|
|
#include <gconf/gconf-client.h>
|
|
#include <glade/glade.h>
|
|
|
|
typedef enum
|
|
{
|
|
PIX_BROKEN,
|
|
PIX_NO_LINK,
|
|
PIX_SIGNAL_1,
|
|
PIX_SIGNAL_2,
|
|
PIX_SIGNAL_3,
|
|
PIX_SIGNAL_4,
|
|
PIX_CONNECT_0,
|
|
PIX_CONNECT_1,
|
|
PIX_CONNECT_2,
|
|
PIX_CONNECT_3,
|
|
PIX_NUMBER,
|
|
} PixmapState;
|
|
|
|
|
|
typedef struct
|
|
{
|
|
PanelApplet base;
|
|
|
|
DBusConnection *connection;
|
|
gboolean nm_active;
|
|
GConfClient *gconf_client;
|
|
GladeXML *net_dialog;
|
|
|
|
PixmapState pix_state;
|
|
/* contains pointers into the images GList.
|
|
* 0-100 are for link */
|
|
GdkPixbuf *pixmaps[PIX_NUMBER];
|
|
/* pointer to the current used file name */
|
|
GdkPixbuf *current_pixbuf;
|
|
GdkPixbuf *key_pixbuf;
|
|
|
|
GtkWidget *pixmap;
|
|
GtkWidget *button;
|
|
GtkWidget *box;
|
|
GtkWidget *about_dialog;
|
|
GtkWidget *menu;
|
|
|
|
guint timeout_handler_id;
|
|
} NMWirelessApplet;
|
|
|
|
|
|
void nmwa_add_menu_item (NMWirelessApplet *applet, GtkWidget *menu, char *text, char *tag,
|
|
gboolean current, gboolean encrypted);
|
|
|
|
GtkWidget * nmwa_populate_menu (NMWirelessApplet *applet);
|
|
|
|
void nmwa_dispose_menu (NMWirelessApplet *applet);
|
|
|
|
#endif
|