Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: timwaters/ruby-gnome2-play
base: 6841569056
...
head fork: timwaters/ruby-gnome2-play
compare: 46cdb25b2e
  • 2 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
View
13 README
@@ -0,0 +1,13 @@
+a number of play scripts using ruby gnome2 http://ruby-gnome2.sourceforge.jp/hiki.cgi
+
+testapplet
+
+put the .server file in /usr/lib/bonobo/servers/
+
+put the ruby file, (example-applet) in /usr/lib/gnome-panel/
+
+Start the ruby file in the dev directory on the console (for debugging)
+
+click add to panel etc
+
+ctrl-c stops the applet.
View
27 testapplet/OADIID:GNOME_ExampleApplet_Factory.server
@@ -0,0 +1,27 @@
+<oaf_info>
+<oaf_server iid="OAFIID:GNOME_ExampleApplet_Factory"
+ type="exe"
+ location="/usr/lib/gnome-panel/example-applet">
+ <oaf_attribute name="repo_ids" type="stringv">
+ <item value="IDL:Bonobo/GenericFactory:1.0"/>
+ <item value="IDL:Bonobo/Unknown:1.0"/>
+ </oaf_attribute>
+ <oaf_attribute name="name" type="string" value="Example Applet Factory2"/>
+ <oaf_attribute name="description" type="string" value="Example Applet Factory2"/>
+</oaf_server>
+<oaf_server iid="OAFIID:GNOME_ExampleApplet"
+ type="factory"
+ location="OAFIID:GNOME_ExampleApplet_Factory">
+ <oaf_attribute name="repo_ids" type="stringv">
+ <item value="IDL:GNOME/Vertigo/PanelAppletShell:1.0"/>
+ <item value="IDL:Bonobo/Control:1.0"/>
+ <item value="IDL:Bonobo/Unknown:1.0"/>
+ </oaf_attribute>
+ <oaf_attribute name="name" type="string" value="Example2"/>
+ <oaf_attribute name="description" type="string" value="This is an panel applet example2"/>
+ <oaf_attribute name="name-de" type="string" value="Beispiel"/>
+ <oaf_attribute name="description-de" type="string" value="Dies ist ein panel applet Beispiel"/>
+ <oaf_attribute name="panel:icon" type="string" value="exampleimage"/>
+ <oaf_attribute name="panel:category" type="string" value="Accessories"/>
+</oaf_server>
+</oaf_info>
View
29 testapplet/example-applet
@@ -0,0 +1,29 @@
+#!/usr/bin/env ruby
+
+require 'gnomecanvas2'
+require 'panelapplet2'
+require 'gnome2'
+require 'net/http'
+require 'uri'
+require 'rubygems'
+require 'gtk2'
+
+
+
+OAFIID = "OAFIID:GNOME_ExampleApplet_Factory"
+
+oafiid = OAFIID
+
+init = proc do |applet, iid|
+ #applet.add_preferences '/home/tim/.example_applet/prefs'
+ applet.set_flags PanelApplet::EXPAND_MINOR
+
+ button = Gtk::Button.new("Hello World!")
+ # gui = MyApplet.new applet
+ # applet << gui
+ applet.add(button)
+ applet.show_all
+ true
+end
+
+PanelApplet.main oafiid, "ExampleApplet", "0.1", &init

No commit comments for this range

Something went wrong with that request. Please try again.