[PATCH] patch to fix an a11y bug
- From: Narayana Pattipati <narayana pattipati wipro com>
- To: Nautilus-list <nautilus-list gnome org>
- Subject: [PATCH] patch to fix an a11y bug
- Date: Mon, 12 Jan 2004 15:09:56 +0530
Hi,
Fixed the following a11y bug and uploaded a patch.
http://bugzilla.gnome.org/show_bug.cgi?id=123478
Patch removes hard-coding of font size for Nautilus sidebar title's
title_text and more_info_text.
Kindly have a look at the patch.
Thanks,
Narayana
--- nautilus/ChangeLog Fri Dec 12 05:50:58 2003
+++ nautilus-new/ChangeLog Fri Dec 12 05:50:50 2003
@@ -1,3 +1,9 @@
+2003-12-12 Narayana Pattipati wipro com <narayana pattipati wipro com>
+
+ * src/nautilus-sidebar-title.c (style_set), (update_title_font):
+ Do not hard code the font size of title_text and more_info_text.
+ Fixes bugzilla bug#123478
+
2003-12-11 Alexander Larsson <alexl redhat com>
* libnautilus-private/nautilus-dnd.c
--- nautilus/src/nautilus-sidebar-title.c Fri Dec 12 05:45:48 2003
+++ nautilus-new/src/nautilus-sidebar-title.c Fri Dec 12 05:45:41 2003
@@ -132,7 +132,6 @@ style_set (GtkWidget *widget,
/* Update the fixed-size "more info" font */
style = gtk_widget_get_style (widget);
font_desc = pango_font_description_copy (style->font_desc);
- pango_font_description_set_size (font_desc, MORE_INFO_FONT_SIZE * PANGO_SCALE);
gtk_widget_modify_font (sidebar_title->details->more_info_label,
font_desc);
@@ -396,9 +395,7 @@ update_icon (NautilusSidebarTitle *sideb
static void
update_title_font (NautilusSidebarTitle *sidebar_title)
{
- int available_width;
PangoFontDescription *title_font;
- int largest_fitting_font_size;
GtkStyle *style;
/* Make sure theres work to do */
@@ -406,23 +403,9 @@ update_title_font (NautilusSidebarTitle
return;
}
- available_width = GTK_WIDGET (sidebar_title)->allocation.width - TITLE_PADDING;
-
- /* No work to do */
- if (available_width <= 0) {
- return;
- }
-
style = gtk_widget_get_style (GTK_WIDGET (sidebar_title));
title_font = pango_font_description_copy (style->font_desc);
- largest_fitting_font_size = eel_pango_font_description_get_largest_fitting_font_size (
- title_font,
- gtk_widget_get_pango_context (sidebar_title->details->title_label),
- sidebar_title->details->title_text,
- available_width,
- MIN_TITLE_FONT_SIZE,
- MAX_TITLE_FONT_SIZE);
- pango_font_description_set_size (title_font, largest_fitting_font_size * PANGO_SCALE);
+
pango_font_description_set_weight (title_font, PANGO_WEIGHT_BOLD);
gtk_widget_modify_font (sidebar_title->details->title_label,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]