~dmxe/lifeograph/1.0

« back to all changes in this revision

Viewing changes to src/widget_textview.cpp

  • Committer: Ahmet Öztürk
  • Date: 2013-07-07 14:48:39 UTC
  • Revision ID: aoz_2@yahoo.com-20130707144839-v1cqvqiu8ia4ojff
real time scale images when text widget is resized

Show diffs side-by-side

added added

removed removed

Lines of Context:
337
337
TextbufferDiary::set_search_str( const Glib::ustring &str )
338
338
{
339
339
    EntryParser::set_search_str( str );
 
340
    place_cursor( begin() );
340
341
    reparse();
341
342
}
342
343
 
424
425
void
425
426
TextbufferDiary::reparse( void )
426
427
{
427
 
    place_cursor( begin() );
428
428
    m_flag_settextoperation = true;
429
429
    parse( begin(), end() );
430
430
    m_flag_settextoperation = false;
2284
2284
void
2285
2285
TextviewDiary::on_size_allocate( Gtk::Allocation &allocation )
2286
2286
{
 
2287
    Gtk::TextView::on_size_allocate( allocation );
2287
2288
    m_flag_size_allocated = true;
2288
2289
 
2289
2290
    if( m_buffer->update_thumbnail_width( allocation.get_width() ) )
2290
2291
    {
 
2292
        m_buffer->reparse();
 
2293
 
2291
2294
        if( m_flag_set_text_queued )
2292
2295
        {
2293
2296
            m_buffer->set_richtext( m_buffer->m_ptr2entry );
2294
2297
            m_flag_set_text_queued = false;
2295
2298
        }
2296
2299
    }
2297
 
 
2298
 
    Gtk::TextView::on_size_allocate( allocation );
2299
2300
}
2300
2301
 
2301
2302
//void