~jozilla/uiml.net/uiml.net-tp

« back to all changes in this revision

Viewing changes to Uiml/Rendering/GTKsharp/GtkRenderer.cs

  • Committer: kluyten
  • Date: 2004-06-20 23:10:09 UTC
  • Revision ID: vcs-imports@canonical.com-20040620231009-b9b2875161f3b250
*** empty log message ***

Show diffs side-by-side

added added

removed removed

Lines of Context:
329
329
                {
330
330
                        if(part.Class == "Tree")
331
331
                        {
332
 
                                string title = (string)s.SearchProperty(part.Identifier, "title").Value;
333
 
                                if(title==null) 
 
332
                                Property p = s.SearchProperty(part.Identifier, "title");
 
333
                                string title;
 
334
                                if(p!=null)
 
335
                                        title = (string)p.Value;
 
336
                                else    
334
337
                                        title="";
335
338
                                ((Gtk.TreeView)uiObject).AppendColumn(title, new CellRendererText(), "text", 0);
336
339
                                
337
 
                        }else if(part.Class == "List")
 
340
                        }
 
341
                        else if(part.Class == "List")
338
342
                        {
339
 
                                string title = (string)s.SearchProperty(part.Identifier, "title").Value;
340
 
                                if(title==null) 
 
343
                                Property p = s.SearchProperty(part.Identifier, "title");
 
344
                                string title;
 
345
                                if(p!=null)
 
346
                                        title = (string)p.Value;
 
347
                                else    
341
348
                                        title="";
342
349
                                ((Gtk.TreeView)uiObject).AppendColumn(title, new CellRendererText(), "text", 0);
343
350
                                ((Gtk.TreeView)uiObject).HeadersVisible = true;