~ubuntu-branches/ubuntu/natty/bamf/natty-proposed

« back to all changes in this revision

Viewing changes to src/bamf-matcher.c

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-09-22 19:21:45 UTC
  • mfrom: (1.1.16 upstream)
  • Revision ID: james.westby@ubuntu.com-20100922192145-jeeyf3enkgk88phv
Tags: 0.2.54-0ubuntu1
* New upstream release.
* cherry pick some patches from upstream too for more fixes in special
  launchers (LP: #622146)
* debian/libbamf0.symbols:
  - update to latest version

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
  VIEW_CLOSED,
39
39
  ACTIVE_APPLICATION_CHANGED,
40
40
  ACTIVE_WINDOW_CHANGED,
 
41
  FAVORITES_CHANGED,
41
42
 
42
43
  LAST_SIGNAL,
43
44
};
417
418
    return;
418
419
 
419
420
  exec = g_strdup (g_app_info_get_commandline (desktop_file));
 
421
  
 
422
  if (!exec)
 
423
    return;
420
424
 
421
425
  g_object_unref (desktop_file);
422
426
 
1597
1601
      priv->favorites = g_list_prepend (priv->favorites, g_strdup (fav));
1598
1602
      bamf_matcher_load_desktop_file (matcher, fav);
1599
1603
    }
 
1604
  
 
1605
  g_signal_emit (matcher, matcher_signals[FAVORITES_CHANGED], 0);
1600
1606
 
1601
1607
  return TRUE;
1602
1608
}
1761
1767
                      bamf_marshal_VOID__STRING_STRING,
1762
1768
                      G_TYPE_NONE, 2,
1763
1769
                      G_TYPE_STRING, G_TYPE_STRING);
 
1770
                      
 
1771
  matcher_signals [FAVORITES_CHANGED] =
 
1772
        g_signal_new ("favorites-changed",
 
1773
                      G_OBJECT_CLASS_TYPE (klass),
 
1774
                      0,
 
1775
                      0, NULL, NULL,
 
1776
                      g_cclosure_marshal_VOID__VOID,
 
1777
                      G_TYPE_NONE, 0);
1764
1778
}
1765
1779
 
1766
1780
BamfMatcher *