Search:

Type: Posts; User: crdlb; Keyword(s):

Page 1 of 10 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    2
    Views
    1,054

    [SOLVED] Re: source code of substrate screensaver

    It's part of xscreensaver, so you can get the code with 'apt-get source xscreensaver', or by looking at Launchpad:...
  2. Thread: GTK SlideShow

    by crdlb
    Replies
    1
    Views
    646

    Re: GTK SlideShow

    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,...
  3. Thread: Alert signal

    by crdlb
    Replies
    22
    Views
    1,211

    Re: Alert signal

    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...
  4. Replies
    8
    Views
    2,412

    [gnome] Re: Gnome 3 Font Issues

    Fedora, like Ubuntu, uses the open source 'radeon' driver by default.
  5. Replies
    3
    Views
    659

    Re: [C++]Interaction between Gtkmm and Pango

    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...
  6. Replies
    4
    Views
    2,754

    Re: Using a UTF-16 locale

    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.
  7. Replies
    3
    Views
    562

    [SOLVED] Re: GtkBuilder and "names"

    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
  8. Replies
    4
    Views
    2,754

    Re: Using a UTF-16 locale

    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.
  9. Replies
    2
    Views
    819

    Re: Python gtkmozembed - new-window signal

    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,...
  10. Replies
    7
    Views
    2,793

    [ubuntu] Re: Aero-Glass in Ubuntu 11.10 with Gnome-Shell?

    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.
  11. Replies
    5
    Views
    1,719

    Re: import and use Glade desing in Python program

    You can use glade with Gtk3 and the gobject-introspection bindings. Your original code looks fine. Did you name the window 'window' in glade?
  12. Replies
    2
    Views
    207

    [SOLVED] Re: [Python] Checking for Compatible Version

    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.
  13. Replies
    10
    Views
    3,188

    Re: Shellscript to remove spaces from filenames

    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...
  14. Replies
    10
    Views
    3,188

    Re: Shellscript to remove spaces from filenames

    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...
  15. Replies
    6
    Views
    2,844

    [SOLVED] Re: C++ converting string into char*

    I think you're looking for
    line.c_str()
  16. Thread: GTK popup

    by crdlb
    Replies
    5
    Views
    1,230

    [SOLVED] Re: GTK popup

    That link is pretty old; the current reference for gtk2 is: http://developer.gnome.org/gtk/stable/GtkMessageDialog.html
  17. Replies
    3
    Views
    409

    Re: Nautius/kernel boundary?

    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...
  18. Replies
    3
    Views
    468

    [SOLVED] Re: [GTK#] Setting font for tree view at once?

    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.
  19. Thread: while sum loop

    by crdlb
    Replies
    3
    Views
    430

    Re: while sum loop

    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...
  20. Replies
    1
    Views
    592

    Re: Cannot Find linOpenCV: Ubuntu 11.10

    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...
  21. Replies
    8
    Views
    1,357

    Re: Call method from base class init in python

    I would probably avoid this problem by keeping my base classes "abstract". So, the instantiatable derived classes would just call morestuff in their __init__.
  22. Replies
    2
    Views
    727

    [SOLVED] Re: Sorting images in GTK with drag and drop...

    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...
  23. Replies
    8
    Views
    995

    [SOLVED] Re: strftime performance

    A google search turned up: https://bugzilla.redhat.com/show_bug.cgi?id=171351

    Apparently, strftime stats /etc/localtime every time it's called.
  24. Replies
    2
    Views
    969

    Re: Add/Remove software slow on f16

    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...
  25. Replies
    2
    Views
    3,929

    [SOLVED] Re: error in #include

    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...
Results 1 to 25 of 250
Page 1 of 10 1 2 3 4