~timo-jyrinki/bamf/ubuntu-0.2.124.1

« back to all changes in this revision

Viewing changes to lib/libbamf/bamf-application.h

  • Committer: Timo Jyrinki
  • Date: 2012-11-14 07:15:04 UTC
  • mfrom: (235.1.49)
  • Revision ID: timo.jyrinki@canonical.com-20121114071504-s8umq349iaf7lwq6
* New upstream release.
  - Includes all previous cherry-picks
  - remerge libbamf, Makefile: don't export private symbols (factory 
    and matcher)
  - BamfMatcher: force a view as closed or not-closed on proper 
    signals. This avoids that a view that is opened is actually 
    marked as closed when really it's running. (LP: #925421)
  - Daemon, BamfApplication: Use the default icon if there is not 
    one defined in the desktop file. (LP: #886778)
  - BamfMatcher: don't reopen windows when iterating on view's 
    list, add tests.
  - Build fixes, including enabling introspection.
  - BamfMatcher: add support for libreoffice Base, and libreoffice 
    matching tests (LP: #1063862)

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
 
76
76
GType             bamf_application_get_type             (void) G_GNUC_CONST;
77
77
 
78
 
/**
79
 
 * bamf_application_get_applicaton_type:
80
 
 * @application: a #BamfApplication
81
 
 *
82
 
 * Used to determine what type of application a .desktop file represents. Current values are:
83
 
 *  "system" : A normal application, like firefox or evolution
84
 
 *  "web"    : A web application, like facebook or twitter
85
 
 *
86
 
 * Returns: A string
87
 
 */
88
78
const gchar     * bamf_application_get_application_type (BamfApplication *application);
89
79
 
90
 
/**
91
 
 * bamf_application_get_desktop_file:
92
 
 * @application: a #BamfApplication
93
 
 *
94
 
 * Used to fetch the path to the .desktop file associated with the passed application. If
95
 
 * none exists, the result is NULL.
96
 
 *
97
 
 * Returns: A string representing the path to the desktop file.
98
 
 */
99
80
const gchar     * bamf_application_get_desktop_file     (BamfApplication *application);
100
81
 
101
 
/**
102
 
 * bamf_application_get_windows:
103
 
 * @application: a #BamfApplication
104
 
 *
105
 
 * Used to fetch all #BamfWindow's associated with the passed #BamfApplication.
106
 
 *
107
 
 * Returns: (element-type Bamf.Window) (transfer container): A list of #BamfWindow's.
108
 
 */
109
 
GList * bamf_application_get_windows (BamfApplication *application);
110
 
 
111
 
/**
112
 
 * bamf_application_get_xids:
113
 
 * @application: a #BamfApplication
114
 
 *
115
 
 * Used to fetch all #BamfWindow's xids associated with the passed #BamfApplication.
116
 
 *
117
 
 * Returns: (transfer full): An array of xids.
118
 
 */
119
 
GArray * bamf_application_get_xids (BamfApplication *application);
120
 
 
121
 
/**
122
 
 * bamf_application_get_show_stubs:
123
 
 * @application: a #BamfApplication
124
 
 *
125
 
 * Used to discover whether the application wants menu stubs shown.
126
 
 *
127
 
 * Returns: Whether the stubs should be shown.
128
 
 */
129
 
gboolean bamf_application_get_show_menu_stubs (BamfApplication *application);
 
82
GList           * bamf_application_get_windows          (BamfApplication *application);
 
83
 
 
84
GArray          * bamf_application_get_xids             (BamfApplication *application);
 
85
 
 
86
gboolean          bamf_application_get_show_menu_stubs  (BamfApplication *application);
130
87
 
131
88
G_END_DECLS
132
89