Skip to content

Commit

Permalink
fix segfault from wrong name for Module
Browse files Browse the repository at this point in the history
  • Loading branch information
MattRead committed Sep 8, 2010
1 parent ad60b0a commit ac15fa8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG
Expand Up @@ -2,6 +2,8 @@


* CHANGELOG: update changelog * CHANGELOG: update changelog


* CHANGELOG: update changelog

* ephyboy.ephy-extension: update for new name * ephyboy.ephy-extension: update for new name


* README, ephyboy.js: update README for new name * README, ephyboy.js: update README for new name
Expand Down
2 changes: 1 addition & 1 deletion ephyboy.ephy-extension
Expand Up @@ -8,4 +8,4 @@ URL=http://github.com/MattRead/Ephyboy/wiki


[Loader] [Loader]
Type=seed Type=seed
Module=tomboy Module=ephyboy
6 changes: 4 additions & 2 deletions ephyboy.js
Expand Up @@ -67,14 +67,16 @@ var tomboy = null;
var create_tomboy_note = function(event, window) var create_tomboy_note = function(event, window)
{ {
// connect to DBus if we are not yet. // connect to DBus if we are not yet.
if (!tomboy) if (!tomboy) {
tomboy = new Tomboy(); tomboy = new Tomboy();
}


// short circuit if nothing selected. This doesn't really work // short circuit if nothing selected. This doesn't really work
var content = window.get_clipboard(Gdk.atom_intern("PRIMARY")).wait_for_text().xmlEscape(); var content = window.get_clipboard(Gdk.atom_intern("PRIMARY")).wait_for_text().xmlEscape();


if (!content) if (!content) {
return false; return false;
}


// get title, url, and selection; and encode data for XML // get title, url, and selection; and encode data for XML
var web_view = window.get_active_child().get_web_view(); var web_view = window.get_active_child().get_web_view();
Expand Down

0 comments on commit ac15fa8

Please sign in to comment.