From b3b456d5f18726429af253cef676a129e607ca22 Mon Sep 17 00:00:00 2001 From: Jesse van den Kieboom Date: Mon, 24 Apr 2006 07:08:38 +0000 Subject: [PATCH] * VERSION CHANGED TO 2.0.10 * gnoemoe/mcp/gm-cell-renderer-text.c: fixed font sizes for smaller fonts --- ChangeLog | 5 +++++ README | 8 ++++---- configure.ac | 2 +- gnoemoe/mcp/gm-cell-renderer-text.c | 8 +++++--- 4 files changed, 15 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index dd6e406..d024ce4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-23-04 Jesse van den Kieboom + * VERSION CHANGED TO 2.0.10 + * gnoemoe/mcp/gm-cell-renderer-text.c: fixed font sizes for smaller + fonts + 2006-23-04 Jesse van den Kieboom * VERSION CHANGED TO 2.0.9 * po/POTFILES.in: added gnoemoe/dialogs/gm-world-paste-dialog.c and diff --git a/README b/README index 548aa49..cf0c613 100644 --- a/README +++ b/README @@ -1,7 +1,7 @@ General Information =================== -This is version 2.0.8 of gnoemoe. gnoemoe is a Gnome MOO Client. +This is version 2.0.10 of gnoemoe. gnoemoe is a Gnome MOO Client. GnoeMoe is a full featured Gnome MOO (MUD Object Oriented) Client which aims at integrating in the Gnome desktop as nice as possible adhering the Gnome @@ -42,7 +42,7 @@ The official web site is: You can download the latest gnoemoe tarball from the web site: - http://www.icecrew.nl/software/gnoemoe/download/gnoemoe-2.0.8.tar.gz + http://www.icecrew.nl/software/gnoemoe/download/gnoemoe-2.0.10.tar.gz Installation ============ @@ -57,8 +57,8 @@ gnoemoe requires: Simple install procedure: - % gzip -cd gnoemoe-2.0.8.tar.gz | tar xvf - # unpack the sources - % cd gnoemoe-2.0.8 # change to the toplevel directory + % gzip -cd gnoemoe-2.0.10.tar.gz | tar xvf - # unpack the sources + % cd gnoemoe-2.0.10 # change to the toplevel directory % ./configure # run the `configure' script % make # build gedit [ Become root if necessary ] diff --git a/configure.ac b/configure.ac index ebffd31..bd7653a 100644 --- a/configure.ac +++ b/configure.ac @@ -1,7 +1,7 @@ dnl Process this file with autoconf to produce a configure script. AC_PREREQ(2.59) -AC_INIT(gnoemoe, 2.0.9, http://www.icecrew.nl/software/gnoemoe) +AC_INIT(gnoemoe, 2.0.10, http://www.icecrew.nl/software/gnoemoe) AC_CONFIG_SRCDIR(gnoemoe/gm-app.c) AC_CONFIG_MACRO_DIR([m4]) diff --git a/gnoemoe/mcp/gm-cell-renderer-text.c b/gnoemoe/mcp/gm-cell-renderer-text.c index 3312684..81a50c6 100644 --- a/gnoemoe/mcp/gm-cell-renderer-text.c +++ b/gnoemoe/mcp/gm-cell-renderer-text.c @@ -183,7 +183,8 @@ cell_renderer_text_update_text(GmCellRendererText *cell, GtkWidget *widget, GdkColor color; gchar *str; gboolean show_status = FALSE; - + gint font_size; + cell->priv->width = new_width; attr_color = NULL; @@ -204,11 +205,12 @@ cell_renderer_text_update_text(GmCellRendererText *cell, GtkWidget *widget, style = gtk_widget_get_style(widget); color = style->text_aa[GTK_STATE_NORMAL]; + font_size = pango_font_description_get_size(style->font_desc) / PANGO_SCALE; attr_list = pango_attr_list_new(); attr_size = pango_attr_size_new(pango_font_description_get_size( - style->font_desc) / 1.2); + style->font_desc) / (font_size >= 10 ? 1.2 : 1.0)); attr_size->start_index = 0; attr_size->end_index = strlen(cell->priv->name); pango_attr_list_insert(attr_list, attr_size); @@ -226,7 +228,7 @@ cell_renderer_text_update_text(GmCellRendererText *cell, GtkWidget *widget, } attr_size = pango_attr_size_new(pango_font_description_get_size( - style->font_desc) / 1.5); + style->font_desc) / (font_size >= 10 ? 1.5 : 1.2)); attr_size->start_index = attr_style->start_index; attr_size->end_index = -1; pango_attr_list_insert(attr_list, attr_size);