The time now is Mon 20 May 2013, 01:14
All times are UTC - 4 |
|
Page 22 of 35 [514 Posts] |
Goto page: Previous 1, 2, 3, ..., 20, 21, 22, 23, 24, ..., 33, 34, 35 Next |
| Author |
Message |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 6855 Location: Perth, Western Australia
|
Posted: Fri 12 Jun 2009, 00:57 Post subject:
|
|
| gpnet wrote: | Hi Barry,
So Barry , If I well understood there are serveral changes to the general logic. In order to the job I want to do I think I have to consider a couple o things. In detail :
1. the words on/of are gone
2. the file deadpackages.txt,PBG_rettags.txt are gone.
3. the file's entry in each .files are not needed, just directories.
-this means if one want to reinstall a package , it must install from the original repo from a list of repos
-this means if one want unistall a package must delete all files in specific dir enumerating the content and recurring the subdirs.
All this is correct, Do I forget something ?
What about backup files ? Do you have any suggestion ?. |
The .files files are as before, except they ALSO contain directory entries as well as file entries. The Easiest thing is to run a Woof build and use the Puppy Packge Manager to install a package. then take a look in /root/.packages.
_________________ http://bkhome.org/blog2/
|
|
Back to top
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 6855 Location: Perth, Western Australia
|
Posted: Fri 12 Jun 2009, 01:00 Post subject:
|
|
| nikobordx wrote: | Hi all,
New version without warning !
Nicolas. |
Nicolas,
I compiled this in my latest Woof build Upup, which has gtksourceview, but the text editor does not display any syntax highlighting.
...is this part of it still not implemented?
_________________ http://bkhome.org/blog2/
|
|
Back to top
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 6855 Location: Perth, Western Australia
|
Posted: Fri 12 Jun 2009, 01:04 Post subject:
|
|
| gege2061 wrote: | Hello
I am pleased to announce the next release of Val(a)IDE with support for genie!
Val(a)IDE 0.5 |
Ah, I've just realised why I can't compile it, my system has gtk 2.14.7.
Is it possible to not be reliant on gtk >= 2.16.x?
_________________ http://bkhome.org/blog2/
|
|
Back to top
|
|
 |
nikobordx
Joined: 23 May 2009 Posts: 84 Location: Bordeaux, France
|
Posted: Fri 12 Jun 2009, 04:42 Post subject:
New version of Text Editor |
|
Hi all,
This is a new version with "line number" and "syntax highlighting" support !!!
You need the new gtksourceview to make compile !
Please test it !
Nicolas.
| Description |
|

Download |
| Filename |
gtksourceview-2.0.vapi.tar.gz |
| Filesize |
2.3 KB |
| Downloaded |
255 Time(s) |
| Description |
|

Download |
| Filename |
texteditor.gs.tar.gz |
| Filesize |
4.44 KB |
| Downloaded |
242 Time(s) |
|
|
Back to top
|
|
 |
nikobordx
Joined: 23 May 2009 Posts: 84 Location: Bordeaux, France
|
Posted: Fri 12 Jun 2009, 08:44 Post subject:
Libnotify test |
|
Re - Hi all !
New test, libnotify:
| Code: |
[indent=4]
/* Build with valac --pkg gtk+-2.0 --pkg libnotify yourfile.gs */
uses
Gtk
Notify
init
Gtk.init (ref args)
var test = new NotifyTest ()
Notify.init("test")
test.show_all ()
test.low_clicked ()
test.normal_clicked ()
test.critical_clicked ()
Gtk.main ()
class NotifyTest : Window
init
title = "Simple Notify Test"
default_height = 45
default_width = 115
window_position = WindowPosition.CENTER
destroy += exit_app
var low_button = new Button.with_label("LOW")
low_button.clicked += low_clicked
var normal_button = new Button.with_label ("NORMAL")
normal_button.clicked += normal_clicked
var critical_button = new Button.with_label ("CRITICAL")
critical_button.clicked += critical_clicked
var quit_button = new Button.from_stock (STOCK_QUIT)
quit_button.clicked += exit_app
var hbox = new HBox (false, 0)
hbox.pack_start (low_button, false, true, 0)
hbox.pack_start (normal_button, false, true, 0)
hbox.pack_start (critical_button, false, true, 0)
hbox.pack_start (quit_button, false, true, 0)
add (hbox)
def low_clicked ()
var notification = new Notification ("Notify Test", "This is a LOW test", "icon_name", null)
notification.set_timeout(5000)
notification.set_urgency(Notify.Urgency.LOW)
try
notification.show()
except ex : GLib.Error
print("Unable to show low notification")
def normal_clicked ()
var notification = new Notification ("Notify Test", "This is a NORMAL test", "icon_name", null)
notification.set_timeout(5000)
notification.set_urgency(Notify.Urgency.NORMAL)
try
notification.show()
except ex : GLib.Error
print("Unable to show normal notification")
def critical_clicked ()
var notification = new Notification ("Notify Test", "This is a CRITICAL test", "icon_name", null)
notification.set_timeout(5000)
notification.set_urgency(Notify.Urgency.CRITICAL)
try
notification.show()
except ex : GLib.Error
print("Unable to show critical notification")
def private exit_app ()
Notify.uninit ()
Gtk.main_quit()
|
See you,
Nicolas.
|
|
Back to top
|
|
 |
