Re: guile gnome-terminal macros take 2




>  > "gnome-terminal-new-window" or whatever function.  Do you have
>  > something like that?
> 
> No I don't.  I just tried implementing and I noticed I'll have to copy
> all of new_terminal_cmd() in gnome-terminal.c.  Should I duplicate all
> this code or should I just do something like this...?

Oh, I see.  

Well, I can make new_terminal_cmd be an exported interface.  Would it
work if you remove the "static" in front of the new_terminal_cmd
declaration?

> I suppose I could just call new_terminal() since my module has access
> to all of gnome-terminal.c's data right?  You'd have to change
> new_terminal() to NOT be static though...

yeah, I can do that.  

ObHack: You can always traverse the menus and find the function
pointer to new_terminal_cmd.  But this would be more gross than it
should be :-)

[ some minuets later ]

Ok, I have done this to the CVS gnome-terminal.  Now a bunch of entry
points do not have a static prefix.

Also new_terminal and new_terminal_cmd return the toplevel GnomeApp
widget (useful for when you call close_terminal).

Cheers,
Miguel.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]