gnome-shell-extensions

Getting keyboard modifiers state using Gnome libs (GDK) fetches initial state only

痴心易碎 提交于 2019-11-29 11:33:34
I'm trying to get the current keyboard modifiers state through gnome GDK or GTK library in aim to implement an accessibility gnome shell extension that shows that state. I know how to get thier state using xlib, but there is not full binding for gnome gjs. The code below get only the initial state. It does not update state. /* * compiling: gcc `pkg-config --cflags gdk-3.0` -o gdk_mod gdk_mod.c `pkg-config --libs gdk-3.0` */ #include <gdk/gdk.h> int main (int argc, char **argv) { gdk_init(&argc, &argv); GdkDisplay * disp; disp = gdk_display_open(NULL); if (disp!=NULL) g_printf("display

How to test / debug GNOME Shell extensions? Is there any tool for that?

久未见 提交于 2019-11-28 18:14:37
问题 I would like to develop GNOME Shell extensions and found it's really easy to step into the development process but I still can't figure out how to debug / test my extensions effectively. Are there any tools for that purpose? Is there any kind of real time console like we have on modern browsers or javascript servers environments? 回答1: Yes, the real-time console is called "Looking Glass" and can be started by pressing Alt + F2 and typing lg at the prompt. More info: https://live.gnome.org