~ubuntu-branches/ubuntu/lucid/vinagre/lucid

« back to all changes in this revision

Viewing changes to vinagre/vinagre-mdns.c

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-02-09 16:25:33 UTC
  • mfrom: (1.1.30 upstream)
  • Revision ID: james.westby@ubuntu.com-20100209162533-7p06h6l947irsdyp
Tags: 2.29.90-0ubuntu1
* New upstream release:
 - Features
   + Improved SSH tunneling.
   + Show a message in the first run explaining menu accelerators and
     keyboard shortcuts behavior in Vinagre.
   + Store window size, position, panel state, etc in the XDG_CACHE_DIR
     instead of GConf.
   + Enable the username field for SSH connections.
   + Option to keep the aspect ratio when using scaling.
   + Modernize autotools.
   + SSH plugin uses the username provided from mdns (Avahi).
 - Fixes
   + Fix build on Solaris (Halton Huo).
   + Drop 1px line at toolbar in fullscreen mode.
   + Minor fixes
 - UI translations
* debian/control.in:
  - bump intltool build-dep
  - libx11-dev and libdbus-glib-1-dev build-dep

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
  VinagreConnection     *conn;
72
72
  VinagreBookmarksEntry *entry;
73
73
  BrowserEntry          *b_entry;
74
 
  char                  a[AVAHI_ADDRESS_STR_MAX];
 
74
  char                  a[AVAHI_ADDRESS_STR_MAX], *u = NULL;
75
75
 
76
76
  b_entry = g_hash_table_lookup (mdns->priv->browsers, type);
77
77
  if (!b_entry)
80
80
      return;
81
81
    }
82
82
 
 
83
  for (; txt; txt = txt->next)
 
84
    {
 
85
      char *key, *value;
 
86
 
 
87
      if (avahi_string_list_get_pair (txt, &key, &value, NULL) < 0)
 
88
        break;
 
89
 
 
90
      if (strcmp(key, "u") == 0)
 
91
        u = g_strdup (value);
 
92
 
 
93
      avahi_free (key);
 
94
      avahi_free (value);
 
95
    }
 
96
 
83
97
  avahi_address_snprint (a, sizeof(a), address);
84
98
  conn = vinagre_plugin_new_connection (b_entry->info->plugin);
85
99
  g_object_set (conn,
86
100
                "name", name,
87
101
                "port", port,
88
102
                "host", a,
 
103
                "username", u,
89
104
                NULL);
90
105
  entry = vinagre_bookmarks_entry_new_conn (conn);
91
106
  g_object_unref (conn);