Ubuntu SourceView

hi,

i’m resending this mail, because it’s been considered Spam, and i’m
still
stuck on this.

i wanted to test my app on ubuntu lucid, but while require
‘gtksourceview’
on gentoo works fine i find out that on ubuntu they only have
libgtksourceview2-ruby which has it version 0.19-3-1ubuntu3, which means
the
following files for them:

gtksourceview2.rb

so i have to change my require to ‘gtksourceview2’ ?
i did that, but then i ran into 'uninitialized constant
Gtk::SourceLanguagesManager

so i guess this is not the right way to install the Gtk::SourceView on
ubuntu.

can anyone help me out with this?

ny source looks good on gentoo like this:

require ‘gtksourceview’
class MySourceView < Gtk::ScrolledWindow
def initialize
@lm=Gtk::SourceLanguagesManager.new
@source_buffer = Gtk::SourceBuffer.new
@source_buffer.set_highlight(true)

thanks

I haven’t had time to look at this, but I have an app that
uses gtksourceview. As you say, it currently doesn’t work
on Ubuntu. I will look at it tonight to see if I can find
the problem.

    MikeC

Thanks for the answer,
I already updated my source to fall back to Gtk::TextView if using
Gtk::SourceView fails.
But i’m still curious about the situation.

Thanks
Balint

On 09/15/2010 01:05 AM, Mike C. wrote:

i’m resending this mail, because it’s been considered Spam, and i’m still
i did that, but then i ran into 'uninitialized constant
class MySourceView< Gtk::ScrolledWindow
Start uncovering the many advantages of virtual appliances
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev


ruby-gnome2-devel-en mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en


Dobai-Pataky B.

It’s actually called Gtk::SourceLanguageManager now.

This script works for me on 10.04. It installs the required packages for
gtksourceview2 and then downloads, compiles and installs the latest ruby
bindings. It complains it can’t compile a bunch of bindings as I’ve not
bothered to install all the libs but it works for sourceview2.

sudo apt-get install libglib2.0-dev libatk1.0-dev libpango1.0-dev
libgtk2.0-dev libgtksourceview2.0-dev
gem install pkg-config
wget
http://sourceforge.net/projects/ruby-gnome2/files/ruby-gnome2/ruby-gnome2-0.90.2/ruby-gnome2-all-0.90.2.tar.gz

tar xf ruby-gnome2-all-0.90.2.tar.gz
cd ruby-gnome2-all-0.90.2
ruby extconf.rb
sudo make
sudo make install

HTH

Dobai-Pataky B. wrote:

hi,

i’m resending this mail, because it’s been considered Spam, and i’m
still
stuck on this.

i wanted to test my app on ubuntu lucid, but while require
‘gtksourceview’
on gentoo works fine i find out that on ubuntu they only have
libgtksourceview2-ruby which has it version 0.19-3-1ubuntu3, which means
the
following files for them:

gtksourceview2.rb

so i have to change my require to ‘gtksourceview2’ ?
i did that, but then i ran into 'uninitialized constant
Gtk::SourceLanguagesManager

so i guess this is not the right way to install the Gtk::SourceView on
ubuntu.

can anyone help me out with this?

ny source looks good on gentoo like this:

require ‘gtksourceview’
class MySourceView < Gtk::ScrolledWindow
def initialize
@lm=Gtk::SourceLanguagesManager.new
@source_buffer = Gtk::SourceBuffer.new
@source_buffer.set_highlight(true)

thanks

thankyou philthompson!

You’ve solved my 2 day long install!

I want to post complete instructions so others can benefit too:

sudo apt-get install libglib2.0-dev libatk1.0-dev libpango1.0-dev
libgtk2.0-dev libgtksourceview2.0-dev ruby1.8-dev

After that, you can now install the new gems for the bindings (Thanks
you Ruby/Gnome2 team for the gems!!! Andrea :wink: )

sudo gem install gtk2
sudo gem install gtksourceview2

Please correct me if this is wrong.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs