~gwibber-committers/gwibber/libgwibber-0.0

« back to all changes in this revision

Viewing changes to libgwibber-gtk/entry.vala

  • Committer: Ken VanDine
  • Date: 2010-10-08 16:19:50 UTC
  • Revision ID: ken.vandine@canonical.com-20101008161950-shf4azl5c7jq3ujp
Don't include buttons in the AccountTargetBar for services that aren't capable of sending (LP: #656963)

Show diffs side-by-side

added added

removed removed

Lines of Context:
326
326
            foreach (var k in accounts_table.get_keys()) {
327
327
                HashTable<string,GLib.Value?> account_table = accounts_table.lookup(k);
328
328
                
 
329
                var can_send = false;
 
330
                foreach (var key in account_table.get_keys()) {
 
331
                    if (key == "send_enabled") {
 
332
                        can_send = true;
 
333
                    }
 
334
                }
 
335
 
 
336
                // If there is no send_enabled key, don't display an icon
 
337
                if (!can_send) {
 
338
                    continue;
 
339
                }
 
340
                
329
341
                var username = account_table.lookup("username").get_string();
330
342
                var service = account_table.lookup("service").get_string();
331
343
                var id = account_table.lookup("id").get_string();