source: trunk/dports/gnome/mlview/files/patch-fix-save-to-file-bz587553.diff @ 122254

Last change on this file since 122254 was 122254, checked in by devans@…, 6 years ago

mlview: apply upstream patches, update dependencies, configuration, depend on vte-gtk2-compat instead of vte, reconfigure using upstream autogen.sh to fix intltool configuration, increment revision to rebuild.

File size: 766 bytes
  • src/mlview-old-gvc.cc

    From 31c2d7910c68d51bcbf1dd0d71c36cc593e07785 Mon Sep 17 00:00:00 2001
    From: Dodji Seketeli <dodji@redhat.com>
    Date: Wed, 1 Jul 2009 21:16:07 +0200
    Subject: Fix crash when saving to a file (#587553)
    
    	* src/mlview-old-gvc.cc (OldGVC::on_view_name_changed):
    	Do not cast IView* into Gtk::Widget*. Rather use
    	IView::get_view_widget().
    
    diff --git a/src/mlview-old-gvc.cc b/src/mlview-old-gvc.cc
    index 0feb6e1..9e6ab0c 100644
    OldGVC::on_view_name_changed (IView* a_view) 
    292292
    293293        new_view_name = a_view->get_view_name () ;
    294294
    295         view_impl = (Gtk::Widget*) a_view ;
     295        view_impl = a_view->get_view_widget ();
    296296        THROW_IF_FAIL (view_impl) ;
    297297
    298298        view_container = view_impl->get_parent () ;
Note: See TracBrowser for help on using the repository browser.