I've just started fiddling with writing gnome-shell extensions, and would like to know how to get a list of contacts a user has.  I've tracked down some likely files: gnome-shell/js/ui/contactDisplay.js and gnome-shell/src/shell_contact_syste...
I am trying to develop my own GNOME Extension. I have read several articles:   gnome-shell-extensions-getting-started gnome-whiteboards-hello-ide   and the official one.   StepByStepTutorial#fromScratch-settingUpEclipse   From wiki.gnome.org:     It...
I'm trying to use GJS and more precisely  to read a text file in a synchronous way. Here is an example an the asynchronous function for file reading   gio-cat.js I found how to proceed with seed using the next function:  function readFile(filenam...
I'm working on simple extension for Gnome DE and have some trouble wrapping my head around asynchronous Soup calls and the event loop.  Here's what I have:  _httpSession = new Soup.Session();  let token = 'sometoken' let url = 'so...
I'm trying to create a simple web editor demo. I want a web view widget to render the contents of a gtk source view widget... I have the widgets drawn, but I can't get the content out of the sourceview to give it to the webview. I thought I s...
As part of a gnome-shell extension, I try to consume a webservice using xmlrpc. The webservice expects a basic authentication header. Using Soup, I got the following code (basically a blueprint from the great openweather extension):  function load_js...
Using JsUnit, I am trying to make use of the assertEquals function, such that when a suite of tests fail, they will print useful information as to why they failed.  My current situation is such:  let actual = some_method_call (); let expected = [...
I'm studying GCampax Gtk+Gjs example[1], and wondering how to use initFormat.  AFAIK it is a JS functionality to put together strings and variables, working such as   print("Hello, {0}".format("World"));  //--> Hello, World   b...
I'm trying a GNOME JavsScript tutorial, that seems not to work in its original version.    var gdaStrConn = Gda.Connection.open_from_string("SQLite", "DB_DIR=" + GLib.get_home_dir () + ";DB_NAME=gnome_demo", null, 0);   pr...
I'm trying to format the output of Gtk.SpinButton in GJS. The goal for now is to simply prepend a string "prefix" to SpinButton's text.  Here's a barebone implementation:  #!/usr/bin/gjs  imports.gi.versions.Gtk = "3.0";...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.