Go to file
Owen W. Taylor 0ce05a04c8 Centralize computations of border and padding into StThemeNode
Rather than repeating the computation of borders in many different
widget subclasses, add helper functions:

 st_theme_node_adjust_for_height()
 st_theme_node_adjust_preferred_width()
 st_theme_node_adjust_for_width()
 st_theme_node_adjust_preferred_height()
 st_theme_node_get_content_box()

That are used in get_preferred_width()/get_preferred_height() and
allocate() methods to consistently apply the necessary adjustments.
This allows removing the StPadding type.

Queueing a relayout when the borders/padding change is moved from
st_widget_real_style_changed() to the invoking code to allow access
to the old StThemeNode for comparison. (Should this be added as
a parameter to the signal?)

Borders are included in the geometry adjustments, but borders
are not yet drawn.

https://bugzilla.gnome.org/show_bug.cgi?id=595993
2009-09-29 19:58:30 -04:00
.settings Convert all JS style to be uniform, add Eclipse settings bits 2008-11-28 20:12:20 +00:00
data Port our imported parts of Mx to ShellTheme 2009-09-29 19:58:29 -04:00
js Port our imported parts of Mx to ShellTheme 2009-09-29 19:58:29 -04:00
po Updated Spanish translation 2009-09-28 22:00:25 +02:00
src Centralize computations of border and padding into StThemeNode 2009-09-29 19:58:30 -04:00
tests Add support for inline styles 2009-09-29 19:58:29 -04:00
tools/build Import MxEntry, MxLabel, MxClipboard 2009-09-29 19:58:20 -04:00
.gitignore Import stylesheet code from hippo-canvas 2009-09-29 19:58:21 -04:00
.project Convert all JS style to be uniform, add Eclipse settings bits 2008-11-28 20:12:20 +00:00
AUTHORS Initial commit 2008-10-31 04:22:44 +00:00
autogen.sh Add localization 2009-08-14 09:14:34 -04:00
configure.ac Port our imported parts of Mx to ShellTheme 2009-09-29 19:58:29 -04:00
COPYING Initial commit 2008-10-31 04:22:44 +00:00
gnome-shell.doap Add README and DOAP file 2009-09-04 15:23:13 -04:00
MAINTAINERS Initial commit 2008-10-31 04:22:44 +00:00
Makefile.am Extend distcheck for files in Git to all files 2009-09-29 19:58:21 -04:00
README Add README and DOAP file 2009-09-04 15:23:13 -04:00

GNOME Shell provides core user interface functions for the GNOME 3 desktop,
like switching to windows and launching applications. GNOME Shell takes
advantage of the capabilities of modern graphics hardware and introduces
innovative user interface concepts to provide a visually attractive and
easy to use experience.

For more information about GNOME Shell, including instructions on how
to build GNOME Shell from source and how to get involved with the project,
see:

 http://live.gnome.org/GnomeShell

Bugs should be reported at http://bugzilla.gnome.org against the 'gnome-shell'
product.

License
=======
GNOME Shell is distributed under the terms of the GNU General Public License,
version 2 or later. See the COPYING file for details.