It's part of xscreensaver, so you can get the code with 'apt-get source xscreensaver', or by looking at Launchpad:...
Type: Posts; User: crdlb; Keyword(s):
It's part of xscreensaver, so you can get the code with 'apt-get source xscreensaver', or by looking at Launchpad:...
You're blocking the whole program when you sleep like that. Instead, use g_timeout_add or g_timeout_add_seconds to make the mainloop call a function after the specified time interval. In this case,...
in Sound Settings, is Alert Volume set and not muted? If so, does pressing Backspace at an empty prompt make the alert sound? If not, check the "Terminal bell" setting in gnome-terminal (or your...
Fedora, like Ubuntu, uses the open source 'radeon' driver by default.
At least for GtkLabel, you can use the set_attributes method on the widget itself. If you can't do something similar for GtkEntry, you could use GtkTextView, which can be modified with GtkTextTag...
My understanding is that Windows has two parallel APIs. One is 8-bit and uses Windows "ANSI" codepages; the other is 16-bit and uses UTF-16.
I believe you need to use gtk_buildable_get_name to get the GtkBuilder ID.
This was apparently changed a few years ago: https://bugzilla.gnome.org/show_bug.cgi?id=591085
It is not possible to use UTF-16 because it is not ASCII-compatible. Most importantly, C strings are NUL-terminated, and UTF-16 can contain embedded NULs.
Have you considered WebkitGtk? It is used by Epiphany and Midori, and is replacing other HTML engines throughout GNOME.
It can be used from python with the static python-webkit bindings for GTK2,...
That "metacity_theme_active_opacity" setting is for gtk-window-decorator, which is only used with compiz. GNOME Shell does not use compiz, so it will have no effect.
You can use glade with Gtk3 and the gobject-introspection bindings. Your original code looks fine. Did you name the window 'window' in glade?
if not ((2,5) <= (2,7,2) < (3,0)):
throw ...
I normally wouldn't bother checking the python version, but that's how I'd do it.
The '*.m3u' is expanded by the shell, so rm only receives a list of files matching that glob (i.e. files in the current directory ending in .m3u).
'rm -r' allows rm to remove entire directories...
Another way to do most of that is:
unicodedata.normalize('NFKD', s).encode('ASCII', 'ignore').decode()
That will split and strip most diacritical marks. Of your set, it only seems to fail with...
I think you're looking for
line.c_str()
That link is pretty old; the current reference for gtk2 is: http://developer.gnome.org/gtk/stable/GtkMessageDialog.html
Nautilus probably does something like:
app = g_file_query_default_handler(file)
g_app_info_launch(app, file, ctx)
In the end, it runs g_spawn_async (or a related function), which eventually...
I'm not sure about the specific syntax for GTK#, but you can set properties directly on the CellRendererText in addition to mapping properties to model columns.
Is this a bash script? I guess you lost some brackets due to bbcode (please use code tags next time).
#!/bin/bash
while [ -n "$1" ]; do
echo -n "$1 + "
shift
done
(disclaimer: I'm...
You need to install libcv-dev for the development headers. That will also install the actual library package (libcv2.1) if it isn't installed already.
If you have those already, what compiler...
I would probably avoid this problem by keeping my base classes "abstract". So, the instantiatable derived classes would just call morestuff in their __init__.
By far, the easiest method I can think of is a gtk.IconView. You can set the number of columns to 2, and I guess you could create an dummy first item to make the pages line up. You can even call...
A google search turned up: https://bugzilla.redhat.com/show_bug.cgi?id=171351
Apparently, strftime stats /etc/localtime every time it's called.
You might find the alternative package manager Zif interesting. Basically, PackageKit's author argues that a package manager designed to be used from the command line (and written in python) is not a...
You need to use pkg-config to provide the compile and link flags:
gcc -o demo $(pkg-config --cflags glib-2.0 dbus-glib-1) demo.c $(pkg-config --libs glib-2.0 dbus-glib-1)
When compiling and...