changeset 1002:0802d6122ec7

Changes to the test program to use new font style for GTK2+.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 08 May 2011 06:24:52 +0000
parents 4ef0e878fe06
children 08b7e8d7cbb3
files dwtest.c
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/dwtest.c	Sun May 08 06:18:41 2011 +0000
+++ b/dwtest.c	Sun May 08 06:24:52 2011 +0000
@@ -17,7 +17,7 @@
 #define FOLDER_ICON_NAME "mac/folder"
 #define FILE_ICON_NAME "mac/file"
 #elif GTK_MAJOR_VERSION > 1
-#define FIXEDFONT "monospace 10"
+#define FIXEDFONT "10.monospace"
 #define FOLDER_ICON_NAME "gtk/folder"
 #define FILE_ICON_NAME "gtk/file"
 #else
@@ -106,7 +106,7 @@
 
 int font_width = 8;
 int font_height=12;
-int rows=100,width1=6,cols=80;
+int rows=10,width1=6,cols=80;
 char *current_file = NULL;
 int timerid;
 int num_lines=0;
@@ -1348,7 +1348,6 @@
     dw_notebook_pack( notebook, notebookpage7, notebookbox7 );
     dw_notebook_page_set_text( notebook, notebookpage7, "html");
     
-#if 1
     rawhtml = dw_html_new(1001);
     dw_box_pack_start( notebookbox7, rawhtml, 0, 100, TRUE, FALSE, 0);
     dw_html_raw(rawhtml, "<html><body><center><h1>dwtest</h1></center></body></html>");
@@ -1361,7 +1360,6 @@
      * Instead a pure HTML based web page is displayed. MHES 5/4/2008
      */
     dw_html_url(html, "http://www.rexx.org");
-#endif
     
     notebookbox8 = dw_box_new( BOXVERT, 7 );
     notebookpage8 = dw_notebook_page_new( notebook, 1, FALSE );