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

gEDA-cvs: branch: master updated (1.3.0-20071229-22-gd367e94)



The branch, master has been updated
       via  d367e94f7d11ceb66c8ad95332052d2abf5ed09c (commit)
       via  3fb40e7713e33a034632386a1446e3d94b25e6a5 (commit)
      from  cf1ebffc8fc1634dc82cfd3a5e2748edadea4565 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


=========
 Summary
=========

 gschem/src/x_compselect.c |   45 +++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 43 insertions(+), 2 deletions(-)


=================
 Commit Messages
=================

commit d367e94f7d11ceb66c8ad95332052d2abf5ed09c
Author: Ales Hvezda <ahvezda@xxxxxxxx>
Date:   Fri Jan 4 13:33:15 2008 -0500

    Added consistent border width to the in-use scrolled window
    
    Without this border width, switching between the in-use and library tabs
    caused the scrolled windows to jump around.  Plus now the spacing is
    consistent between the two tabs.

:100644 100644 91852c8... 6052d1a... M	gschem/src/x_compselect.c

commit 3fb40e7713e33a034632386a1446e3d94b25e6a5
Author: Ales Hvezda <ahvezda@xxxxxxxx>
Date:   Fri Jan 4 13:30:26 2008 -0500

    Added refresh button to the in-use tab in the component selection dialog
    
    The refresh button refresh the in-use component list as well as the library
    component list.  Before this patch, the refresh button was only in the
    library tab and not accessible from the in-use tab.

:100644 100644 1ab795a... 91852c8... M	gschem/src/x_compselect.c

=========
 Changes
=========

commit d367e94f7d11ceb66c8ad95332052d2abf5ed09c
Author: Ales Hvezda <ahvezda@xxxxxxxx>
Date:   Fri Jan 4 13:33:15 2008 -0500

    Added consistent border width to the in-use scrolled window
    
    Without this border width, switching between the in-use and library tabs
    caused the scrolled windows to jump around.  Plus now the spacing is
    consistent between the two tabs.

diff --git a/gschem/src/x_compselect.c b/gschem/src/x_compselect.c
index 91852c8..6052d1a 100644
--- a/gschem/src/x_compselect.c
+++ b/gschem/src/x_compselect.c
@@ -848,6 +848,8 @@ create_lib_treeview (Compselect *compselect)
   
   scrolled_win = GTK_WIDGET (
     g_object_new (GTK_TYPE_SCROLLED_WINDOW,
+                  /* GtkContainer */
+                  "border-width", 5,
                   /* GtkScrolledWindow */
                   "hscrollbar-policy", GTK_POLICY_AUTOMATIC,
                   "vscrollbar-policy", GTK_POLICY_ALWAYS,

commit 3fb40e7713e33a034632386a1446e3d94b25e6a5
Author: Ales Hvezda <ahvezda@xxxxxxxx>
Date:   Fri Jan 4 13:30:26 2008 -0500

    Added refresh button to the in-use tab in the component selection dialog
    
    The refresh button refresh the in-use component list as well as the library
    component list.  Before this patch, the refresh button was only in the
    library tab and not accessible from the in-use tab.

diff --git a/gschem/src/x_compselect.c b/gschem/src/x_compselect.c
index 1ab795a..91852c8 100644
--- a/gschem/src/x_compselect.c
+++ b/gschem/src/x_compselect.c
@@ -719,7 +719,7 @@ compselect_callback_refresh_library (GtkButton *button, gpointer user_data)
 static GtkWidget*
 create_inuse_treeview (Compselect *compselect)
 {
-  GtkWidget *scrolled_win, *treeview;
+  GtkWidget *scrolled_win, *treeview, *vbox, *hbox, *button;
   GtkTreeModel *model;
   GtkTreeSelection *selection;
   GtkCellRenderer *renderer;
@@ -727,6 +727,14 @@ create_inuse_treeview (Compselect *compselect)
 
   model = create_inuse_tree_model (compselect);
 
+  vbox = GTK_WIDGET (g_object_new (GTK_TYPE_VBOX,
+                                   /* GtkContainer */
+                                   "border-width", 5,
+                                   /* GtkBox */
+                                   "homogeneous",  FALSE,
+                                   "spacing",      5,
+                                   NULL));
+
   /* Create a scrolled window to accomodate the treeview */
   scrolled_win = GTK_WIDGET (
     g_object_new (GTK_TYPE_SCROLLED_WINDOW,
@@ -776,7 +784,38 @@ create_inuse_treeview (Compselect *compselect)
   /* set the inuse treeview of compselect */
   compselect->inusetreeview = GTK_TREE_VIEW (treeview);
 
-  return scrolled_win;
+  /* add the scrolled window for directories to the vertical box */
+  gtk_box_pack_start (GTK_BOX (vbox), scrolled_win,
+                      TRUE, TRUE, 0);
+
+  /* -- refresh button area -- */
+  hbox = GTK_WIDGET (g_object_new (GTK_TYPE_HBOX,
+                                          /* GtkBox */
+                                          "homogeneous", FALSE,
+                                          "spacing",     3,
+                                          NULL));
+  /* create the refresh button */
+  button = GTK_WIDGET (g_object_new (GTK_TYPE_BUTTON,
+                                     /* GtkWidget */
+                                     "sensitive", TRUE,
+                                     /* GtkButton */
+                                     "relief",    GTK_RELIEF_NONE,
+                                     NULL));
+  gtk_container_add (GTK_CONTAINER (button),
+                     gtk_image_new_from_stock (GTK_STOCK_REFRESH,
+                                            GTK_ICON_SIZE_SMALL_TOOLBAR));
+  /* add the refresh button to the horizontal box at the end */
+  gtk_box_pack_end (GTK_BOX (hbox), button, FALSE, FALSE, 0);
+  g_signal_connect (button,
+                    "clicked",
+                    G_CALLBACK (compselect_callback_refresh_library),
+                    compselect);
+                                     
+  /* add the refresh button area to the vertical box */
+  gtk_box_pack_start (GTK_BOX (vbox), hbox,
+                      FALSE, FALSE, 0);
+
+  return vbox;
 }
 
 /*! \brief Creates the treeview for the "Library" view */




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