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

gEDA-cvs: CVS update: x_autonumber.c



  User: werner  
  Date: 06/11/28 14:10:14

  Modified:    .        Tag: autonumber x_autonumber.c
  Log:
  	* src/x_autonumber.c: visual improvements of the sortorder 
  
  	  combobox. Patch by Tomaz Solc, slightly changed.
  
  
  
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.7   +11 -8     eda/geda/gaf/gschem/src/Attic/x_autonumber.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: x_autonumber.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/src/Attic/x_autonumber.c,v
  retrieving revision 1.1.2.6
  retrieving revision 1.1.2.7
  diff -u -b -r1.1.2.6 -r1.1.2.7
  --- x_autonumber.c	26 Nov 2006 18:49:45 -0000	1.1.2.6
  +++ x_autonumber.c	28 Nov 2006 19:10:14 -0000	1.1.2.7
  @@ -879,7 +879,7 @@
   		    NULL};
     gint i;
   
  -  store = gtk_list_store_new(2, GDK_TYPE_PIXBUF, G_TYPE_STRING); 
  +  store = gtk_list_store_new(2, G_TYPE_STRING, GDK_TYPE_PIXBUF); 
   
     for (i=0; filenames[i] != NULL; i++) {
       path=g_strconcat(w_current->bitmap_directory, 
  @@ -888,22 +888,25 @@
       g_free(path);
       gtk_list_store_append(store, &iter);
       gtk_list_store_set(store, &iter, 
  -		       0, pixbuf,
  -		       1, names[i],
  +		       0, names[i],
  +		       1, pixbuf,
   		       -1);
     }
   
     gtk_combo_box_set_model(GTK_COMBO_BOX(sort_order), GTK_TREE_MODEL(store));
  -  renderer = gtk_cell_renderer_pixbuf_new();
  +  renderer = gtk_cell_renderer_text_new ();
  +
     gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (sort_order),
  -			      renderer, FALSE);
  +			      renderer, TRUE);
     gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (sort_order),
  -				  renderer, "pixbuf", 0, NULL);
  -  renderer = gtk_cell_renderer_text_new ();
  +				  renderer, "text", 0, NULL);
  +  renderer = gtk_cell_renderer_pixbuf_new();
  +  g_object_set(G_OBJECT(renderer), "xpad", 10, "ypad", 10, NULL);
  +
     gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (sort_order),
   			      renderer, FALSE);
     gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (sort_order),
  -				  renderer, "text", 1, NULL);
  +				  renderer, "pixbuf", 1, NULL);
   }
   
   /* ***** STATE STRUCT HANDLING (interface between GUI and backend code) **** */
  
  
  


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