diff options
| author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2009-05-09 17:53:12 -0300 | 
|---|---|---|
| committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2009-05-09 17:53:12 -0300 | 
| commit | 74518caa8b1b70dc11519454d69e8f449d2c4da2 (patch) | |
| tree | 14f81b0e92cd7f70348eaaa0757b07e40e12fb96 | |
| parent | 2714d9d18c8ccb050c7569ec63049fbfe4aaabc0 (diff) | |
Disable shell view while trying to establish connection
| -rw-r--r-- | hardinfo2/menu.c | 2 | ||||
| -rw-r--r-- | hardinfo2/remote.c | 2 | ||||
| -rw-r--r-- | hardinfo2/shell.c | 1 | 
3 files changed, 4 insertions, 1 deletions
| diff --git a/hardinfo2/menu.c b/hardinfo2/menu.c index 3178f79d..2a8b6922 100644 --- a/hardinfo2/menu.c +++ b/hardinfo2/menu.c @@ -58,7 +58,7 @@ static GtkActionEntry entries[] = {       NULL,       G_CALLBACK(cb_connect_to)}, -    {"ManageAction", GTK_STOCK_OPEN, +    {"ManageAction", NULL,       "_Manage hosts...", NULL,       NULL,       G_CALLBACK(cb_manage_hosts)}, diff --git a/hardinfo2/remote.c b/hardinfo2/remote.c index 5a46f5a5..6021ee49 100644 --- a/hardinfo2/remote.c +++ b/hardinfo2/remote.c @@ -312,6 +312,8 @@ static void remote_connect_direct(gchar *hostname,      g_free(xmlrpc_server_uri);      xmlrpc_server_uri = g_strdup_printf("http://%s:%d/xmlrpc", hostname, port); +     +    shell_view_set_enabled(FALSE);      if (remote_version_is_supported()) {  	if (!load_module_list()) { diff --git a/hardinfo2/shell.c b/hardinfo2/shell.c index 5bbead94..0df54b64 100644 --- a/hardinfo2/shell.c +++ b/hardinfo2/shell.c @@ -262,6 +262,7 @@ void shell_view_set_enabled(gboolean setting)      gtk_widget_set_sensitive(shell->hpaned, setting);      shell_action_set_enabled("ViewMenuAction", setting); +    shell_action_set_enabled("RemoteMenuAction", setting);      shell_action_set_enabled("ConnectToAction", setting);      shell_action_set_enabled("RefreshAction", setting);      shell_action_set_enabled("CopyAction", setting); | 
