Diff of /trunk/src/html.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 163 by harbaum, Thu Nov 5 15:12:37 2009 UTC revision 226 by harbaum, Wed Dec 2 20:05:52 2009 UTC
# Line 424  GtkWidget *html_view(appdata_t *appdata, Line 424  GtkWidget *html_view(appdata_t *appdata,
424      gtk_text_view_set_editable(GTK_TEXT_VIEW(view), FALSE);      gtk_text_view_set_editable(GTK_TEXT_VIEW(view), FALSE);
425      gtk_text_view_set_cursor_visible(GTK_TEXT_VIEW(view), FALSE);      gtk_text_view_set_cursor_visible(GTK_TEXT_VIEW(view), FALSE);
426    
     // #if MAEMO_VERSION_MAJOR >= 5  
 #if 1  
427      /* make this look nicer in fremantle and not just black-on-white */      /* make this look nicer in fremantle and not just black-on-white */
   
 #if 0  
     /* this causes a black background */  
     gtk_widget_modify_base(view, GTK_STATE_NORMAL,  
            &GTK_WIDGET(appdata->window)->style->bg[GTK_STATE_NORMAL]);  
     /* and this causes white letters */  
     gtk_widget_modify_text(view, GTK_STATE_NORMAL,  
            &GTK_WIDGET(appdata->window)->style->text[GTK_STATE_NORMAL]);  
 #else  
428      /* just use the default style */      /* just use the default style */
429  #if 1  #ifdef USE_STACKABLE_WINDOW
430      gtk_widget_set_style(view, GTK_WIDGET(appdata->window)->style);      /* in fremantle this is really tricky and we need to inherit the */
431        /* style from the topmost window in the stack */
432        HildonWindowStack *stack = hildon_window_stack_get_default();
433        GList *list = hildon_window_stack_get_windows(stack);
434        gtk_widget_set_style(view, GTK_WIDGET(list->data)->style);
435        g_list_free(list);
436  #else  #else
437      GtkStyle *style = gtk_rc_get_style(GTK_WIDGET(appdata->window));      gtk_widget_set_style(view, GTK_WIDGET(appdata->window)->style);
     gtk_widget_set_style(view, style);  
 #endif  
 #endif  
   
438  #endif  #endif
439    
440  #ifndef NO_COPY_N_PASTE  #ifndef NO_COPY_N_PASTE

Legend:
Removed from v.163  
changed lines
  Added in v.226