[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: CVS update: x_multiattrib.c



  User: pbernaud
  Date: 06/10/19 11:42:44

  Modified:    .        x_multiattrib.c
  Log:
   Fixed the appearance of ckeck boxes in multiattrib dialog when keyboard activated
  
  
  
  
  Revision  Changes    Path
  1.3       +33 -7     eda/geda/gaf/gschem/src/x_multiattrib.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: x_multiattrib.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/src/x_multiattrib.c,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- x_multiattrib.c	17 Oct 2006 17:32:21 -0000	1.2
  +++ x_multiattrib.c	19 Oct 2006 15:42:44 -0000	1.3
  @@ -594,6 +594,27 @@
     
   }
   
  +/*! \brief Requests an update of the display of a row.
  + *  \par Function Description
  + *  This is an helper function to update the display of a row when
  + *  data for this row have been modified in the model.
  + *
  + *  It emits the 'row_changed' signal on the pointed row.
  + *
  + *  \param [in] model A GtkTreeModel.
  + *  \param [in] iter  A valid GtkTreeIter pointing to the changed row.
  + */
  +static void
  +update_row_display (GtkTreeModel *model, GtkTreeIter *iter)
  +{
  +  GtkTreePath *path;
  +  
  +  path = gtk_tree_model_get_path (model, iter);
  +  gtk_tree_model_row_changed (model, path, iter);
  +  gtk_tree_path_free (path);
  +  
  +}
  +
   /*! \todo Finish function documentation
    *  \brief
    *  \par Function Description
  @@ -660,7 +681,6 @@
   {
     Multiattrib *multiattrib = (Multiattrib*)user_data;
     GtkTreeModel *model;
  -  GtkTreePath *path;
     GtkTreeIter iter;
     OBJECT *o_attrib;
     TOPLEVEL *toplevel;
  @@ -669,9 +689,7 @@
     model = gtk_tree_view_get_model (multiattrib->treeview);
     toplevel = multiattrib->toplevel;
   
  -  path = gtk_tree_path_new_from_string (arg1);
  -  
  -  if (!gtk_tree_model_get_iter (model, &iter, path)) {
  +  if (!gtk_tree_model_get_iter_from_string (model, &iter, arg1)) {
       return;
     }
   
  @@ -687,13 +705,12 @@
     o_text_change (toplevel, o_attrib,
                    newtext, o_attrib->visibility, o_attrib->show_name_value);
     
  -  /* signals the modification of the row */
  -  gtk_tree_model_row_changed (model, path, &iter);
  +  /* request an update of display for this row */
  +  update_row_display (model, &iter);
     
     g_free (name);
     g_free (value);
     g_free (newtext);
  -  gtk_tree_path_free (path);
     
   }
   
  @@ -734,6 +751,9 @@
     o_text_draw (toplevel, o_attrib);
     o_undo_savestate (toplevel, UNDO_ALL);
     
  +  /* request an update of display for this row */
  +  update_row_display (model, &iter);
  +  
   }
   
   /*! \todo Finish function documentation
  @@ -780,6 +800,9 @@
     o_text_draw (toplevel, o_attrib);
     o_undo_savestate (toplevel, UNDO_ALL);
     
  +  /* request an update of display for this row */
  +  update_row_display (model, &iter);
  +  
   }
   
   /*! \todo Finish function documentation
  @@ -826,6 +849,9 @@
     o_text_draw (toplevel, o_attrib);
     o_undo_savestate (toplevel, UNDO_ALL);
     
  +  /* request an update of display for this row */
  +  update_row_display (model, &iter);
  +
   }
   
   /*! \todo Finish function documentation
  
  
  


_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs