[seed] Pango: Remove old, dead code from the first revision.
- From: Tim Horton <hortont src gnome org>
- To: svn-commits-list gnome org
- Subject: [seed] Pango: Remove old, dead code from the first revision.
- Date: Wed, 13 May 2009 03:01:42 -0400 (EDT)
commit e2caec7e71191c8bec5d06f6391774c31c7d212a
Author: Tim Horton <hortont svn gnome org>
Date: Wed May 13 02:43:40 2009 -0400
Pango: Remove old, dead code from the first revision.
---
examples/pango.js | 79 -----------------------------------------------------
1 files changed, 0 insertions(+), 79 deletions(-)
diff --git a/examples/pango.js b/examples/pango.js
index 019ab0d..327a360 100755
--- a/examples/pango.js
+++ b/examples/pango.js
@@ -191,11 +191,6 @@ PropertyEditor = new GType({
}
});
-function update_font()
-{
- //current_actor.font_name = font_list[properties.font_combo.get_active()] + " " + parseFloat(properties.size_entry.text,10);
-}
-
function clear_selected(stg, evt)
{
if(stg.equals(stage.get_actor_at_pos(evt.button.x, evt.button.y)))
@@ -214,80 +209,6 @@ function clear_selected(stg, evt)
return false;
}
-/*
-function select_actor(actor)
-{
- timeline.rewind();
-
- if(current_actor)
- current_actor.opacity = 255;
-
- current_actor = actor;
-
- if(!current_actor)
- {
- // defaults
- properties.text.text = "";
- properties.font_combo.set_active(font_list.indexOf("DejaVu Sans"));
- return;
- }
-
- properties.text.text = actor.text;
- var pfd = Pango.Font.description_from_string(actor.get_font_name());
-
- properties.size_entry.text = pfd.to_string().match(new RegExp("[0-9]+$"),"");
- properties.font_combo.set_active(font_list.indexOf(pfd.to_string().replace(new RegExp(" [0-9]+$"),"")));
-}
-
-function mouse_click(actor, evt)
-{
- dx = evt.mouse.x - actor.x;
- dy = evt.mouse.y - actor.y;
-
- select_actor(actor);
-
- dragging = true;
-
- return true;
-}
-
-function mouse_release()
-{
- dragging = false;
-
- return false;
-}
-
-function mouse_moved(win, evt)
-{
- if(!dragging)
- return false;
-
- current_actor.x = evt.mouse.x - dx;
- current_actor.y = evt.mouse.y - dy;
-
- return false;
-}
-
-function pango_actor(label, font)
-{
- this.label = new Clutter.Text({text:label, font_name:font});
- this.label.reactive = true;
- this.label.signal.button_press_event.connect(mouse_click);
-
- stage.add_actor(this.label);
-}
-
-function pulser()
-{
- timeline = new Clutter.Timeline({fps:30, num_frames:628, loop:true});
-
- timeline.signal.new_frame.connect(function(timeline, frame_num)
- { current_actor.opacity = ((Math.sin(frame_num/7)+1) * 67) + 120; });
-
- timeline.start();
-}*/
-
function ui_setup()
{
var window = new Gtk.Window();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]