gnome

How can I put my GTK application in the desktop menus?

孤街醉人 提交于 2019-12-25 09:55:33
问题 I started with programming a little time ago and I created my first running application with GTK 3.0. I did not use Glade, I do not know if worth highlight it. My code is working perfectly, but now I have a doubt, how can I make my own desktop menu application? I mean, I want that my application running up without compile in a terminal with GTK 3.0 compiler, but yes with a double click. I have been seen these examples provided by GNOME Developer Center, but I confess that did not understand

Python Widget/GUI framework [closed]

空扰寡人 提交于 2019-12-25 08:22:06
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . What is the best framework to use for building the GUI on a python widget? I'm currently using gnome 3, but would prefer it to be independent of the desktop environment. 回答1: I have used the 3 following toolkits. wxPython is a popular choice. It supports Windows, Mac and Linux but may be tricky to install on

Vala: How to retrieve the names of all files in a zip archive without unzipping it?

萝らか妹 提交于 2019-12-25 08:13:51
问题 Is there any function in vala like zip:list_dir in erlang ? I found libgsf, but I don't want to decompress the zip file. 回答1: You can use libarchive . void check_ok (Archive.Result r) throws IOError { if (r == Archive.Result.OK) return; if (r == Archive.Result.WARN) return; throw new IOError.FAILED ("libarchive returned an error"); } int main () { try { var a = new Archive.Read (); check_ok (a.support_filter_all ()); check_ok (a.support_format_all ()); check_ok (a.open_filename ("archive.zip"

Vala: How to retrieve the names of all files in a zip archive without unzipping it?

此生再无相见时 提交于 2019-12-25 08:10:08
问题 Is there any function in vala like zip:list_dir in erlang ? I found libgsf, but I don't want to decompress the zip file. 回答1: You can use libarchive . void check_ok (Archive.Result r) throws IOError { if (r == Archive.Result.OK) return; if (r == Archive.Result.WARN) return; throw new IOError.FAILED ("libarchive returned an error"); } int main () { try { var a = new Archive.Read (); check_ok (a.support_filter_all ()); check_ok (a.support_format_all ()); check_ok (a.open_filename ("archive.zip"

How to use Openbox+xcompmgr correctly?

泪湿孤枕 提交于 2019-12-25 07:24:23
问题 I use xcompmgr to make the 32 bit window to has a transparent background.The WM is Openbox.But When I run my 32 bit window example,the window is black not transparent.The result I want is set something make xcompmgr work fine.I saw a page "Background turns light gray briefly after logging in (e.g. in Openbox)", hsetroot .I run hsetroot,my window become steady,but like a 24 bit window with a black background.Is there any ideas to meet my demand? 回答1: Even if this message is quite old, maybe I

G_Settings apply changes

孤街浪徒 提交于 2019-12-24 19:34:52
问题 Im doing some C coding but im unable to store g_settings permanently! #include <stdlib.h> #include <locale.h> #include <gio/gio.h> int main(int argc, char **argv) { GSettings *settings; g_type_init(); settings = g_settings_new ("org.nemo.desktop"); printf("%s\n", g_settings_get_string(settings, "font")); g_settings_set (settings, "font", "s", "Arial"); if (g_settings_get_has_unapplied (settings)) printf("X"); printf("%s\n", g_settings_get_string(settings, "font")); return 0; } Trying on Linux

如果你失明了,你怎么编程?

我与影子孤独终老i 提交于 2019-12-24 18:50:37
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 视觉是大多数程序员认为理所当然的感官之一。 大多数程序员会花几个小时看电脑显示器(特别是在他们 在区域的时候 ),但我知道有盲人程序员(例如目前在谷歌工作的电视拉曼)。 如果您是一个盲人(或者慢慢变得盲目),您将如何设置开发环境来帮助您进行编程? (请回答一个建议。这个问题的目的是将好的想法带到最顶层。此外,屏幕阅读器可以更早地阅读好的想法。) #1楼 有一次我遇到Sam Hartman,他自2000年以来就是着名的Debian开发人员,并且是盲目的。 在 这次 采访中,他谈到了Linux用户的可访问性。 他使用Debian和gnome-orca作为屏幕阅读器,它与Gnome一起工作,并“在讲Iceweasel / Firefox和Libreoffice方面做得相当不错”。 特别是关于编程,他说: 虽然[gnome-orca]确实会说gnome-terminal,但说起终端程序并不是很好,我很乐意使用它。 所以,我使用Emacspeak包运行Emacs。 在其中,我运行Emacs终端模拟器,在其中,我倾向于运行Screen。 为了增加乐趣,我经常在内部屏幕中运行其他Emacs实例。 #2楼 我是一名盲人开发人员,我在Windows,GNU Linux和MacOS X下工作。每个平台都为盲人用户提供不同的工作流程

gjs How to read a socket stream in Gnome Shell Extension using g_data_input_stream_read_line_async

百般思念 提交于 2019-12-24 15:03:58
问题 I'm trying to write a Gnome-Shell extension that communicates with Arduino through a Socket Server. The Server and Arduino are running fine, but I'm stuck at the extension code that listens for incoming Server messages. Since I need a non blocking approach, using read_line_async seems perfect. However I can't manage to get it to work. Here's what i got so far (relevant part): let sockClient, sockConnection, output_reader, receivedline; // connect to socket sockClient = new Gio.SocketClient();

Gedit syntax-highlighting with gtksourceview for backreferencing sub-patterns?

十年热恋 提交于 2019-12-24 10:41:29
问题 The following will highlight "timeout" on the second line but will not highlight it ever again. Does gtksourceview support some sort of backreference on the "sub-pattern" that will match all instances throughout the file ? gtksourceview website manual /usr/share/gtksourceview-2.0/language-specs/c.lang <context id="struct" style-ref="struct"> <match>\bstruct\b\s\w+\s(\w+)</match> <include> <context sub-pattern="1" style-ref="structname"/> </include> </context> int ns; struct timeval timeout;

can anyone access http://win32builder.gnome.org?

你说的曾经没有我的故事 提交于 2019-12-24 02:16:45
问题 Trying to download the following, however, I can't seem to access the links from Work, Home and Cell. Anyone know of any alternative sites? trying to get the below packages into MinGW. glib_2.34.3-1_win32.zip pkg-config_0.28-1_win32.zip pkg-config-dev_0.28-1_win32.zip 来源: https://stackoverflow.com/questions/33478651/can-anyone-access-http-win32builder-gnome-org