Scratchpad meets Vala

Scratchpad 0.3.0 is out.

I am very happy with this release, it is a lot faster and a much better codebase. Basically everything has been cleaned up a little. I will now try to release bugfixes more often and focus on getting the project interface done. Changes since 0.2:

New Features:
– Complete port/rewrite to Vala, Scratchpad now runs (flys) natively!
– Tag-based replace mechanism.
– Use GUniqueApp for single instance behaviour, so startup notification
and focus stealing should work better now.

Removed Features:
– No more GnomeVFS, waiting for GVFS!
– Revisions. Wasn’t happy with them, to be reconsidered.
– Autosave and save options. Now defaults to save on focus out (saving
your laptop batteries).
– Tools menu.

Bugfixes:
– It’s practically a rewrite, so all bugs should be brand new!
– Icon sucks less.

Known Problems:
– Font changes won’t take effect immediately.

Advertisements

19 responses to “Scratchpad meets Vala

  1. Very interesting stuff 🙂 Congrats!

    BTW, what’s GVFS?
    And how did you found out about this Vala thing?

  2. Thanks!

    GVFS: http://mail.gnome.org/archives/gtk-devel-list/2006-September/msg00072.html

    I found out about Vala when someone mentioned it on the desktop devel mailinglist.

  3. I tried to compile scratchpad in ubuntu edgy and got plain edit window: no menus, no shortcuts working… I’ve got the basic gtk2 and sourceview -dev packages installed. — Jan

  4. Sorry for now you have to “make install” before Scratchpad can find the UI definition (into /usr or the default /usr/local).

  5. – No more GnomeVFS, waiting for GVFS!

    but …

    ./configure
    [..]
    checking for SCRATCHPAD… configure: error: Package requirements (
    glib-2.0 >= 2.12.0
    gtk+-2.0 >= 2.10.0
    gtksourceview-1.0 >= 1.8.0
    gconf-2.0 >= 2.14.0
    gnome-vfs-2.0 >= 2.16.0
    ) were not met:

    No package ‘gnome-vfs-2.0’ found

  6. eloy: Yeah, what I meant was no GnomeVFS for file access… It still uses GnomeVFS for mimetype detection. Sorry for the confusion.

  7. No problemo at all, now I have preliminary version of debian package.

  8. I’m trying to install Scratchpad on ubuntu 6.06.

    It needs glib-2.0, but I can’t find it in the ubuntu repository. I’ve got libglib2.0…

    … configure: error: Package requirements (
    glib-2.0 >= 2.12.0
    gtk+-2.0 >= 2.10.0
    gtksourceview-1.0 >= 1.8.0
    gconf-2.0 >= 2.14.0
    gnome-vfs-2.0 >= 2.16.0
    ) were not met:

    Any thoughts greatly appreciated!

  9. david: libglib is the right package. Make sure you got the -dev package (libglib-2.0-dev or something) and that it matches the required version.

  10. I’ve been packaging up scratchpad 0.3.0 up for Fedora but parsing an argument causes a segfault (in the example –help). If glibc/glib is to blame I’ll file bugs with Fedora.

    #0 0x0000003781075400 in strlen () from /lib64/libc.so.6
    #1 0x0000003782c45a23 in g_strdup () from /lib64/libglib-2.0.so.0
    #2 0x000000000040b455 in document_new (uri=0x7fffd80e4a45 “–help”)
    at document.c:35
    #3 0x000000000040e613 in document_window_new (
    filename=0x7fffd80e4a45 “–help”) at documentwindow.c:29
    #4 0x0000000000406f0b in application_open_document (self=0x622000,
    uri=0x7fffd80e4a45 “–help”, startup_id=0x0) at application.c:138
    #5 0x00000000004072af in application_new (args=0x7fffd80e28b8)
    at application.c:164
    #6 0x0000000000407377 in main (argc=,
    argv=0x7fffd80e28b8) at application.c:182
    #7 0x000000378101d924 in __libc_start_main (main=0x4072f0 , argc=2,
    ubp_av=0x7fffd80e28b8, init=,
    fini=, rtld_fini=,
    stack_end=0x7fffd80e28a8) at libc-start.c:222
    #8 0x0000000000406a39 in _start ()

  11. Hi David, thanks for working on the package.

    Command line arguments aren’t supported yet, but I don’t get any segfaults (with SVN). Instead it creates a file called “-help”, which isn’t good either of course. I’ll make sure that arguments are at least discarded in the next release.

  12. Is it really just for the gnome desktop? It doesn’t seem to have too many gnome deps…

  13. I was quite excited by your idealistic and principled paradigm regarding text editing. However, when I saw that you had snap previews for your site, I had second thoughts.

    I think snap previews is one of the more annoying things on the web today. They’re disruptive, distracting, and can appear almost “randomly” (from a user’s perspective) by “accidentally” hovering the pointer over a link. I think it’s a bad idea to have things dynamically changing without the user’s intent, and also a bad idea to have the user consciously trying to avoid accidentally tripping the mechanism.

  14. Snap previews are simply Bad Interface Design, and I thought this might reflect on how you design the Scratchpad interface. However, I can see that you were very selective in deciding which links have snap previews, although I would still say that snap previews should be banished entirely.

    Anyhow, I think most of the Scratchpad paradigm is good. Please feel free to remove this comment. I mean it to be read only by you.

  15. You can certainly use Scratchpad in another desktop, but it’s meant to be tightly integrated into the GNOME desktop. For example, it uses the GNOME fixed-width font setting and opening the folder invokes gnome-open.

    As for the Snap previews, I didn’t even notice that WordPress enabled them. I’m just using a design they provide. I think I agree with you and have disabled them now for this site.

  16. Hi, I’ve been trying to get scratchpad to work for a while but am always running into problems,

    first the download link on this website doesn’t work, so I took the SVN version from the google project page.

    After googling for a couple of minutes I found the vala package as it apperantly needs that to install..

    now when I rune ‘make’ after having done autogen.sh I get the following error:

    make[2]: Entering directory `/home/nathan/svn/scratchpad/scratchpad’
    /usr/local/bin/valac –vapidir ./../vapi –pkg gtk+-2.0 –pkg gtksourceview-1.0 –pkg gnome-vfs-2.0 –pkg gconf-2.0 –pkg guniqueapp –pkg misc-utils application.vala basewindow.vala document.vala documentview.vala documentwindow.vala metadata.vala projecttree.vala projectwindow.vala searchentry.vala settings.vala uimanager.vala
    ./../vapi/gtksourceview-1.0.vala:14.10-14.18: error: syntax error, unexpected construct
    ./../vapi/gtksourceview-1.0.vala:63.10-63.18: error: syntax error, unexpected construct
    ./../vapi/gtksourceview-1.0.vala:65.10-65.18: error: syntax error, unexpected construct
    ./../vapi/gtksourceview-1.0.vala:139.10-139.18: error: syntax error, unexpected construct
    ./../vapi/gtksourceview-1.0.vala:169.10-169.18: error: syntax error, unexpected construct
    ./../vapi/gtksourceview-1.0.vala:201.10-201.18: error: syntax error, unexpected construct
    ./../vapi/gtksourceview-1.0.vala:203.10-203.18: error: syntax error, unexpected construct
    ./../vapi/gtksourceview-1.0.vala:280.10-280.18: error: syntax error, unexpected construct
    ./../vapi/gtksourceview-1.0.vala:297.10-297.18: error: syntax error, unexpected construct
    application.vala:27.9-27.17: error: syntax error, unexpected construct
    document.vala:18.9-18.17: error: syntax error, unexpected construct
    documentview.vala:50.9-50.17: error: syntax error, unexpected construct
    documentwindow.vala:7.9-7.17: error: syntax error, unexpected construct
    metadata.vala:15.9-15.17: error: syntax error, unexpected construct
    projectwindow.vala:15.9-15.17: error: syntax error, unexpected construct
    searchentry.vala:36.9-36.17: error: syntax error, unexpected construct
    Compilation failed: 16 error(s), 0 warning(s)
    make[2]: *** [scratchpad.stamp] Error 1
    make[2]: Leaving directory `/home/nathan/svn/scratchpad/scratchpad’
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/nathan/svn/scratchpad’
    make: *** [all] Error 2

    any idea as to what im doing wrong, or perhaps there should simply be an up-to-date download link ?

  17. Hi.

    The link for the vertion 0.3.0 is just not wotking

  18. Corrected, sorry about that.

  19. Hi,

    I’m trying to install scratchpad on Ubuntu 7.10, but I get this error at configure stage:

    No package ‘gnome-vfs-2.0’ found

    I couldn’t find this package in the Ubuntu repositories (via Synaptic).

    Any help is greatly appreciated.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s