nikobordx
Joined: 23 May 2009 Posts: 84 Location: Bordeaux, France
|
Posted: Fri 12 Jun 2009, 11:41 Post subject:
StatusIcon test |
|
Oop's, a new test, StatusIcon:
| Code: |
[indent=4]
/* Build with valac --pkg gtk+-2.0 yourfile.gs */
uses
Gtk
init
Gtk.init (ref args)
var test = new StatusIconTest ()
test.show_all ()
Gtk.main ()
class StatusIconTest : Window
trayicon : StatusIcon
menu : Menu
init
title = "StatusIcon"
window_position = WindowPosition.CENTER
set_resizable(false)
destroy += exit_app
var label = new Label("Look the house in your taskbar !!!")
var hbox = new HBox (false, 0)
hbox.pack_start (label, false, true, 0)
add (hbox)
/* Create tray icon */
trayicon = new StatusIcon.from_stock(STOCK_HOME)
trayicon.set_tooltip_text ("Hello, i'm a tooltip !")
trayicon.set_visible(true)
trayicon.activate += icon_clicked
create_menu()
/* Create menu */
def private create_menu ()
menu = new Menu()
var menuItem = new ImageMenuItem.from_stock(STOCK_ABOUT, null)
menuItem.activate += about_clicked
menu.append(menuItem)
var menuItem2 = new ImageMenuItem.from_stock(STOCK_QUIT, null)
menuItem2.activate += exit_app
menu.append(menuItem2)
menu.show_all()
trayicon.popup_menu += def (button, time)
show_popup(button, time)
/* Show popup menu */
def private show_popup (button : uint, time : uint)
menu.popup(null, null, null, button, time)
def private icon_clicked ()
print("I know you have clicked on the icon !!")
def private about_clicked ()
var about = new AboutDialog ()
about.set_version("1.0")
about.set_program_name("Simple StatusIcon Test")
about.set_comments("This is a Simple StatusIcon Test")
about.set_copyright("Nicolas alias nikobordx")
about.run()
about.hide()
def private exit_app ()
Gtk.main_quit()
|
I don't know what to test now ! if someone have an idea ...
Nicolas.
|
|
Back to top
|
|
 |
nikobordx
Joined: 23 May 2009 Posts: 84 Location: Bordeaux, France
|
Posted: Sat 13 Jun 2009, 06:25 Post subject:
Genie SDK |
|
Hi,
For all persons interested, I created a small sdk of my genie test !
Nicolas.
| Description |
|

