[Gnucash-changes] r14139 - gnucash/branches/deprecated-cleanup/src - Simple cleanups.

David Hampton hampton at cvs.gnucash.org
Sat May 20 01:52:51 EDT 2006


Author: hampton
Date: 2006-05-20 01:52:51 -0400 (Sat, 20 May 2006)
New Revision: 14139
Trac: http://svn.gnucash.org/trac/changeset/14139

Modified:
   gnucash/branches/deprecated-cleanup/src/gnome/dialog-tax-info.c
   gnucash/branches/deprecated-cleanup/src/register/register-gnome/gnucash-color.c
Log:
Simple cleanups.

Modified: gnucash/branches/deprecated-cleanup/src/gnome/dialog-tax-info.c
===================================================================
--- gnucash/branches/deprecated-cleanup/src/gnome/dialog-tax-info.c	2006-05-20 03:41:18 UTC (rev 14138)
+++ gnucash/branches/deprecated-cleanup/src/gnome/dialog-tax-info.c	2006-05-20 05:52:51 UTC (rev 14139)
@@ -703,18 +703,6 @@
     gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(text), GTK_WRAP_WORD);
     ti_dialog->txf_help_text = text;
 
-    /* set text height */
-    {
-      GtkStyle *style = gtk_widget_get_style (text);
-      GdkFont *font = NULL;
-
-      if (style != NULL)
-        font = gdk_font_from_description (style->font_desc);
-
-      if (font)
-        gtk_widget_set_size_request (text, -1, (font->ascent + font->descent) * 5 + 6);
-    }
-
     tree_view = GTK_TREE_VIEW(glade_xml_get_widget(xml, "txf_category_view"));
     store =  gtk_list_store_new(2, G_TYPE_STRING, G_TYPE_STRING);
     gtk_tree_view_set_model(tree_view, GTK_TREE_MODEL(store));

Modified: gnucash/branches/deprecated-cleanup/src/register/register-gnome/gnucash-color.c
===================================================================
--- gnucash/branches/deprecated-cleanup/src/register/register-gnome/gnucash-color.c	2006-05-20 03:41:18 UTC (rev 14138)
+++ gnucash/branches/deprecated-cleanup/src/register/register-gnome/gnucash-color.c	2006-05-20 05:52:51 UTC (rev 14139)
@@ -152,11 +152,9 @@
 void
 gnucash_color_init (void)
 {
-        GdkColormap *colormap = gtk_widget_get_default_colormap ();
-
         /* Allocate the default colors */
-        gdk_color_white (colormap, &gn_white);
-        gdk_color_black (colormap, &gn_black);
+        gnucash_color_alloc_name ("white",  &gn_white);
+        gnucash_color_alloc_name ("black",  &gn_black);
 
         gnucash_color_alloc_name ("gray60", &gn_light_gray);
         gnucash_color_alloc_name ("gray40", &gn_dark_gray);



More information about the gnucash-changes mailing list