summaryrefslogtreecommitdiff
path: root/libnautilus-extensions/nautilus-preferences-item.c
diff options
context:
space:
mode:
authorJohn Sullivan <sullivan@src.gnome.org>2001-04-02 21:15:04 +0000
committerJohn Sullivan <sullivan@src.gnome.org>2001-04-02 21:15:04 +0000
commitac1238314599e827763a84d371d0f4161037f632 (patch)
treefbe68a376cda60650a8c93da04e00543f01a0426 /libnautilus-extensions/nautilus-preferences-item.c
parent0f7c34dfb0a7a30cfce0820be2a6c80a9d0210f8 (diff)
downloadnautilus-ac1238314599e827763a84d371d0f4161037f632.tar.gz
reviewed by: Darin Adler <darin@eazel.com>
Fixed bug 7918 (Preferences window wider than it needs to be) This also fixes the bug where the HTTP Host text field was a little shorter than the HTTP Location text field. * libnautilus-extensions/nautilus-caption.h: * libnautilus-extensions/nautilus-caption.c: (nautilus_caption_set_extra_spacing): Renamed from _set_spacing, since there's a minimum fixed amount of spacing that's always used. The bug was that this routine was (only) being used to align items by setting the padding of the 2nd item in the box. This sets an equal amount of blank space before and after the item, when we only want the space before. Fixed by changing it to use gtk_box_set_spacing instead. (nautilus_caption_set_child): Don't use the spacing for the padding here either. * libnautilus-extensions/nautilus-preferences-item.h: * libnautilus-extensions/nautilus-preferences-item.c: (nautilus_preferences_item_set_caption_extra_spacing): Renamed from _set_caption_spacing for clarity. * libnautilus-extensions/nautilus-preferences-group.c: (preferences_group_align_captions): Updated for name change.
Diffstat (limited to 'libnautilus-extensions/nautilus-preferences-item.c')
-rw-r--r--libnautilus-extensions/nautilus-preferences-item.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libnautilus-extensions/nautilus-preferences-item.c b/libnautilus-extensions/nautilus-preferences-item.c
index fdca87ae7..acfa2784a 100644
--- a/libnautilus-extensions/nautilus-preferences-item.c
+++ b/libnautilus-extensions/nautilus-preferences-item.c
@@ -1076,17 +1076,18 @@ nautilus_preferences_item_get_caption_title_label_width (const NautilusPreferenc
}
void
-nautilus_preferences_item_set_caption_spacing (NautilusPreferencesItem *item,
- int spacing)
+nautilus_preferences_item_set_caption_extra_spacing (NautilusPreferencesItem *item,
+ int extra_spacing)
{
g_return_if_fail (NAUTILUS_IS_PREFERENCES_ITEM (item));
- g_return_if_fail (spacing >= 0);
+ g_return_if_fail (extra_spacing >= 0);
if (!nautilus_preferences_item_child_is_caption (item)) {
return;
}
- return nautilus_caption_set_spacing (NAUTILUS_CAPTION (item->details->child), spacing);
+ nautilus_caption_set_extra_spacing (NAUTILUS_CAPTION (item->details->child),
+ extra_spacing);
}
void