Download |
| Filename |
GenieSamples.tar.gz |
| Filesize |
12.8 KB |
| Downloaded |
324 Time(s) |
|
|
Back to top
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 6855 Location: Perth, Western Australia
|
Posted: Sat 13 Jun 2009, 06:31 Post subject:
Re: New version of Text Editor |
|
| nikobordx wrote: | Hi all,
This is a new version with "line number" and "syntax highlighting" support !!!
You need the new gtksourceview to make compile !
Please test it !
Nicolas. |
Nicolas,
Yes, I now have syntax highlighting!
When I open a file from the commandline, for example:
# simpletexteditor demo.htm
It opens at the end of the file. Can this be fixed?
Starting the editor in a terminal, without specifying any file on the commandline, I see this warning:
| Code: | ** (simpletexteditor:2615): CRITICAL **: text_file_viewer_open_file: assertion `filename != NULL' failed
Unable to delete temp file, anyway it's not important ! |
...does that matter?
Note, I'm running my latest Woof-built "413", based on Puppy 412 with upgrades, GTK 2.14.7.
_________________ http://bkhome.org/blog2/
|
|
Back to top
|
|
 |
nikobordx
Joined: 23 May 2009 Posts: 84 Location: Bordeaux, France
|
Posted: Sat 13 Jun 2009, 06:52 Post subject:
|
|
Hi Barry,
I have the same, can you try this:
Delete this line: text_view.scroll_to_mark (buf.get_insert (), 0.25, false, 0.0, 0.0)
Rebuild and test !
I ask you because I updated vala (version 0.7.4) and I can't compile the texteditor anymore.
| Code: |
texteditor.gs:567.61-567.67: error: Argument 3: Cannot convert from `ulong' to `int'
FileUtils.get_contents (filename, out text, out len)
|
Nicolas.
|
|
Back to top
|
|
 |
nikobordx
Joined: 23 May 2009 Posts: 84 Location: Bordeaux, France
|
Posted: Sat 13 Jun 2009, 09:07 Post subject:
|
|
Re-Hi Barry,
Ok i found a solution.
Under the function: | Code: | | def open_file (filename : string) |
Add this:
Before the line: | Code: | | status_bar.push(0, "You are editing: " + filename) |
See you,
Nicolas.
|
|
Back to top
|
|
 |
nikobordx
Joined: 23 May 2009 Posts: 84 Location: Bordeaux, France
|
Posted: Sat 13 Jun 2009, 10:14 Post subject:
SDK |
|
[Message Deleted]
See more recent message !
Nicolas.
Last edited by nikobordx on Mon 15 Jun 2009, 16:41; edited 1 time in total
|
|
Back to top
|
|
 |
nikobordx
Joined: 23 May 2009 Posts: 84 Location: Bordeaux, France
|
Posted: Sun 14 Jun 2009, 06:55 Post subject:
|
|
Hi all,
This is a new version of sdk.
25 examples and 3 complete app !
See you,
Nicolas.
| Description |
|

Download |
| Filename |
GenieSamples.tar.gz |
| Filesize |
58.6 KB |
| Downloaded |
327 Time(s) |
|
|
Back to top
|
|
 |
gege2061
Joined: 20 Mar 2009 Posts: 4 Location: France
|
Posted: Sun 14 Jun 2009, 08:16 Post subject:
|
|
| BarryK wrote: | Ah, I've just realised why I can't compile it, my system has gtk 2.14.7.
Is it possible to not be reliant on gtk >= 2.16.x? |
You can try with the attached patch
| Description |
Patch for use valide with GTK+ 2.14
|

Download |
| Filename |
gtk-2.14.patch.tar.gz |
| Filesize |
640 Bytes |
| Downloaded |
287 Time(s) |
|
|
Back to top
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 6855 Location: Perth, Western Australia
|
Posted: Sun 14 Jun 2009, 22:53 Post subject:
|
|
Nicolas,
I inserted the line as you instructed above, it doesn't fix it. I now have two bugs to report with the simple text editor:
1
Chose to exit editor, file was changed, a dialog came up:
"The file is unregistered, do you want to save it?"
...clicking No or Yes buttons, nothing happens.
2.
Open a file on commandline, window displays end of file. The recommended fix
inserting go_to_line(1) did not work. The insertion point is at the beginning of the file, but it initially displays the end of the file.
...if you can fix these, I propose to replace Leafpad in Puppy. I would also like to rename the simple text editor as "NicEdit" if that's ok with you.
_________________ http://bkhome.org/blog2/
|
|
Back to top
|
|
 |
nikobordx
Joined: 23 May 2009 Posts: 84 Location: Bordeaux, France
|
Posted: Mon 15 Jun 2009, 05:44 Post subject:
|
|
[Message Deleted]
See next message !
Nicolas.
Last edited by nikobordx on Mon 15 Jun 2009, 15:46; edited 1 time in total
|
|
Back to top
|
|
 |
|
|
Page 22 of 35 [514 Posts] |
Goto page: Previous 1, 2, 3, ..., 20, 21, 22, 23, 24, ..., 33, 34, 35 Next |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|