mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-01 04:28:00 +02:00
2005-10-17 Christopher Aillon <caillon@redhat.com>
* gnome/applet/applet-dbus-info.c: Let D-BUS know that we haven't handled a message when we haven't. git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1032 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
3c1259fd9f
commit
e97f836995
2 changed files with 14 additions and 6 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2005-10-17 Christopher Aillon <caillon@redhat.com>
|
||||
|
||||
* gnome/applet/applet-dbus-info.c:
|
||||
Let D-BUS know that we haven't handled a message when we haven't.
|
||||
|
||||
2005-10-17 Christopher Aillon <caillon@redhat.com>
|
||||
|
||||
* gnome/applet/applet-dbus-info.c:
|
||||
|
|
|
|||
|
|
@ -1110,12 +1110,13 @@ static DBusMessage *nmi_dbus_add_network_address (NMWirelessApplet *applet, DBus
|
|||
*/
|
||||
DBusHandlerResult nmi_dbus_info_message_handler (DBusConnection *connection, DBusMessage *message, void *user_data)
|
||||
{
|
||||
const char * method;
|
||||
const char * path;
|
||||
NMWirelessApplet * applet = (NMWirelessApplet *)user_data;
|
||||
DBusMessage * reply = NULL;
|
||||
const char *method;
|
||||
const char *path;
|
||||
NMWirelessApplet *applet = (NMWirelessApplet *)user_data;
|
||||
DBusMessage *reply = NULL;
|
||||
gboolean handled = TRUE;
|
||||
|
||||
g_return_val_if_fail (applet != NULL, DBUS_HANDLER_RESULT_HANDLED);
|
||||
g_return_val_if_fail (applet != NULL, DBUS_HANDLER_RESULT_NOT_YET_HANDLED);
|
||||
|
||||
method = dbus_message_get_member (message);
|
||||
path = dbus_message_get_path (message);
|
||||
|
|
@ -1164,6 +1165,8 @@ DBusHandlerResult nmi_dbus_info_message_handler (DBusConnection *connection, DBu
|
|||
reply = nmi_dbus_get_vpn_connection_vpn_data (applet, message);
|
||||
else if (strcmp ("getVPNConnectionRoutes", method) == 0)
|
||||
reply = nmi_dbus_get_vpn_connection_routes (applet, message);
|
||||
else
|
||||
handled = FALSE;
|
||||
|
||||
if (reply)
|
||||
{
|
||||
|
|
@ -1171,7 +1174,7 @@ DBusHandlerResult nmi_dbus_info_message_handler (DBusConnection *connection, DBu
|
|||
dbus_message_unref (reply);
|
||||
}
|
||||
|
||||
return (DBUS_HANDLER_RESULT_HANDLED);
|
||||
return (handled ? DBUS_HANDLER_RESULT_HANDLED : DBUS_HANDLER_RESULT_NOT_YET_HANDLED);
|
||||
}
|
||||
|
||||
void nmi_dbus_signal_user_interface_activated (DBusConnection *connection)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue