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

gEDA-cvs: pcb.git: branch: master updated (35c8e14409571cc7bf1049d042ac743496b2b732)



The branch, master has been updated
       via  35c8e14409571cc7bf1049d042ac743496b2b732 (commit)
       via  eafc3dad694f955f1a885e7d1b19ef547c0df9ee (commit)
       via  0062d54c2fff54b676e457bbacd419a46d518f75 (commit)
      from  0c78d1c688e44fdb67d76594d386140586911dba (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
=========

 src/draw.c                     |   41 ----------------------------------------
 src/gpcb-menu.res              |    6 ++--
 src/hid/gtk/gui-dialog-print.c |    5 ++-
 src/pcb-menu.res               |    6 ++--
 4 files changed, 9 insertions(+), 49 deletions(-)


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

commit 35c8e14409571cc7bf1049d042ac743496b2b732
Author: Felix Ruoff <Felix@xxxxxxxxxxxxxxxxxx>
Commit: Ineiev <ineiev@xxxxxxxxxxxxxxxx>

    Add shortcuts 'New' and 'Save (As)'
    
    Adds shortcuts (accelerators) and mnemonics to for 'New', 'Save' and
    'Save As...' as suggested int the GNOME Human Interface Guidelines.
    
    Closes-bug: lp-710145

:100644 100644 593b737... dd1f27e... M	src/gpcb-menu.res
:100644 100644 5e3682c... e2fc4bb... M	src/pcb-menu.res

commit eafc3dad694f955f1a885e7d1b19ef547c0df9ee
Author: Felix Ruoff <Felix@xxxxxxxxxxxxxxxxxx>
Commit: Ineiev <ineiev@xxxxxxxxxxxxxxxx>

    Remove unused function
    
    DrawVText() used GDK;
    it shouldn't have been implemented this way in any case.
    
    Closes-bug: lp-717294

:100644 100644 36bf1b9... 6091ef3... M	src/draw.c

commit 0062d54c2fff54b676e457bbacd419a46d518f75
Author: Felix Ruoff <Felix@xxxxxxxxxxxxxxxxxx>
Commit: Ineiev <ineiev@xxxxxxxxxxxxxxxx>

    Fix warning at exporting png with GTK+ GUI
    
    An 'Gtk-CRITICAL'-Error was thrown on opening the png-exporter dialog because
    there is no default-string for the 'png-bloat' option.
    
    Closes-bug: lp-740526

:100644 100644 9ced77b... 4a2fb85... M	src/hid/gtk/gui-dialog-print.c

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

commit 35c8e14409571cc7bf1049d042ac743496b2b732
Author: Felix Ruoff <Felix@xxxxxxxxxxxxxxxxxx>
Commit: Ineiev <ineiev@xxxxxxxxxxxxxxxx>

    Add shortcuts 'New' and 'Save (As)'
    
    Adds shortcuts (accelerators) and mnemonics to for 'New', 'Save' and
    'Save As...' as suggested int the GNOME Human Interface Guidelines.
    
    Closes-bug: lp-710145

diff --git a/src/gpcb-menu.res b/src/gpcb-menu.res
index 593b737..dd1f27e 100644
--- a/src/gpcb-menu.res
+++ b/src/gpcb-menu.res
@@ -46,8 +46,8 @@ MainMenu =
 # File Menu
 #
   {"File"
-   {"Save layout" Save(Layout) tip="Saves current layout"}
-   {"Save layout as..." Save(LayoutAs) tip="Saves current layout into a new file"}
+   {"Save Layout" Save(Layout) tip="Saves current layout" m=S a={"Ctrl-S" "Ctrl<Key>s"}}
+   {"Save Layout As..." Save(LayoutAs) tip="Saves current layout into a new file" m=A a={"Shift Ctrl-S" "Shift Ctrl<Key>s"}}
    -
    {"Revert" Load(Revert,none) tip="Revert to the layout stored on disk"}
    -
@@ -68,7 +68,7 @@ MainMenu =
    {"Export layout..." Export()}
    {"Calibrate Printer..." PrintCalibrate()}
    -
-   {"Start new layout" New()}
+   {"Start New Layout" New() a={"Ctrl-N" "Ctrl<Key>n"}}
    -
    {"Preferences..." DoWindows(Preferences)}
    -
diff --git a/src/pcb-menu.res b/src/pcb-menu.res
index 5e3682c..e2fc4bb 100644
--- a/src/pcb-menu.res
+++ b/src/pcb-menu.res
@@ -29,8 +29,8 @@ MainMenu =
 {
   {File
    {"About..." About()}
-   {"Save layout" Save(Layout)}
-   {"Save layout as..." Save(LayoutAs)}
+   {"Save layout" Save(Layout) m=S a={"Ctrl-S" "Ctrl<Key>s"}}
+   {"Save layout as..." Save(LayoutAs) m=A a={"Shift Ctrl-S" "Shift Ctrl<Key>s"}}
 	{"Revert" Load(Revert,none)}
    {"Import Schematics" Import() }
    {"Load layout" Load(Layout)}
@@ -47,7 +47,7 @@ MainMenu =
    {" all elements" Save(AllConnections)}
    {" unused pins" Save(AllUnusedPins)}
    -
-   {"Start new layout" New()}
+   {"Start new layout" New() a={"Ctrl-N" "Ctrl<Key>n"}}
    -
    {"Quit Program" Quit() m=Q a={"Ctrl-Q" "Ctrl<Key>q"}}
   }

commit eafc3dad694f955f1a885e7d1b19ef547c0df9ee
Author: Felix Ruoff <Felix@xxxxxxxxxxxxxxxxxx>
Commit: Ineiev <ineiev@xxxxxxxxxxxxxxxx>

    Remove unused function
    
    DrawVText() used GDK;
    it shouldn't have been implemented this way in any case.
    
    Closes-bug: lp-717294

diff --git a/src/draw.c b/src/draw.c
index 36bf1b9..6091ef3 100644
--- a/src/draw.c
+++ b/src/draw.c
@@ -1151,47 +1151,6 @@ ClearOnlyPin (PinTypePtr Pin, bool mask)
     }
 }
 
-
-#if VERTICAL_TEXT
-/* vertical text handling provided by Martin Devera with fixes by harry eaton */
-
-/* draw vertical text; xywh is bounding, de is text's descend used for
-   positioning */
-static void
-DrawVText (int x, int y, int w, int h, char *str)
-{
-  GdkPixmap *pm;
-  GdkImage *im;
-  GdkGCValues values;
-  guint32 pixel;
-  int i, j;
-
-  if (!str || !*str)
-    return;
-
-  pm = gdk_pixmap_new (DrawingWindow, w, h, -1);
-
-  /* draw into pixmap */
-  gdk_draw_rectangle (pm, Output.bgGC, TRUE, 0, 0, w, h);
-
-  gui_draw_string_markup (DrawingWindow, Output.font_desc, Output.fgGC,
-			  0, 0, str);
-
-  im = gdk_drawable_get_image (pm, 0, 0, w, h);
-  gdk_gc_get_values (Output.fgGC, &values);
-
-  /* draw Transpose(im).  TODO: Pango should be doing vertical text soon */
-  for (i = 0; i < w; i++)
-    for (j = 0; j < h; j++)
-      {
-	pixel = gdk_image_get_pixel (im, i, j);
-	if (pixel == values.foreground.pixel)
-	  gdk_draw_point (DrawingWindow, Output.fgGC, x + j, y + w - i - 1);
-      }
-  g_object_unref (G_OBJECT (pm));
-}
-#endif
-
 /* ---------------------------------------------------------------------------
  * lowlevel drawing routine for pin and via names
  */

commit 0062d54c2fff54b676e457bbacd419a46d518f75
Author: Felix Ruoff <Felix@xxxxxxxxxxxxxxxxxx>
Commit: Ineiev <ineiev@xxxxxxxxxxxxxxxx>

    Fix warning at exporting png with GTK+ GUI
    
    An 'Gtk-CRITICAL'-Error was thrown on opening the png-exporter dialog because
    there is no default-string for the 'png-bloat' option.
    
    Closes-bug: lp-740526

diff --git a/src/hid/gtk/gui-dialog-print.c b/src/hid/gtk/gui-dialog-print.c
index 9ced77b..4a2fb85 100644
--- a/src/hid/gtk/gui-dialog-print.c
+++ b/src/hid/gtk/gui-dialog-print.c
@@ -188,8 +188,9 @@ ghid_attribute_dialog (HID_Attribute * attrs,
 
 	  entry = gtk_entry_new ();
 	  gtk_box_pack_start (GTK_BOX (hbox), entry, FALSE, FALSE, 0);
-	  gtk_entry_set_text (GTK_ENTRY (entry),
-			      attrs[j].default_val.str_value);
+	  if(attrs[j].default_val.str_value != NULL)
+	    gtk_entry_set_text (GTK_ENTRY (entry),
+				attrs[j].default_val.str_value);
 	  gtk_tooltips_set_tip (tips, entry, attrs[j].help_text, NULL);
 	  g_signal_connect (G_OBJECT (entry), "changed",
 			    G_CALLBACK (entry_changed_cb),




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