@girs/cmenu-3.0 3.0.0-4.0.0-beta.18 → 3.0.0-4.0.0-beta.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/cmenu-3.0.d.ts +120 -121
- package/package.json +5 -6
- package/tsconfig.json +3 -1
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
GJS TypeScript type definitions for CMenu-3.0, generated from library version 3.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.
|
|
8
|
+
GJS TypeScript type definitions for CMenu-3.0, generated from library version 3.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v4.0.0-beta.20.
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
## Install
|
package/cmenu-3.0.d.ts
CHANGED
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
import type Gio from '@girs/gio-2.0';
|
|
12
12
|
import type GObject from '@girs/gobject-2.0';
|
|
13
13
|
import type GLib from '@girs/glib-2.0';
|
|
14
|
-
import type GModule from '@girs/gmodule-2.0';
|
|
15
14
|
|
|
16
15
|
export namespace CMenu {
|
|
17
16
|
/**
|
|
@@ -45,7 +44,7 @@ export namespace CMenu {
|
|
|
45
44
|
SORT_DISPLAY_NAME,
|
|
46
45
|
INCLUDE_UNALLOCATED,
|
|
47
46
|
}
|
|
48
|
-
|
|
47
|
+
namespace DesktopAppInfo {
|
|
49
48
|
// Constructor properties interface
|
|
50
49
|
|
|
51
50
|
interface ConstructorProps extends GObject.Object.ConstructorProps, Gio.AppInfo.ConstructorProps {}
|
|
@@ -222,7 +221,7 @@ export namespace CMenu {
|
|
|
222
221
|
launch_uris_as_manager(
|
|
223
222
|
uris: string[],
|
|
224
223
|
launch_context: Gio.AppLaunchContext | null,
|
|
225
|
-
spawn_flags: GLib.SpawnFlags,
|
|
224
|
+
spawn_flags: GLib.SpawnFlags | null,
|
|
226
225
|
): boolean;
|
|
227
226
|
/**
|
|
228
227
|
* Returns the list of "additional application actions" supported on the
|
|
@@ -239,53 +238,53 @@ export namespace CMenu {
|
|
|
239
238
|
* Adds a content type to the application information to indicate the
|
|
240
239
|
* application is capable of opening files with the given content type.
|
|
241
240
|
* @param content_type a string.
|
|
242
|
-
* @returns
|
|
241
|
+
* @returns %TRUE on success, %FALSE on error.
|
|
243
242
|
*/
|
|
244
243
|
add_supports_type(content_type: string): boolean;
|
|
245
244
|
/**
|
|
246
|
-
* Obtains the information whether the
|
|
247
|
-
* See
|
|
248
|
-
* @returns
|
|
245
|
+
* Obtains the information whether the #GAppInfo can be deleted.
|
|
246
|
+
* See g_app_info_delete().
|
|
247
|
+
* @returns %TRUE if @appinfo can be deleted
|
|
249
248
|
*/
|
|
250
249
|
can_delete(): boolean;
|
|
251
250
|
/**
|
|
252
251
|
* Checks if a supported content type can be removed from an application.
|
|
253
|
-
* @returns
|
|
252
|
+
* @returns %TRUE if it is possible to remove supported content types from a given @appinfo, %FALSE if not.
|
|
254
253
|
*/
|
|
255
254
|
can_remove_supports_type(): boolean;
|
|
256
255
|
/**
|
|
257
|
-
* Tries to delete a
|
|
256
|
+
* Tries to delete a #GAppInfo.
|
|
258
257
|
*
|
|
259
258
|
* On some platforms, there may be a difference between user-defined
|
|
260
|
-
*
|
|
261
|
-
* See
|
|
262
|
-
* @returns
|
|
259
|
+
* #GAppInfos which can be deleted, and system-wide ones which cannot.
|
|
260
|
+
* See g_app_info_can_delete().
|
|
261
|
+
* @returns %TRUE if @appinfo has been deleted
|
|
263
262
|
*/
|
|
264
263
|
['delete'](): boolean;
|
|
265
264
|
/**
|
|
266
|
-
* Creates a duplicate of a
|
|
265
|
+
* Creates a duplicate of a #GAppInfo.
|
|
267
266
|
* @returns a duplicate of @appinfo.
|
|
268
267
|
*/
|
|
269
268
|
dup(): Gio.AppInfo;
|
|
270
269
|
/**
|
|
271
|
-
* Checks if two
|
|
270
|
+
* Checks if two #GAppInfos are equal.
|
|
272
271
|
*
|
|
273
|
-
* Note that the check *may not* compare each individual
|
|
274
|
-
* an identity check. In case detecting changes in the
|
|
275
|
-
* program code must additionally compare relevant fields.
|
|
276
|
-
* @param appinfo2 the second
|
|
277
|
-
* @returns
|
|
272
|
+
* Note that the check *may not* compare each individual
|
|
273
|
+
* field, and only does an identity check. In case detecting changes in the
|
|
274
|
+
* contents is needed, program code must additionally compare relevant fields.
|
|
275
|
+
* @param appinfo2 the second #GAppInfo.
|
|
276
|
+
* @returns %TRUE if @appinfo1 is equal to @appinfo2. %FALSE otherwise.
|
|
278
277
|
*/
|
|
279
278
|
equal(appinfo2: Gio.AppInfo): boolean;
|
|
280
279
|
/**
|
|
281
280
|
* Gets the commandline with which the application will be
|
|
282
281
|
* started.
|
|
283
|
-
* @returns a string containing the @appinfo
|
|
282
|
+
* @returns a string containing the @appinfo's commandline, or %NULL if this information is not available
|
|
284
283
|
*/
|
|
285
284
|
get_commandline(): string | null;
|
|
286
285
|
/**
|
|
287
286
|
* Gets a human-readable description of an installed application.
|
|
288
|
-
* @returns a string containing a description of the application @appinfo, or
|
|
287
|
+
* @returns a string containing a description of the application @appinfo, or %NULL if none.
|
|
289
288
|
*/
|
|
290
289
|
get_description(): string | null;
|
|
291
290
|
/**
|
|
@@ -295,27 +294,28 @@ export namespace CMenu {
|
|
|
295
294
|
*/
|
|
296
295
|
get_display_name(): string;
|
|
297
296
|
/**
|
|
298
|
-
* Gets the executable
|
|
297
|
+
* Gets the executable's name for the installed application.
|
|
299
298
|
*
|
|
300
299
|
* This is intended to be used for debugging or labelling what program is going
|
|
301
|
-
* to be run. To launch the executable, use
|
|
300
|
+
* to be run. To launch the executable, use g_app_info_launch() and related
|
|
302
301
|
* functions, rather than spawning the return value from this function.
|
|
303
|
-
* @returns a string containing the @appinfo
|
|
302
|
+
* @returns a string containing the @appinfo's application binaries name
|
|
304
303
|
*/
|
|
305
304
|
get_executable(): string;
|
|
306
305
|
/**
|
|
307
306
|
* Gets the icon for the application.
|
|
308
|
-
* @returns the default
|
|
307
|
+
* @returns the default #GIcon for @appinfo or %NULL if there is no default icon.
|
|
309
308
|
*/
|
|
310
309
|
get_icon(): Gio.Icon | null;
|
|
311
310
|
/**
|
|
312
|
-
* Gets the ID of an application. An id is a string that
|
|
313
|
-
* application. The exact format of the id is
|
|
314
|
-
* on Unix this is the
|
|
311
|
+
* Gets the ID of an application. An id is a string that
|
|
312
|
+
* identifies the application. The exact format of the id is
|
|
313
|
+
* platform dependent. For instance, on Unix this is the
|
|
314
|
+
* desktop file id from the xdg menu specification.
|
|
315
315
|
*
|
|
316
|
-
* Note that the returned ID may be
|
|
317
|
-
* been constructed.
|
|
318
|
-
* @returns a string containing the application
|
|
316
|
+
* Note that the returned ID may be %NULL, depending on how
|
|
317
|
+
* the `appinfo` has been constructed.
|
|
318
|
+
* @returns a string containing the application's ID.
|
|
319
319
|
*/
|
|
320
320
|
get_id(): string | null;
|
|
321
321
|
/**
|
|
@@ -326,10 +326,9 @@ export namespace CMenu {
|
|
|
326
326
|
/**
|
|
327
327
|
* Retrieves the list of content types that `app_info` claims to support.
|
|
328
328
|
* If this information is not provided by the environment, this function
|
|
329
|
-
* will return
|
|
330
|
-
*
|
|
329
|
+
* will return %NULL.
|
|
331
330
|
* This function does not take in consideration associations added with
|
|
332
|
-
*
|
|
331
|
+
* g_app_info_add_supports_type(), but only those exported directly by
|
|
333
332
|
* the application.
|
|
334
333
|
* @returns a list of content types.
|
|
335
334
|
*/
|
|
@@ -340,7 +339,7 @@ export namespace CMenu {
|
|
|
340
339
|
* about the details of the launcher (like what screen it is on).
|
|
341
340
|
* On error, `error` will be set accordingly.
|
|
342
341
|
*
|
|
343
|
-
* To launch the application without arguments pass a
|
|
342
|
+
* To launch the application without arguments pass a %NULL `files` list.
|
|
344
343
|
*
|
|
345
344
|
* Note that even if the launch is successful the application launched
|
|
346
345
|
* can fail to start if it runs into problems during startup. There is
|
|
@@ -349,11 +348,11 @@ export namespace CMenu {
|
|
|
349
348
|
* Some URIs can be changed when passed through a GFile (for instance
|
|
350
349
|
* unsupported URIs with strange formats like mailto:), so if you have
|
|
351
350
|
* a textual URI you want to pass in as argument, consider using
|
|
352
|
-
*
|
|
351
|
+
* g_app_info_launch_uris() instead.
|
|
353
352
|
*
|
|
354
353
|
* The launched application inherits the environment of the launching
|
|
355
|
-
* process, but it can be modified with
|
|
356
|
-
* and
|
|
354
|
+
* process, but it can be modified with g_app_launch_context_setenv()
|
|
355
|
+
* and g_app_launch_context_unsetenv().
|
|
357
356
|
*
|
|
358
357
|
* On UNIX, this function sets the `GIO_LAUNCHED_DESKTOP_FILE`
|
|
359
358
|
* environment variable with the path of the launched desktop file and
|
|
@@ -362,9 +361,9 @@ export namespace CMenu {
|
|
|
362
361
|
* should it be inherited by further processes. The `DISPLAY`,
|
|
363
362
|
* `XDG_ACTIVATION_TOKEN` and `DESKTOP_STARTUP_ID` environment
|
|
364
363
|
* variables are also set, based on information provided in `context`.
|
|
365
|
-
* @param files a
|
|
366
|
-
* @param context
|
|
367
|
-
* @returns
|
|
364
|
+
* @param files a #GList of #GFile objects
|
|
365
|
+
* @param context a #GAppLaunchContext or %NULL
|
|
366
|
+
* @returns %TRUE on successful launch, %FALSE otherwise.
|
|
368
367
|
*/
|
|
369
368
|
launch(files?: Gio.File[] | null, context?: Gio.AppLaunchContext | null): boolean;
|
|
370
369
|
/**
|
|
@@ -375,26 +374,26 @@ export namespace CMenu {
|
|
|
375
374
|
* one URI per invocation as part of their command-line, multiple instances
|
|
376
375
|
* of the application will be spawned.
|
|
377
376
|
*
|
|
378
|
-
* To launch the application without arguments pass a
|
|
377
|
+
* To launch the application without arguments pass a %NULL `uris` list.
|
|
379
378
|
*
|
|
380
379
|
* Note that even if the launch is successful the application launched
|
|
381
380
|
* can fail to start if it runs into problems during startup. There is
|
|
382
381
|
* no way to detect this.
|
|
383
|
-
* @param uris a
|
|
384
|
-
* @param context
|
|
385
|
-
* @returns
|
|
382
|
+
* @param uris a #GList containing URIs to launch.
|
|
383
|
+
* @param context a #GAppLaunchContext or %NULL
|
|
384
|
+
* @returns %TRUE on successful launch, %FALSE otherwise.
|
|
386
385
|
*/
|
|
387
386
|
launch_uris(uris?: string[] | null, context?: Gio.AppLaunchContext | null): boolean;
|
|
388
387
|
/**
|
|
389
|
-
* Async version of
|
|
388
|
+
* Async version of g_app_info_launch_uris().
|
|
390
389
|
*
|
|
391
390
|
* The `callback` is invoked immediately after the application launch, but it
|
|
392
391
|
* waits for activation in case of D-Bus–activated applications and also provides
|
|
393
392
|
* extended error information for sandboxed applications, see notes for
|
|
394
|
-
*
|
|
395
|
-
* @param uris a
|
|
396
|
-
* @param context
|
|
397
|
-
* @param cancellable a
|
|
393
|
+
* g_app_info_launch_default_for_uri_async().
|
|
394
|
+
* @param uris a #GList containing URIs to launch.
|
|
395
|
+
* @param context a #GAppLaunchContext or %NULL
|
|
396
|
+
* @param cancellable a #GCancellable
|
|
398
397
|
*/
|
|
399
398
|
launch_uris_async(
|
|
400
399
|
uris?: string[] | null,
|
|
@@ -402,16 +401,16 @@ export namespace CMenu {
|
|
|
402
401
|
cancellable?: Gio.Cancellable | null,
|
|
403
402
|
): Promise<boolean>;
|
|
404
403
|
/**
|
|
405
|
-
* Async version of
|
|
404
|
+
* Async version of g_app_info_launch_uris().
|
|
406
405
|
*
|
|
407
406
|
* The `callback` is invoked immediately after the application launch, but it
|
|
408
407
|
* waits for activation in case of D-Bus–activated applications and also provides
|
|
409
408
|
* extended error information for sandboxed applications, see notes for
|
|
410
|
-
*
|
|
411
|
-
* @param uris a
|
|
412
|
-
* @param context
|
|
413
|
-
* @param cancellable a
|
|
414
|
-
* @param callback a
|
|
409
|
+
* g_app_info_launch_default_for_uri_async().
|
|
410
|
+
* @param uris a #GList containing URIs to launch.
|
|
411
|
+
* @param context a #GAppLaunchContext or %NULL
|
|
412
|
+
* @param cancellable a #GCancellable
|
|
413
|
+
* @param callback a #GAsyncReadyCallback to call when the request is done
|
|
415
414
|
*/
|
|
416
415
|
launch_uris_async(
|
|
417
416
|
uris: string[] | null,
|
|
@@ -420,16 +419,16 @@ export namespace CMenu {
|
|
|
420
419
|
callback: Gio.AsyncReadyCallback<this> | null,
|
|
421
420
|
): void;
|
|
422
421
|
/**
|
|
423
|
-
* Async version of
|
|
422
|
+
* Async version of g_app_info_launch_uris().
|
|
424
423
|
*
|
|
425
424
|
* The `callback` is invoked immediately after the application launch, but it
|
|
426
425
|
* waits for activation in case of D-Bus–activated applications and also provides
|
|
427
426
|
* extended error information for sandboxed applications, see notes for
|
|
428
|
-
*
|
|
429
|
-
* @param uris a
|
|
430
|
-
* @param context
|
|
431
|
-
* @param cancellable a
|
|
432
|
-
* @param callback a
|
|
427
|
+
* g_app_info_launch_default_for_uri_async().
|
|
428
|
+
* @param uris a #GList containing URIs to launch.
|
|
429
|
+
* @param context a #GAppLaunchContext or %NULL
|
|
430
|
+
* @param cancellable a #GCancellable
|
|
431
|
+
* @param callback a #GAsyncReadyCallback to call when the request is done
|
|
433
432
|
*/
|
|
434
433
|
launch_uris_async(
|
|
435
434
|
uris?: string[] | null,
|
|
@@ -438,52 +437,52 @@ export namespace CMenu {
|
|
|
438
437
|
callback?: Gio.AsyncReadyCallback<this> | null,
|
|
439
438
|
): Promise<boolean> | void;
|
|
440
439
|
/**
|
|
441
|
-
* Finishes a
|
|
442
|
-
* @param result
|
|
443
|
-
* @returns
|
|
440
|
+
* Finishes a g_app_info_launch_uris_async() operation.
|
|
441
|
+
* @param result a #GAsyncResult
|
|
442
|
+
* @returns %TRUE on successful launch, %FALSE otherwise.
|
|
444
443
|
*/
|
|
445
444
|
launch_uris_finish(result: Gio.AsyncResult): boolean;
|
|
446
445
|
/**
|
|
447
446
|
* Removes a supported type from an application, if possible.
|
|
448
447
|
* @param content_type a string.
|
|
449
|
-
* @returns
|
|
448
|
+
* @returns %TRUE on success, %FALSE on error.
|
|
450
449
|
*/
|
|
451
450
|
remove_supports_type(content_type: string): boolean;
|
|
452
451
|
/**
|
|
453
452
|
* Sets the application as the default handler for the given file extension.
|
|
454
|
-
* @param extension a string containing the file extension
|
|
455
|
-
* @returns
|
|
453
|
+
* @param extension a string containing the file extension (without the dot).
|
|
454
|
+
* @returns %TRUE on success, %FALSE on error.
|
|
456
455
|
*/
|
|
457
456
|
set_as_default_for_extension(extension: string): boolean;
|
|
458
457
|
/**
|
|
459
458
|
* Sets the application as the default handler for a given type.
|
|
460
459
|
* @param content_type the content type.
|
|
461
|
-
* @returns
|
|
460
|
+
* @returns %TRUE on success, %FALSE on error.
|
|
462
461
|
*/
|
|
463
462
|
set_as_default_for_type(content_type: string): boolean;
|
|
464
463
|
/**
|
|
465
|
-
* Sets the application as the last used application for a given type.
|
|
466
|
-
* will make the application appear as first in the list returned
|
|
467
|
-
*
|
|
464
|
+
* Sets the application as the last used application for a given type.
|
|
465
|
+
* This will make the application appear as first in the list returned
|
|
466
|
+
* by g_app_info_get_recommended_for_type(), regardless of the default
|
|
468
467
|
* application for that content type.
|
|
469
468
|
* @param content_type the content type.
|
|
470
|
-
* @returns
|
|
469
|
+
* @returns %TRUE on success, %FALSE on error.
|
|
471
470
|
*/
|
|
472
471
|
set_as_last_used_for_type(content_type: string): boolean;
|
|
473
472
|
/**
|
|
474
473
|
* Checks if the application info should be shown in menus that
|
|
475
474
|
* list available applications.
|
|
476
|
-
* @returns
|
|
475
|
+
* @returns %TRUE if the @appinfo should be shown, %FALSE otherwise.
|
|
477
476
|
*/
|
|
478
477
|
should_show(): boolean;
|
|
479
478
|
/**
|
|
480
479
|
* Checks if the application accepts files as arguments.
|
|
481
|
-
* @returns
|
|
480
|
+
* @returns %TRUE if the @appinfo supports files.
|
|
482
481
|
*/
|
|
483
482
|
supports_files(): boolean;
|
|
484
483
|
/**
|
|
485
484
|
* Checks if the application supports reading files and directories from URIs.
|
|
486
|
-
* @returns
|
|
485
|
+
* @returns %TRUE if the @appinfo supports URIs.
|
|
487
486
|
*/
|
|
488
487
|
supports_uris(): boolean;
|
|
489
488
|
/**
|
|
@@ -493,8 +492,8 @@ export namespace CMenu {
|
|
|
493
492
|
*/
|
|
494
493
|
vfunc_add_supports_type(content_type: string): boolean;
|
|
495
494
|
/**
|
|
496
|
-
* Obtains the information whether the
|
|
497
|
-
* See
|
|
495
|
+
* Obtains the information whether the #GAppInfo can be deleted.
|
|
496
|
+
* See g_app_info_delete().
|
|
498
497
|
*/
|
|
499
498
|
vfunc_can_delete(): boolean;
|
|
500
499
|
/**
|
|
@@ -502,24 +501,24 @@ export namespace CMenu {
|
|
|
502
501
|
*/
|
|
503
502
|
vfunc_can_remove_supports_type(): boolean;
|
|
504
503
|
/**
|
|
505
|
-
* Tries to delete a
|
|
504
|
+
* Tries to delete a #GAppInfo.
|
|
506
505
|
*
|
|
507
506
|
* On some platforms, there may be a difference between user-defined
|
|
508
|
-
*
|
|
509
|
-
* See
|
|
507
|
+
* #GAppInfos which can be deleted, and system-wide ones which cannot.
|
|
508
|
+
* See g_app_info_can_delete().
|
|
510
509
|
*/
|
|
511
510
|
vfunc_do_delete(): boolean;
|
|
512
511
|
/**
|
|
513
|
-
* Creates a duplicate of a
|
|
512
|
+
* Creates a duplicate of a #GAppInfo.
|
|
514
513
|
*/
|
|
515
514
|
vfunc_dup(): Gio.AppInfo;
|
|
516
515
|
/**
|
|
517
|
-
* Checks if two
|
|
516
|
+
* Checks if two #GAppInfos are equal.
|
|
518
517
|
*
|
|
519
|
-
* Note that the check *may not* compare each individual
|
|
520
|
-
* an identity check. In case detecting changes in the
|
|
521
|
-
* program code must additionally compare relevant fields.
|
|
522
|
-
* @param appinfo2 the second
|
|
518
|
+
* Note that the check *may not* compare each individual
|
|
519
|
+
* field, and only does an identity check. In case detecting changes in the
|
|
520
|
+
* contents is needed, program code must additionally compare relevant fields.
|
|
521
|
+
* @param appinfo2 the second #GAppInfo.
|
|
523
522
|
*/
|
|
524
523
|
vfunc_equal(appinfo2: Gio.AppInfo): boolean;
|
|
525
524
|
/**
|
|
@@ -537,10 +536,10 @@ export namespace CMenu {
|
|
|
537
536
|
*/
|
|
538
537
|
vfunc_get_display_name(): string;
|
|
539
538
|
/**
|
|
540
|
-
* Gets the executable
|
|
539
|
+
* Gets the executable's name for the installed application.
|
|
541
540
|
*
|
|
542
541
|
* This is intended to be used for debugging or labelling what program is going
|
|
543
|
-
* to be run. To launch the executable, use
|
|
542
|
+
* to be run. To launch the executable, use g_app_info_launch() and related
|
|
544
543
|
* functions, rather than spawning the return value from this function.
|
|
545
544
|
*/
|
|
546
545
|
vfunc_get_executable(): string;
|
|
@@ -549,12 +548,13 @@ export namespace CMenu {
|
|
|
549
548
|
*/
|
|
550
549
|
vfunc_get_icon(): Gio.Icon | null;
|
|
551
550
|
/**
|
|
552
|
-
* Gets the ID of an application. An id is a string that
|
|
553
|
-
* application. The exact format of the id is
|
|
554
|
-
* on Unix this is the
|
|
551
|
+
* Gets the ID of an application. An id is a string that
|
|
552
|
+
* identifies the application. The exact format of the id is
|
|
553
|
+
* platform dependent. For instance, on Unix this is the
|
|
554
|
+
* desktop file id from the xdg menu specification.
|
|
555
555
|
*
|
|
556
|
-
* Note that the returned ID may be
|
|
557
|
-
* been constructed.
|
|
556
|
+
* Note that the returned ID may be %NULL, depending on how
|
|
557
|
+
* the `appinfo` has been constructed.
|
|
558
558
|
*/
|
|
559
559
|
vfunc_get_id(): string | null;
|
|
560
560
|
/**
|
|
@@ -564,10 +564,9 @@ export namespace CMenu {
|
|
|
564
564
|
/**
|
|
565
565
|
* Retrieves the list of content types that `app_info` claims to support.
|
|
566
566
|
* If this information is not provided by the environment, this function
|
|
567
|
-
* will return
|
|
568
|
-
*
|
|
567
|
+
* will return %NULL.
|
|
569
568
|
* This function does not take in consideration associations added with
|
|
570
|
-
*
|
|
569
|
+
* g_app_info_add_supports_type(), but only those exported directly by
|
|
571
570
|
* the application.
|
|
572
571
|
*/
|
|
573
572
|
vfunc_get_supported_types(): string[];
|
|
@@ -577,7 +576,7 @@ export namespace CMenu {
|
|
|
577
576
|
* about the details of the launcher (like what screen it is on).
|
|
578
577
|
* On error, `error` will be set accordingly.
|
|
579
578
|
*
|
|
580
|
-
* To launch the application without arguments pass a
|
|
579
|
+
* To launch the application without arguments pass a %NULL `files` list.
|
|
581
580
|
*
|
|
582
581
|
* Note that even if the launch is successful the application launched
|
|
583
582
|
* can fail to start if it runs into problems during startup. There is
|
|
@@ -586,11 +585,11 @@ export namespace CMenu {
|
|
|
586
585
|
* Some URIs can be changed when passed through a GFile (for instance
|
|
587
586
|
* unsupported URIs with strange formats like mailto:), so if you have
|
|
588
587
|
* a textual URI you want to pass in as argument, consider using
|
|
589
|
-
*
|
|
588
|
+
* g_app_info_launch_uris() instead.
|
|
590
589
|
*
|
|
591
590
|
* The launched application inherits the environment of the launching
|
|
592
|
-
* process, but it can be modified with
|
|
593
|
-
* and
|
|
591
|
+
* process, but it can be modified with g_app_launch_context_setenv()
|
|
592
|
+
* and g_app_launch_context_unsetenv().
|
|
594
593
|
*
|
|
595
594
|
* On UNIX, this function sets the `GIO_LAUNCHED_DESKTOP_FILE`
|
|
596
595
|
* environment variable with the path of the launched desktop file and
|
|
@@ -599,8 +598,8 @@ export namespace CMenu {
|
|
|
599
598
|
* should it be inherited by further processes. The `DISPLAY`,
|
|
600
599
|
* `XDG_ACTIVATION_TOKEN` and `DESKTOP_STARTUP_ID` environment
|
|
601
600
|
* variables are also set, based on information provided in `context`.
|
|
602
|
-
* @param files a
|
|
603
|
-
* @param context
|
|
601
|
+
* @param files a #GList of #GFile objects
|
|
602
|
+
* @param context a #GAppLaunchContext or %NULL
|
|
604
603
|
*/
|
|
605
604
|
vfunc_launch(files?: Gio.File[] | null, context?: Gio.AppLaunchContext | null): boolean;
|
|
606
605
|
/**
|
|
@@ -611,26 +610,26 @@ export namespace CMenu {
|
|
|
611
610
|
* one URI per invocation as part of their command-line, multiple instances
|
|
612
611
|
* of the application will be spawned.
|
|
613
612
|
*
|
|
614
|
-
* To launch the application without arguments pass a
|
|
613
|
+
* To launch the application without arguments pass a %NULL `uris` list.
|
|
615
614
|
*
|
|
616
615
|
* Note that even if the launch is successful the application launched
|
|
617
616
|
* can fail to start if it runs into problems during startup. There is
|
|
618
617
|
* no way to detect this.
|
|
619
|
-
* @param uris a
|
|
620
|
-
* @param context
|
|
618
|
+
* @param uris a #GList containing URIs to launch.
|
|
619
|
+
* @param context a #GAppLaunchContext or %NULL
|
|
621
620
|
*/
|
|
622
621
|
vfunc_launch_uris(uris?: string[] | null, context?: Gio.AppLaunchContext | null): boolean;
|
|
623
622
|
/**
|
|
624
|
-
* Async version of
|
|
623
|
+
* Async version of g_app_info_launch_uris().
|
|
625
624
|
*
|
|
626
625
|
* The `callback` is invoked immediately after the application launch, but it
|
|
627
626
|
* waits for activation in case of D-Bus–activated applications and also provides
|
|
628
627
|
* extended error information for sandboxed applications, see notes for
|
|
629
|
-
*
|
|
630
|
-
* @param uris a
|
|
631
|
-
* @param context
|
|
632
|
-
* @param cancellable a
|
|
633
|
-
* @param callback a
|
|
628
|
+
* g_app_info_launch_default_for_uri_async().
|
|
629
|
+
* @param uris a #GList containing URIs to launch.
|
|
630
|
+
* @param context a #GAppLaunchContext or %NULL
|
|
631
|
+
* @param cancellable a #GCancellable
|
|
632
|
+
* @param callback a #GAsyncReadyCallback to call when the request is done
|
|
634
633
|
*/
|
|
635
634
|
vfunc_launch_uris_async(
|
|
636
635
|
uris?: string[] | null,
|
|
@@ -639,8 +638,8 @@ export namespace CMenu {
|
|
|
639
638
|
callback?: Gio.AsyncReadyCallback<this> | null,
|
|
640
639
|
): void;
|
|
641
640
|
/**
|
|
642
|
-
* Finishes a
|
|
643
|
-
* @param result
|
|
641
|
+
* Finishes a g_app_info_launch_uris_async() operation.
|
|
642
|
+
* @param result a #GAsyncResult
|
|
644
643
|
*/
|
|
645
644
|
vfunc_launch_uris_finish(result: Gio.AsyncResult): boolean;
|
|
646
645
|
/**
|
|
@@ -650,7 +649,7 @@ export namespace CMenu {
|
|
|
650
649
|
vfunc_remove_supports_type(content_type: string): boolean;
|
|
651
650
|
/**
|
|
652
651
|
* Sets the application as the default handler for the given file extension.
|
|
653
|
-
* @param extension a string containing the file extension
|
|
652
|
+
* @param extension a string containing the file extension (without the dot).
|
|
654
653
|
*/
|
|
655
654
|
vfunc_set_as_default_for_extension(extension: string): boolean;
|
|
656
655
|
/**
|
|
@@ -659,9 +658,9 @@ export namespace CMenu {
|
|
|
659
658
|
*/
|
|
660
659
|
vfunc_set_as_default_for_type(content_type: string): boolean;
|
|
661
660
|
/**
|
|
662
|
-
* Sets the application as the last used application for a given type.
|
|
663
|
-
* will make the application appear as first in the list returned
|
|
664
|
-
*
|
|
661
|
+
* Sets the application as the last used application for a given type.
|
|
662
|
+
* This will make the application appear as first in the list returned
|
|
663
|
+
* by g_app_info_get_recommended_for_type(), regardless of the default
|
|
665
664
|
* application for that content type.
|
|
666
665
|
* @param content_type the content type.
|
|
667
666
|
*/
|
|
@@ -723,7 +722,7 @@ export namespace CMenu {
|
|
|
723
722
|
source_property: string,
|
|
724
723
|
target: GObject.Object,
|
|
725
724
|
target_property: string,
|
|
726
|
-
flags: GObject.BindingFlags,
|
|
725
|
+
flags: GObject.BindingFlags | null,
|
|
727
726
|
): GObject.Binding;
|
|
728
727
|
/**
|
|
729
728
|
* Complete version of g_object_bind_property().
|
|
@@ -764,7 +763,7 @@ export namespace CMenu {
|
|
|
764
763
|
source_property: string,
|
|
765
764
|
target: GObject.Object,
|
|
766
765
|
target_property: string,
|
|
767
|
-
flags: GObject.BindingFlags,
|
|
766
|
+
flags: GObject.BindingFlags | null,
|
|
768
767
|
transform_to?: GObject.BindingTransformFunc | null,
|
|
769
768
|
transform_from?: GObject.BindingTransformFunc | null,
|
|
770
769
|
notify?: GLib.DestroyNotify | null,
|
|
@@ -1081,7 +1080,7 @@ export namespace CMenu {
|
|
|
1081
1080
|
stop_emission_by_name(detailedName: string): any;
|
|
1082
1081
|
}
|
|
1083
1082
|
|
|
1084
|
-
|
|
1083
|
+
namespace Tree {
|
|
1085
1084
|
// Signal callback interfaces
|
|
1086
1085
|
|
|
1087
1086
|
interface Changed {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/cmenu-3.0",
|
|
3
|
-
"version": "3.0.0-4.0.0-beta.
|
|
3
|
+
"version": "3.0.0-4.0.0-beta.20",
|
|
4
4
|
"description": "GJS TypeScript type definitions for CMenu-3.0, generated from library version 3.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "cmenu-3.0.js",
|
|
@@ -31,11 +31,10 @@
|
|
|
31
31
|
"test": "tsc --project tsconfig.json"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@girs/gio-2.0": "^2.82.
|
|
35
|
-
"@girs/gjs": "^4.0.0-beta.
|
|
36
|
-
"@girs/glib-2.0": "^2.82.
|
|
37
|
-
"@girs/
|
|
38
|
-
"@girs/gobject-2.0": "^2.82.2-4.0.0-beta.18"
|
|
34
|
+
"@girs/gio-2.0": "^2.82.4-4.0.0-beta.20",
|
|
35
|
+
"@girs/gjs": "^4.0.0-beta.20",
|
|
36
|
+
"@girs/glib-2.0": "^2.82.4-4.0.0-beta.20",
|
|
37
|
+
"@girs/gobject-2.0": "^2.82.4-4.0.0-beta.20"
|
|
39
38
|
},
|
|
40
39
|
"devDependencies": {
|
|
41
40
|
"typescript": "*"
|