| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| 2 | <html> |
| 3 | <head> |
| 4 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| 5 | <title>BamfApplication: libbamf Reference Manual</title> |
| 6 | <meta name="generator" content="DocBook XSL Stylesheets Vsnapshot"> |
| 7 | <link rel="home" href="index.html" title="libbamf Reference Manual"> |
| 8 | <link rel="up" href="ch01.html" title="Classes"> |
| 9 | <link rel="prev" href="BamfView.html" title="BamfView"> |
| 10 | <link rel="next" href="object-tree.html" title="Object Hierarchy"> |
| 11 | <meta name="generator" content="GTK-Doc V1.33.1 (XML mode)"> |
| 12 | <link rel="stylesheet" href="style.css" type="text/css"> |
| 13 | </head> |
| 14 | <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> |
| 15 | <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle"> |
| 16 | <td width="100%" align="left" class="shortcuts"> |
| 17 | <a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span> |
| 18 | <a href="#BamfApplication.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span> |
| 19 | <a href="#BamfApplication.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_signals"> <span class="dim">|</span> |
| 20 | <a href="#BamfApplication.signals" class="shortcut">Signals</a></span> |
| 21 | </td> |
| 22 | <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td> |
| 23 | <td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td> |
| 24 | <td><a accesskey="p" href="BamfView.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td> |
| 25 | <td><a accesskey="n" href="object-tree.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td> |
| 26 | </tr></table> |
| 27 | <div class="refentry"> |
| 28 | <a name="BamfApplication"></a><div class="titlepage"></div> |
| 29 | <div class="refnamediv"><table width="100%"><tr> |
| 30 | <td valign="top"> |
| 31 | <h2><span class="refentrytitle"><a name="BamfApplication.top_of_page"></a>BamfApplication</span></h2> |
| 32 | <p>BamfApplication — The base class for all applications</p> |
| 33 | </td> |
| 34 | <td class="gallery_image" valign="top" align="right"></td> |
| 35 | </tr></table></div> |
| 36 | <div class="refsect1"> |
| 37 | <a name="BamfApplication.functions"></a><h2>Functions</h2> |
| 38 | <div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 39 | <colgroup> |
| 40 | <col width="150px" class="functions_proto_type"> |
| 41 | <col class="functions_proto_name"> |
| 42 | </colgroup> |
| 43 | <tbody> |
| 44 | <tr> |
| 45 | <td class="function_type">const <span class="returnvalue">gchar</span> * |
| 46 | </td> |
| 47 | <td class="function_name"> |
| 48 | <a class="link" href="BamfApplication.html#bamf-application-get-application-type" title="bamf_application_get_application_type ()">bamf_application_get_application_type</a> <span class="c_punctuation">()</span> |
| 49 | </td> |
| 50 | </tr> |
| 51 | <tr> |
| 52 | <td class="function_type">const <span class="returnvalue">gchar</span> * |
| 53 | </td> |
| 54 | <td class="function_name"> |
| 55 | <a class="link" href="BamfApplication.html#bamf-application-get-desktop-file" title="bamf_application_get_desktop_file ()">bamf_application_get_desktop_file</a> <span class="c_punctuation">()</span> |
| 56 | </td> |
| 57 | </tr> |
| 58 | <tr> |
| 59 | <td class="function_type"> |
| 60 | <span class="returnvalue">gchar</span> ** |
| 61 | </td> |
| 62 | <td class="function_name"> |
| 63 | <a class="link" href="BamfApplication.html#bamf-application-get-supported-mime-types" title="bamf_application_get_supported_mime_types ()">bamf_application_get_supported_mime_types</a> <span class="c_punctuation">()</span> |
| 64 | </td> |
| 65 | </tr> |
| 66 | <tr> |
| 67 | <td class="function_type"> |
| 68 | <span class="returnvalue">GList</span> * |
| 69 | </td> |
| 70 | <td class="function_name"> |
| 71 | <a class="link" href="BamfApplication.html#bamf-application-get-windows" title="bamf_application_get_windows ()">bamf_application_get_windows</a> <span class="c_punctuation">()</span> |
| 72 | </td> |
| 73 | </tr> |
| 74 | <tr> |
| 75 | <td class="function_type"> |
| 76 | <span class="returnvalue">GArray</span> * |
| 77 | </td> |
| 78 | <td class="function_name"> |
| 79 | <a class="link" href="BamfApplication.html#bamf-application-get-xids" title="bamf_application_get_xids ()">bamf_application_get_xids</a> <span class="c_punctuation">()</span> |
| 80 | </td> |
| 81 | </tr> |
| 82 | <tr> |
| 83 | <td class="function_type"> |
| 84 | <a class="link" href="BamfView.html" title="BamfView"><span class="returnvalue">BamfView</span></a> * |
| 85 | </td> |
| 86 | <td class="function_name"> |
| 87 | <a class="link" href="BamfApplication.html#bamf-application-get-focusable-child" title="bamf_application_get_focusable_child ()">bamf_application_get_focusable_child</a> <span class="c_punctuation">()</span> |
| 88 | </td> |
| 89 | </tr> |
| 90 | <tr> |
| 91 | <td class="function_type"> |
| 92 | <span class="returnvalue">gboolean</span> |
| 93 | </td> |
| 94 | <td class="function_name"> |
| 95 | <a class="link" href="BamfApplication.html#bamf-application-get-show-menu-stubs" title="bamf_application_get_show_menu_stubs ()">bamf_application_get_show_menu_stubs</a> <span class="c_punctuation">()</span> |
| 96 | </td> |
| 97 | </tr> |
| 98 | <tr> |
| 99 | <td class="function_type"> |
| 100 | <a class="link" href="BamfWindow.html" title="BamfWindow"><span class="returnvalue">BamfWindow</span></a> * |
| 101 | </td> |
| 102 | <td class="function_name"> |
| 103 | <a class="link" href="BamfApplication.html#bamf-application-get-window-for-xid" title="bamf_application_get_window_for_xid ()">bamf_application_get_window_for_xid</a> <span class="c_punctuation">()</span> |
| 104 | </td> |
| 105 | </tr> |
| 106 | <tr> |
| 107 | <td class="function_type"> |
| 108 | <span class="returnvalue">gboolean</span> |
| 109 | </td> |
| 110 | <td class="function_name"> |
| 111 | <a class="link" href="BamfApplication.html#bamf-application-get-application-menu" title="bamf_application_get_application_menu ()">bamf_application_get_application_menu</a> <span class="c_punctuation">()</span> |
| 112 | </td> |
| 113 | </tr> |
| 114 | </tbody> |
| 115 | </table></div> |
| 116 | </div> |
| 117 | <div class="refsect1"> |
| 118 | <a name="BamfApplication.signals"></a><h2>Signals</h2> |
| 119 | <div class="informaltable"><table class="informaltable" border="0"> |
| 120 | <colgroup> |
| 121 | <col width="150px" class="signal_proto_type"> |
| 122 | <col width="300px" class="signal_proto_name"> |
| 123 | <col width="200px" class="signal_proto_flags"> |
| 124 | </colgroup> |
| 125 | <tbody> |
| 126 | <tr> |
| 127 | <td class="signal_type"><span class="returnvalue">void</span></td> |
| 128 | <td class="signal_name"><a class="link" href="BamfApplication.html#BamfApplication-desktop-file-updated" title="The “desktop-file-updated” signal">desktop-file-updated</a></td> |
| 129 | <td class="signal_flags"> </td> |
| 130 | </tr> |
| 131 | <tr> |
| 132 | <td class="signal_type"><span class="returnvalue">void</span></td> |
| 133 | <td class="signal_name"><a class="link" href="BamfApplication.html#BamfApplication-window-added" title="The “window-added” signal">window-added</a></td> |
| 134 | <td class="signal_flags"> </td> |
| 135 | </tr> |
| 136 | <tr> |
| 137 | <td class="signal_type"><span class="returnvalue">void</span></td> |
| 138 | <td class="signal_name"><a class="link" href="BamfApplication.html#BamfApplication-window-removed" title="The “window-removed” signal">window-removed</a></td> |
| 139 | <td class="signal_flags"> </td> |
| 140 | </tr> |
| 141 | </tbody> |
| 142 | </table></div> |
| 143 | </div> |
| 144 | <div class="refsect1"> |
| 145 | <a name="BamfApplication.other"></a><h2>Types and Values</h2> |
| 146 | <div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 147 | <colgroup> |
| 148 | <col width="150px" class="other_proto_type"> |
| 149 | <col class="other_proto_name"> |
| 150 | </colgroup> |
| 151 | <tbody> |
| 152 | <tr> |
| 153 | <td class="define_keyword">#define</td> |
| 154 | <td class="function_name"><a class="link" href="BamfApplication.html#BAMF-TYPE-APPLICATION:CAPS" title="BAMF_TYPE_APPLICATION">BAMF_TYPE_APPLICATION</a></td> |
| 155 | </tr> |
| 156 | <tr> |
| 157 | <td class="define_keyword">#define</td> |
| 158 | <td class="function_name"><a class="link" href="BamfApplication.html#BAMF-APPLICATION-SIGNAL-DESKTOP-FILE-UPDATED:CAPS" title="BAMF_APPLICATION_SIGNAL_DESKTOP_FILE_UPDATED">BAMF_APPLICATION_SIGNAL_DESKTOP_FILE_UPDATED</a></td> |
| 159 | </tr> |
| 160 | <tr> |
| 161 | <td class="define_keyword">#define</td> |
| 162 | <td class="function_name"><a class="link" href="BamfApplication.html#BAMF-APPLICATION-SIGNAL-WINDOW-ADDED:CAPS" title="BAMF_APPLICATION_SIGNAL_WINDOW_ADDED">BAMF_APPLICATION_SIGNAL_WINDOW_ADDED</a></td> |
| 163 | </tr> |
| 164 | <tr> |
| 165 | <td class="define_keyword">#define</td> |
| 166 | <td class="function_name"><a class="link" href="BamfApplication.html#BAMF-APPLICATION-SIGNAL-WINDOW-REMOVED:CAPS" title="BAMF_APPLICATION_SIGNAL_WINDOW_REMOVED">BAMF_APPLICATION_SIGNAL_WINDOW_REMOVED</a></td> |
| 167 | </tr> |
| 168 | <tr> |
| 169 | <td class="datatype_keyword">struct</td> |
| 170 | <td class="function_name"><a class="link" href="BamfApplication.html#BamfApplicationClass" title="struct BamfApplicationClass">BamfApplicationClass</a></td> |
| 171 | </tr> |
| 172 | <tr> |
| 173 | <td class="datatype_keyword"> </td> |
| 174 | <td class="function_name"><a class="link" href="BamfApplication.html#BamfApplication-struct" title="BamfApplication">BamfApplication</a></td> |
| 175 | </tr> |
| 176 | </tbody> |
| 177 | </table></div> |
| 178 | </div> |
| 179 | <div class="refsect1"> |
| 180 | <a name="BamfApplication.object-hierarchy"></a><h2>Object Hierarchy</h2> |
| 181 | <pre class="screen"> GObject |
| 182 | <span class="lineart">╰──</span> GInitiallyUnowned |
| 183 | <span class="lineart">╰──</span> <a class="link" href="BamfView.html" title="BamfView">BamfView</a> |
| 184 | <span class="lineart">╰──</span> BamfApplication |
| 185 | </pre> |
| 186 | </div> |
| 187 | <div class="refsect1"> |
| 188 | <a name="BamfApplication.description"></a><h2>Description</h2> |
| 189 | <p><a class="link" href="BamfApplication.html" title="BamfApplication"><span class="type">BamfApplication</span></a> is the base class that all applications need to derive from.</p> |
| 190 | </div> |
| 191 | <div class="refsect1"> |
| 192 | <a name="BamfApplication.functions_details"></a><h2>Functions</h2> |
| 193 | <div class="refsect2"> |
| 194 | <a name="bamf-application-get-application-type"></a><h3>bamf_application_get_application_type ()</h3> |
| 195 | <pre class="programlisting">const <span class="returnvalue">gchar</span> * |
| 196 | bamf_application_get_application_type (<em class="parameter"><code><a class="link" href="BamfApplication.html" title="BamfApplication"><span class="type">BamfApplication</span></a> *application</code></em>);</pre> |
| 197 | </div> |
| 198 | <hr> |
| 199 | <div class="refsect2"> |
| 200 | <a name="bamf-application-get-desktop-file"></a><h3>bamf_application_get_desktop_file ()</h3> |
| 201 | <pre class="programlisting">const <span class="returnvalue">gchar</span> * |
| 202 | bamf_application_get_desktop_file (<em class="parameter"><code><a class="link" href="BamfApplication.html" title="BamfApplication"><span class="type">BamfApplication</span></a> *application</code></em>);</pre> |
| 203 | <p>Used to fetch the path to the .desktop file associated with the passed application. If |
| 204 | none exists, the result is NULL.</p> |
| 205 | <div class="refsect3"> |
| 206 | <a name="bamf-application-get-desktop-file.parameters"></a><h4>Parameters</h4> |
| 207 | <div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 208 | <colgroup> |
| 209 | <col width="150px" class="parameters_name"> |
| 210 | <col class="parameters_description"> |
| 211 | <col width="200px" class="parameters_annotations"> |
| 212 | </colgroup> |
| 213 | <tbody><tr> |
| 214 | <td class="parameter_name"><p>application</p></td> |
| 215 | <td class="parameter_description"><p>a <a class="link" href="BamfApplication.html" title="BamfApplication"><span class="type">BamfApplication</span></a></p></td> |
| 216 | <td class="parameter_annotations"> </td> |
| 217 | </tr></tbody> |
| 218 | </table></div> |
| 219 | </div> |
| 220 | <div class="refsect3"> |
| 221 | <a name="bamf-application-get-desktop-file.returns"></a><h4>Returns</h4> |
| 222 | <p> A string representing the path to the desktop file.</p> |
| 223 | </div> |
| 224 | </div> |
| 225 | <hr> |
| 226 | <div class="refsect2"> |
| 227 | <a name="bamf-application-get-supported-mime-types"></a><h3>bamf_application_get_supported_mime_types ()</h3> |
| 228 | <pre class="programlisting"><span class="returnvalue">gchar</span> ** |
| 229 | bamf_application_get_supported_mime_types |
| 230 | (<em class="parameter"><code><a class="link" href="BamfApplication.html" title="BamfApplication"><span class="type">BamfApplication</span></a> *application</code></em>);</pre> |
| 231 | <div class="refsect3"> |
| 232 | <a name="bamf-application-get-supported-mime-types.parameters"></a><h4>Parameters</h4> |
| 233 | <div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 234 | <colgroup> |
| 235 | <col width="150px" class="parameters_name"> |
| 236 | <col class="parameters_description"> |
| 237 | <col width="200px" class="parameters_annotations"> |
| 238 | </colgroup> |
| 239 | <tbody><tr> |
| 240 | <td class="parameter_name"><p>application</p></td> |
| 241 | <td class="parameter_description"><p>a <a class="link" href="BamfApplication.html" title="BamfApplication"><span class="type">BamfApplication</span></a></p></td> |
| 242 | <td class="parameter_annotations"> </td> |
| 243 | </tr></tbody> |
| 244 | </table></div> |
| 245 | </div> |
| 246 | <div class="refsect3"> |
| 247 | <a name="bamf-application-get-supported-mime-types.returns"></a><h4>Returns</h4> |
| 248 | <p>A string array containing the supported mime-types. </p> |
| 249 | <p><span class="annotation">[<acronym title="The caller owns the data, and is responsible for free it."><span class="acronym">transfer full</span></acronym>][<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> zero-terminated=1]</span></p> |
| 250 | </div> |
| 251 | </div> |
| 252 | <hr> |
| 253 | <div class="refsect2"> |
| 254 | <a name="bamf-application-get-windows"></a><h3>bamf_application_get_windows ()</h3> |
| 255 | <pre class="programlisting"><span class="returnvalue">GList</span> * |
| 256 | bamf_application_get_windows (<em class="parameter"><code><a class="link" href="BamfApplication.html" title="BamfApplication"><span class="type">BamfApplication</span></a> *application</code></em>);</pre> |
| 257 | <p>Used to fetch all <a class="link" href="BamfWindow.html" title="BamfWindow"><span class="type">BamfWindow</span></a>'s associated with the passed <a class="link" href="BamfApplication.html" title="BamfApplication"><span class="type">BamfApplication</span></a>.</p> |
| 258 | <div class="refsect3"> |
| 259 | <a name="bamf-application-get-windows.parameters"></a><h4>Parameters</h4> |
| 260 | <div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 261 | <colgroup> |
| 262 | <col width="150px" class="parameters_name"> |
| 263 | <col class="parameters_description"> |
| 264 | <col width="200px" class="parameters_annotations"> |
| 265 | </colgroup> |
| 266 | <tbody><tr> |
| 267 | <td class="parameter_name"><p>application</p></td> |
| 268 | <td class="parameter_description"><p>a <a class="link" href="BamfApplication.html" title="BamfApplication"><span class="type">BamfApplication</span></a></p></td> |
| 269 | <td class="parameter_annotations"> </td> |
| 270 | </tr></tbody> |
| 271 | </table></div> |
| 272 | </div> |
| 273 | <div class="refsect3"> |
| 274 | <a name="bamf-application-get-windows.returns"></a><h4>Returns</h4> |
| 275 | <p>A list of <a class="link" href="BamfWindow.html" title="BamfWindow"><span class="type">BamfWindow</span></a>'s. </p> |
| 276 | <p><span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> Bamf.Window][<acronym title="The caller owns the data container, but not the data inside it."><span class="acronym">transfer container</span></acronym>]</span></p> |
| 277 | </div> |
| 278 | </div> |
| 279 | <hr> |
| 280 | <div class="refsect2"> |
| 281 | <a name="bamf-application-get-xids"></a><h3>bamf_application_get_xids ()</h3> |
| 282 | <pre class="programlisting"><span class="returnvalue">GArray</span> * |
| 283 | bamf_application_get_xids (<em class="parameter"><code><a class="link" href="BamfApplication.html" title="BamfApplication"><span class="type">BamfApplication</span></a> *application</code></em>);</pre> |
| 284 | <p>Used to fetch all <a class="link" href="BamfWindow.html" title="BamfWindow"><span class="type">BamfWindow</span></a>'s xids associated with the passed <a class="link" href="BamfApplication.html" title="BamfApplication"><span class="type">BamfApplication</span></a>.</p> |
| 285 | <div class="refsect3"> |
| 286 | <a name="bamf-application-get-xids.parameters"></a><h4>Parameters</h4> |
| 287 | <div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 288 | <colgroup> |
| 289 | <col width="150px" class="parameters_name"> |
| 290 | <col class="parameters_description"> |
| 291 | <col width="200px" class="parameters_annotations"> |
| 292 | </colgroup> |
| 293 | <tbody><tr> |
| 294 | <td class="parameter_name"><p>application</p></td> |
| 295 | <td class="parameter_description"><p>a <a class="link" href="BamfApplication.html" title="BamfApplication"><span class="type">BamfApplication</span></a></p></td> |
| 296 | <td class="parameter_annotations"> </td> |
| 297 | </tr></tbody> |
| 298 | </table></div> |
| 299 | </div> |
| 300 | <div class="refsect3"> |
| 301 | <a name="bamf-application-get-xids.returns"></a><h4>Returns</h4> |
| 302 | <p>An array of xids. </p> |
| 303 | <p><span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> guint32][<acronym title="The caller owns the data, and is responsible for free it."><span class="acronym">transfer full</span></acronym>]</span></p> |
| 304 | </div> |
| 305 | </div> |
| 306 | <hr> |
| 307 | <div class="refsect2"> |
| 308 | <a name="bamf-application-get-focusable-child"></a><h3>bamf_application_get_focusable_child ()</h3> |
| 309 | <pre class="programlisting"><a class="link" href="BamfView.html" title="BamfView"><span class="returnvalue">BamfView</span></a> * |
| 310 | bamf_application_get_focusable_child (<em class="parameter"><code><a class="link" href="BamfApplication.html" title="BamfApplication"><span class="type">BamfApplication</span></a> *application</code></em>);</pre> |
| 311 | <div class="refsect3"> |
| 312 | <a name="bamf-application-get-focusable-child.parameters"></a><h4>Parameters</h4> |
| 313 | <div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 314 | <colgroup> |
| 315 | <col width="150px" class="parameters_name"> |
| 316 | <col class="parameters_description"> |
| 317 | <col width="200px" class="parameters_annotations"> |
| 318 | </colgroup> |
| 319 | <tbody><tr> |
| 320 | <td class="parameter_name"><p>application</p></td> |
| 321 | <td class="parameter_description"><p>a <a class="link" href="BamfApplication.html" title="BamfApplication"><span class="type">BamfApplication</span></a></p></td> |
| 322 | <td class="parameter_annotations"> </td> |
| 323 | </tr></tbody> |
| 324 | </table></div> |
| 325 | </div> |
| 326 | <div class="refsect3"> |
| 327 | <a name="bamf-application-get-focusable-child.returns"></a><h4>Returns</h4> |
| 328 | <p>The focusable child for this application. </p> |
| 329 | <p><span class="annotation">[<acronym title="The data is owned by the callee, which is responsible of freeing it."><span class="acronym">transfer none</span></acronym>]</span></p> |
| 330 | </div> |
| 331 | </div> |
| 332 | <hr> |
| 333 | <div class="refsect2"> |
| 334 | <a name="bamf-application-get-show-menu-stubs"></a><h3>bamf_application_get_show_menu_stubs ()</h3> |
| 335 | <pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 336 | bamf_application_get_show_menu_stubs (<em class="parameter"><code><a class="link" href="BamfApplication.html" title="BamfApplication"><span class="type">BamfApplication</span></a> *application</code></em>);</pre> |
| 337 | <p>Used to discover whether the application wants menu stubs shown.</p> |
| 338 | <div class="refsect3"> |
| 339 | <a name="bamf-application-get-show-menu-stubs.parameters"></a><h4>Parameters</h4> |
| 340 | <div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 341 | <colgroup> |
| 342 | <col width="150px" class="parameters_name"> |
| 343 | <col class="parameters_description"> |
| 344 | <col width="200px" class="parameters_annotations"> |
| 345 | </colgroup> |
| 346 | <tbody><tr> |
| 347 | <td class="parameter_name"><p>application</p></td> |
| 348 | <td class="parameter_description"><p>a <a class="link" href="BamfApplication.html" title="BamfApplication"><span class="type">BamfApplication</span></a></p></td> |
| 349 | <td class="parameter_annotations"> </td> |
| 350 | </tr></tbody> |
| 351 | </table></div> |
| 352 | </div> |
| 353 | <div class="refsect3"> |
| 354 | <a name="bamf-application-get-show-menu-stubs.returns"></a><h4>Returns</h4> |
| 355 | <p> Whether the stubs should be shown.</p> |
| 356 | </div> |
| 357 | </div> |
| 358 | <hr> |
| 359 | <div class="refsect2"> |
| 360 | <a name="bamf-application-get-window-for-xid"></a><h3>bamf_application_get_window_for_xid ()</h3> |
| 361 | <pre class="programlisting"><a class="link" href="BamfWindow.html" title="BamfWindow"><span class="returnvalue">BamfWindow</span></a> * |
| 362 | bamf_application_get_window_for_xid (<em class="parameter"><code><a class="link" href="BamfApplication.html" title="BamfApplication"><span class="type">BamfApplication</span></a> *application</code></em>, |
| 363 | <em class="parameter"><code><span class="type">guint32</span> xid</code></em>);</pre> |
| 364 | <p>Used to fetch the application contains a Window with given <em class="parameter"><code>xid</code></em> |
| 365 | .</p> |
| 366 | <div class="refsect3"> |
| 367 | <a name="bamf-application-get-window-for-xid.parameters"></a><h4>Parameters</h4> |
| 368 | <div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 369 | <colgroup> |
| 370 | <col width="150px" class="parameters_name"> |
| 371 | <col class="parameters_description"> |
| 372 | <col width="200px" class="parameters_annotations"> |
| 373 | </colgroup> |
| 374 | <tbody> |
| 375 | <tr> |
| 376 | <td class="parameter_name"><p>application</p></td> |
| 377 | <td class="parameter_description"><p>a <a class="link" href="BamfApplication.html" title="BamfApplication"><span class="type">BamfApplication</span></a></p></td> |
| 378 | <td class="parameter_annotations"> </td> |
| 379 | </tr> |
| 380 | <tr> |
| 381 | <td class="parameter_name"><p>xid</p></td> |
| 382 | <td class="parameter_description"><p>an X11 Window ID</p></td> |
| 383 | <td class="parameter_annotations"> </td> |
| 384 | </tr> |
| 385 | </tbody> |
| 386 | </table></div> |
| 387 | </div> |
| 388 | <div class="refsect3"> |
| 389 | <a name="bamf-application-get-window-for-xid.returns"></a><h4>Returns</h4> |
| 390 | <p>a <a class="link" href="BamfWindow.html" title="BamfWindow"><span class="type">BamfWindow</span></a> for the passed <em class="parameter"><code>xid</code></em> |
| 391 | or <code class="literal">NULL</code> if not found. </p> |
| 392 | <p><span class="annotation">[<acronym title="The data is owned by the callee, which is responsible of freeing it."><span class="acronym">transfer none</span></acronym>]</span></p> |
| 393 | </div> |
| 394 | <p class="since">Since: 0.5.2</p> |
| 395 | </div> |
| 396 | <hr> |
| 397 | <div class="refsect2"> |
| 398 | <a name="bamf-application-get-application-menu"></a><h3>bamf_application_get_application_menu ()</h3> |
| 399 | <pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 400 | bamf_application_get_application_menu (<em class="parameter"><code><a class="link" href="BamfApplication.html" title="BamfApplication"><span class="type">BamfApplication</span></a> *application</code></em>, |
| 401 | <em class="parameter"><code><span class="type">gchar</span> **name</code></em>, |
| 402 | <em class="parameter"><code><span class="type">gchar</span> **object_path</code></em>);</pre> |
| 403 | <div class="warning"><p><code class="literal">bamf_application_get_application_menu</code> has been deprecated since version 0.5.0 and should not be used in newly-written code.</p></div> |
| 404 | <p>Used to fetch the bus name and the object path of the remote application menu.</p> |
| 405 | <div class="refsect3"> |
| 406 | <a name="bamf-application-get-application-menu.parameters"></a><h4>Parameters</h4> |
| 407 | <div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 408 | <colgroup> |
| 409 | <col width="150px" class="parameters_name"> |
| 410 | <col class="parameters_description"> |
| 411 | <col width="200px" class="parameters_annotations"> |
| 412 | </colgroup> |
| 413 | <tbody> |
| 414 | <tr> |
| 415 | <td class="parameter_name"><p>application</p></td> |
| 416 | <td class="parameter_description"><p>a <a class="link" href="BamfApplication.html" title="BamfApplication"><span class="type">BamfApplication</span></a></p></td> |
| 417 | <td class="parameter_annotations"> </td> |
| 418 | </tr> |
| 419 | <tr> |
| 420 | <td class="parameter_name"><p>name</p></td> |
| 421 | <td class="parameter_description"><p>the bus name. </p></td> |
| 422 | <td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td> |
| 423 | </tr> |
| 424 | <tr> |
| 425 | <td class="parameter_name"><p>object_path</p></td> |
| 426 | <td class="parameter_description"><p>the object path. </p></td> |
| 427 | <td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td> |
| 428 | </tr> |
| 429 | </tbody> |
| 430 | </table></div> |
| 431 | </div> |
| 432 | <div class="refsect3"> |
| 433 | <a name="bamf-application-get-application-menu.returns"></a><h4>Returns</h4> |
| 434 | <p> <code class="literal">TRUE</code> if found, <code class="literal">FALSE</code> otherwise.</p> |
| 435 | </div> |
| 436 | </div> |
| 437 | </div> |
| 438 | <div class="refsect1"> |
| 439 | <a name="BamfApplication.other_details"></a><h2>Types and Values</h2> |
| 440 | <div class="refsect2"> |
| 441 | <a name="BAMF-TYPE-APPLICATION:CAPS"></a><h3>BAMF_TYPE_APPLICATION</h3> |
| 442 | <pre class="programlisting">#define BAMF_TYPE_APPLICATION (bamf_application_get_type ()) |
| 443 | </pre> |
| 444 | </div> |
| 445 | <hr> |
| 446 | <div class="refsect2"> |
| 447 | <a name="BAMF-APPLICATION-SIGNAL-DESKTOP-FILE-UPDATED:CAPS"></a><h3>BAMF_APPLICATION_SIGNAL_DESKTOP_FILE_UPDATED</h3> |
| 448 | <pre class="programlisting">#define BAMF_APPLICATION_SIGNAL_DESKTOP_FILE_UPDATED "desktop-file-updated" |
| 449 | </pre> |
| 450 | </div> |
| 451 | <hr> |
| 452 | <div class="refsect2"> |
| 453 | <a name="BAMF-APPLICATION-SIGNAL-WINDOW-ADDED:CAPS"></a><h3>BAMF_APPLICATION_SIGNAL_WINDOW_ADDED</h3> |
| 454 | <pre class="programlisting">#define BAMF_APPLICATION_SIGNAL_WINDOW_ADDED "window-added" |
| 455 | </pre> |
| 456 | </div> |
| 457 | <hr> |
| 458 | <div class="refsect2"> |
| 459 | <a name="BAMF-APPLICATION-SIGNAL-WINDOW-REMOVED:CAPS"></a><h3>BAMF_APPLICATION_SIGNAL_WINDOW_REMOVED</h3> |
| 460 | <pre class="programlisting">#define BAMF_APPLICATION_SIGNAL_WINDOW_REMOVED "window-removed" |
| 461 | </pre> |
| 462 | </div> |
| 463 | <hr> |
| 464 | <div class="refsect2"> |
| 465 | <a name="BamfApplicationClass"></a><h3>struct BamfApplicationClass</h3> |
| 466 | <pre class="programlisting">struct BamfApplicationClass { |
| 467 | BamfViewClass parent_class; |
| 468 | }; |
| 469 | </pre> |
| 470 | </div> |
| 471 | <hr> |
| 472 | <div class="refsect2"> |
| 473 | <a name="BamfApplication-struct"></a><h3>BamfApplication</h3> |
| 474 | <pre class="programlisting">typedef struct _BamfApplication BamfApplication;</pre> |
| 475 | </div> |
| 476 | </div> |
| 477 | <div class="refsect1"> |
| 478 | <a name="BamfApplication.signal-details"></a><h2>Signal Details</h2> |
| 479 | <div class="refsect2"> |
| 480 | <a name="BamfApplication-desktop-file-updated"></a><h3>The <code class="literal">“desktop-file-updated”</code> signal</h3> |
| 481 | <pre class="programlisting"><span class="returnvalue">void</span> |
| 482 | user_function (<a class="link" href="BamfApplication.html" title="BamfApplication"><span class="type">BamfApplication</span></a> *bamfapplication, |
| 483 | <span class="type">char</span> *arg1, |
| 484 | <span class="type">gpointer</span> user_data)</pre> |
| 485 | </div> |
| 486 | <hr> |
| 487 | <div class="refsect2"> |
| 488 | <a name="BamfApplication-window-added"></a><h3>The <code class="literal">“window-added”</code> signal</h3> |
| 489 | <pre class="programlisting"><span class="returnvalue">void</span> |
| 490 | user_function (<a class="link" href="BamfApplication.html" title="BamfApplication"><span class="type">BamfApplication</span></a> *bamfapplication, |
| 491 | <a class="link" href="BamfWindow.html" title="BamfWindow"><span class="type">BamfWindow</span></a> *arg1, |
| 492 | <span class="type">gpointer</span> user_data)</pre> |
| 493 | </div> |
| 494 | <hr> |
| 495 | <div class="refsect2"> |
| 496 | <a name="BamfApplication-window-removed"></a><h3>The <code class="literal">“window-removed”</code> signal</h3> |
| 497 | <pre class="programlisting"><span class="returnvalue">void</span> |
| 498 | user_function (<a class="link" href="BamfApplication.html" title="BamfApplication"><span class="type">BamfApplication</span></a> *bamfapplication, |
| 499 | <a class="link" href="BamfWindow.html" title="BamfWindow"><span class="type">BamfWindow</span></a> *arg1, |
| 500 | <span class="type">gpointer</span> user_data)</pre> |
| 501 | </div> |
| 502 | </div> |
| 503 | </div> |
| 504 | <div class="footer"> |
| 505 | <hr>Generated by GTK-Doc V1.33.1</div> |
| 506 | </body> |
| 507 | </html> |