tilda-gobject.git
16 years agoRemove old main() functions
Ira W. Snyder [Fri, 18 Jan 2008 06:40:37 +0000 (22:40 -0800)]
Remove old main() functions

Previously, there were main() functions in both tilda-terminal.c and
tilda-window.c. They were used for testing when originally implementing
the TildaTerminal and TildaWindow types, respectively.

Since they are no longer useful, and probably wouldn't run anyway,
they can be removed.

16 years agoAdd debugging macros + use them
Ira W. Snyder [Fri, 18 Jan 2008 06:26:16 +0000 (22:26 -0800)]
Add debugging macros + use them

This adds three debugging macros (debug_enter(), debug_assert() and
debug_printf() for use printing debugging information. They are #define'd
in the same style as those in the Linux Kernel.

If DEBUG is defined, they do something useful, otherwise, they are compiled
away to nothing.

16 years ago[Window] Add centering capability
Ira W. Snyder [Fri, 18 Jan 2008 04:11:44 +0000 (20:11 -0800)]
[Window] Add centering capability

Add the missing implementations of the "centered-horizontally" and
"centered-vertically" properties. They now work as expected.

16 years ago[Window] Add more hardcoded settings for testing
Ira W. Snyder [Fri, 18 Jan 2008 02:02:48 +0000 (18:02 -0800)]
[Window] Add more hardcoded settings for testing

Add some more settings which are just hardcoded in the source for the sake
of testing until the configuration system is integrated.

16 years agoAdd ability to build in "see what symbols aren't used" mode
Ira W. Snyder [Fri, 18 Jan 2008 02:01:37 +0000 (18:01 -0800)]
Add ability to build in "see what symbols aren't used" mode

This is a very performance-degrading option, if turned on. Luckily, it's
only at build time. Since this project isn't autoconfed yet, we'll just
uncomment the proper options by hand.

16 years ago[Window] Add "hidden-at-start" support
Ira W. Snyder [Fri, 18 Jan 2008 01:11:06 +0000 (17:11 -0800)]
[Window] Add "hidden-at-start" support

Adding this feature required some fixes in TildaTerminal. Some widgets
weren't being shown at the right time. This was masked by the
gtk_widget_show_all() in the TildaWindow start-up code.

16 years ago[Window] Bugfixes in pull() code
Ira W. Snyder [Fri, 18 Jan 2008 00:55:32 +0000 (16:55 -0800)]
[Window] Bugfixes in pull() code

This fixes numerous bugs in the pull() code. Some window properties were
being reset by Metacity when the window was hidden, so we must re-set them
every single time the window is re-shown. Lame.

Also, Metacity iconified (minimized) the window if it was pulled down on
one workspace, pulled up while on another workspace, then pulled down on
the current workspace. We'll have to work around that (stupid) behavior
too. Doubly lame.

16 years ago[Window] Add more property implementations
Ira W. Snyder [Fri, 18 Jan 2008 00:42:50 +0000 (16:42 -0800)]
[Window] Add more property implementations

Gives most of the remaining directly-settable NOOP properties the correct
implementation.

16 years ago[Window] Rename property "pinned" to "stick"
Ira W. Snyder [Fri, 18 Jan 2008 00:27:01 +0000 (16:27 -0800)]
[Window] Rename property "pinned" to "stick"

This change continues the trend of keeping our properties the same as those
which we are exporting from GtkWindow.

16 years ago[Window] Rename property "show-in-taskbar" to "skip-taskbar-hint"
Ira W. Snyder [Fri, 18 Jan 2008 00:21:28 +0000 (16:21 -0800)]
[Window] Rename property "show-in-taskbar" to "skip-taskbar-hint"

This change continues the trend of keeping our properties the same as those
which we are exporting from GtkWindow.

16 years ago[Window] Make TildaWindow respect size changes
Ira W. Snyder [Thu, 17 Jan 2008 05:57:49 +0000 (21:57 -0800)]
[Window] Make TildaWindow respect size changes

This makes TildaWindow respect changes in its size via the "height" and
"width" properties. Previously, these were NOOPs.

16 years ago[Window] Rename max-height and max-width properties
Ira W. Snyder [Thu, 17 Jan 2008 05:52:47 +0000 (21:52 -0800)]
[Window] Rename max-height and max-width properties

Rename the max-height and max-width properties to height and width,
respectively. Now that min-height and min-width are gone, there is no need
for the "max" prefix.

16 years ago[Window] Remove min-height and min-width properties
Ira W. Snyder [Thu, 17 Jan 2008 05:11:58 +0000 (21:11 -0800)]
[Window] Remove min-height and min-width properties

The min-height and min-width properties are unused in the 0.9.6pre version
of Tilda, so remove them from this version. I haven't heard anyone asking
for us to keep Tilda "partially-open" when pulled up, so for now, this
feature can disappear.

16 years ago[Window] Focus the VteTerminal when pulled down
Ira W. Snyder [Wed, 16 Jan 2008 21:07:43 +0000 (13:07 -0800)]
[Window] Focus the VteTerminal when pulled down

This has the PULL_DOWN code automatically focus the VteTerminal
so that the user can begin typing. This was originally handled by
a callback, but this seems not to be necessary. It seems easier to
handle it in the PULL_DOWN code.

16 years ago[Window] Hide window decorations
Ira W. Snyder [Wed, 16 Jan 2008 20:19:44 +0000 (12:19 -0800)]
[Window] Hide window decorations

The window decorations should not be shown, ever.

16 years ago[Window] Add positioning capability
Ira W. Snyder [Wed, 16 Jan 2008 20:16:42 +0000 (12:16 -0800)]
[Window] Add positioning capability

The TildaWindow class had the capability to set the x-position and
y-position properties, but they had no effect. This adds the appropriate
gtk_window_move() calls so the position is set up correctly.

16 years agoAdd a basic pull() workalike
Ira W. Snyder [Wed, 16 Jan 2008 07:05:45 +0000 (23:05 -0800)]
Add a basic pull() workalike

This really needs to be expanded into the full pull() that the
old Tilda has, but this is great for testing.

16 years agoImport utilities from Tomboy
Ira W. Snyder [Wed, 16 Jan 2008 01:33:13 +0000 (17:33 -0800)]
Import utilities from Tomboy

This imports the global keybinder, along with its dependencies, as well
as the improved presentation functions (to deal properly with focus-stealing)
from Tomboy (http://www.gnome.org/projects/tomboy/). Thanks GPL!

The keybinder is minimally modified from the tomboy version. Instead of
returning void, it returns a gboolean indicating whether or not the
key-grab was successful.

The utilities package has only the #include "config.h" removed.

16 years ago[Window] Add all properties
Ira W. Snyder [Tue, 15 Jan 2008 23:17:42 +0000 (15:17 -0800)]
[Window] Add all properties

This adds all of the properties that were present in the old Tilda. Note
that currently, none of them have implementations, so nothing more than
getting / setting works.

16 years ago[Terminal] Add scrollbar-position property
Ira W. Snyder [Tue, 15 Jan 2008 21:59:37 +0000 (13:59 -0800)]
[Terminal] Add scrollbar-position property

This was originally going to go in the TildaWindow class, but it really
is nice to have the scrollbar position customizable on a per-terminal
basis.

16 years ago[Terminal] Add URL matching support
Ira W. Snyder [Tue, 15 Jan 2008 03:53:40 +0000 (19:53 -0800)]
[Terminal] Add URL matching support

This adds the excellent URL matching support, mostly copied from the old
tilda_terminal.c.

16 years agoBuild with DEBUG defined
Ira W. Snyder [Tue, 15 Jan 2008 03:52:20 +0000 (19:52 -0800)]
Build with DEBUG defined

This will make sure that all extra debugging information is turned on, which
is especially important during this phase.

16 years ago[Terminal] Add web browser property
Ira W. Snyder [Mon, 14 Jan 2008 21:08:18 +0000 (13:08 -0800)]
[Terminal] Add web browser property

This adds the web-browser property to TildaTerminal. It will be used to
set the user's desired web browser for use when right clicking on WWW
hyperlinks.

16 years ago[Terminal] Add transparency support
Ira W. Snyder [Mon, 14 Jan 2008 08:24:43 +0000 (00:24 -0800)]
[Terminal] Add transparency support

This adds the ability to specify transparency. With the earlier TildaWindow
changes, this should give true transparency in a composited environment,
but falls back to fake transparency if true transparency is not available.

16 years ago[Window] Set up real transparency if possible
Ira W. Snyder [Mon, 14 Jan 2008 08:21:28 +0000 (00:21 -0800)]
[Window] Set up real transparency if possible

This adds the RGBA colormap code so that it is possible to have true
transparency if you have a compositor enabled.

16 years ago[Terminal] Make dynamic titles work properly
Ira W. Snyder [Mon, 14 Jan 2008 07:47:10 +0000 (23:47 -0800)]
[Terminal] Make dynamic titles work properly

Dynamic title generation was not working at all before, now it is
handled by tilda_terminal_window_title_changed_cb().

16 years agoMake tilda generate only one TildaWindow at launch
Ira W. Snyder [Mon, 14 Jan 2008 07:32:02 +0000 (23:32 -0800)]
Make tilda generate only one TildaWindow at launch

The code for automatically figuring out TildaWindow numbers has been
sufficiently tested. The generation of 4 TildaWindows at launch is
no longer needed. One is sufficient for testing from here on out.

16 years ago[Terminal] Add proper handling of exit_action
Ira W. Snyder [Mon, 14 Jan 2008 06:56:38 +0000 (22:56 -0800)]
[Terminal] Add proper handling of exit_action

This makes TildaTerminal do the proper thing when the child exits, according
to the exit_action member.

16 years ago[Window] Add tilda_window_remove_term() implementation
Ira W. Snyder [Mon, 14 Jan 2008 06:55:05 +0000 (22:55 -0800)]
[Window] Add tilda_window_remove_term() implementation

Before this, the tilda_window_remove_term() function was just a stub. This
fills it out to a real implementation, which will be used later to close
running terminals.

16 years ago[Terminal] Add mouse autohide property
Ira W. Snyder [Mon, 14 Jan 2008 06:50:34 +0000 (22:50 -0800)]
[Terminal] Add mouse autohide property

This adds the capability to set the mouse to automatically hide itself when
typing into the terminal.

16 years ago[Terminal] Add tilda_terminal_start_shell()
Ira W. Snyder [Mon, 14 Jan 2008 04:53:57 +0000 (20:53 -0800)]
[Terminal] Add tilda_terminal_start_shell()

This adds real capability of starting shells properly to TildaTerminal.
It will now start the proper shell on startup, as well as launching whatever
the user requested by setting the shell member.

16 years ago[Terminal] Add all properties
Ira W. Snyder [Sat, 12 Jan 2008 21:20:00 +0000 (13:20 -0800)]
[Terminal] Add all properties

Add all of the definitions for all of the properties. Only some of
them are currently fully functional, however.

16 years agoMake TildaWindow properly generate terminal numbers
Ira W. Snyder [Sat, 12 Jan 2008 05:42:04 +0000 (21:42 -0800)]
Make TildaWindow properly generate terminal numbers

This removes the ugly hack of using a static variable to give
unique terminal numbers, and instead determines the correct
terminal number at runtime.

16 years agoMake TildaWindow determine number correctly
Ira W. Snyder [Sat, 12 Jan 2008 05:34:09 +0000 (21:34 -0800)]
Make TildaWindow determine number correctly

Rather than just using a static, monotonically increasing number
for the TildaWindow numbers, actually have tilda figure out the
correct number.

16 years agoHook into DBus
Ira W. Snyder [Fri, 11 Jan 2008 05:49:49 +0000 (21:49 -0800)]
Hook into DBus

This hooks both TildaWindow and TildaTerminal into DBus so that
methods can be called remotely. This makes all of the requested
scripting possible, which will be great.

This is mainly good for testing. The only functions that are exposed
are the Get and Set properties of the GObjects. I wired in the font-size
change in the terminal, so it is possible to see it in action.

16 years agoMove main() into its own file
Ira W. Snyder [Fri, 11 Jan 2008 04:45:23 +0000 (20:45 -0800)]
Move main() into its own file

This moves main() into its own file, which paves the way for a little
more realism in the design, and gets us set up for trying out DBus.

16 years agoHook TildaTerminal and TildaWindow together
Ira W. Snyder [Fri, 11 Jan 2008 03:32:30 +0000 (19:32 -0800)]
Hook TildaTerminal and TildaWindow together

This is the most basic of connections, but it's a good point to start
testing with. We can add tabs to a TildaWindow, and all appears to work
as expected, so far.

16 years ago[Window] Get set up for integration with TildaTerminal
Ira W. Snyder [Thu, 10 Jan 2008 01:20:17 +0000 (17:20 -0800)]
[Window] Get set up for integration with TildaTerminal

16 years ago[Terminal] Get ready for integration with TildaWindow
Ira W. Snyder [Thu, 10 Jan 2008 01:13:43 +0000 (17:13 -0800)]
[Terminal] Get ready for integration with TildaWindow

16 years ago[Terminal] Add enum types
Ira W. Snyder [Wed, 9 Jan 2008 07:33:55 +0000 (23:33 -0800)]
[Terminal] Add enum types

This should probably be changed to use actual, GType-derived
enum types, instead of faking it with ints.

16 years ago[Terminal] Add Integer properties
Ira W. Snyder [Wed, 9 Jan 2008 07:04:31 +0000 (23:04 -0800)]
[Terminal] Add Integer properties

Add the normal integer properties.

16 years ago[Terminal] Add string properties
Ira W. Snyder [Wed, 9 Jan 2008 05:32:30 +0000 (21:32 -0800)]
[Terminal] Add string properties

This adds the first basic implementation of getting / setting all
of the string properties that will be used in TildaTerminal.

16 years agoInitial Commit
Ira W. Snyder [Tue, 8 Jan 2008 21:24:27 +0000 (13:24 -0800)]
Initial Commit