• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

作図ソフト dia の改良版


Commit MetaInfo

Revisione14a136b4bb63c05812fefdf75e31a2297341c9c (tree)
Time2007-03-11 22:38:18
AuthorLars Clausen <lclausen@src....>
CommiterLars Clausen

Log Message

Pre7: Crash bugs, image rendering, unit spinner fix.

svn path=/trunk/; revision=3632

Change Summary

Incremental Difference

--- a/ChangeLog
+++ b/ChangeLog
@@ -1,10 +1,38 @@
11 2007-03-11 Lars Clausen <lars@raeder.dk>
22
3+ * NEWS:
4+ * RELEASE-PROCESS:
5+ * config.h.win32:
6+ * doc/en/dia.xml:
7+ * doc/pl/dia.xml:
8+ * doc/eu/dia.xml:
9+ * configure.in: Pre7
10+
11+ * lib/prop_geomtypes.c (lengthprop_get_widget): Default to cm in
12+ display to be similar to other reals.
13+
14+ * lib/widgets.c (dia_unit_spinner_value_changed): Leave space
15+ before unit.
16+
17+ * Makefile.am (desktopdir): Put .desktop file in right dir. Fixes
18+ bug #415767.
19+
20+ * app/diagram.c (diagram_group_selected): Don't try to group no
21+ objects. Fixes bug #410483, though the overall problem of
22+ activateable insensitive menu items remains.
23+
24+ * lib/dia_image.c (dia_image_draw):
25+ * lib/dia_image.h:
26+ * lib/diagdkrenderer.c (draw_image): Give a GC to the image
27+ rendering function -- also change to using gdk_draw_pixbuf. Fixes
28+ bug #401774.
29+
330 * lib/focus.c (remove_focus_object): Make sure a removed object no
431 longer has the active focus. Fixes bug #414708.
532
633 * app/textedit.c (textedit_end_edit): Don't assert active_focus
734 when it might not be true (during destruction).
35+ (textedit_remove_focus): Free the old focus when done.
836
937 2007-03-07 Steffen Macke <sdteffen@gmail.com>
1038
--- a/Makefile.am
+++ b/Makefile.am
@@ -26,7 +26,7 @@ CLEANFILES = core-translation-report dia.keys dia.desktop
2626
2727 #--- Adapted from http://svn.xfce.org/svn/xfce/libexo/trunk/exo-helper/helpers/Makefile.am
2828
29-desktopdir = $(datadir)
29+desktopdir = $(datadir)/applications
3030 desktop_in_files = dia.desktop.in
3131 desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
3232
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,8 @@
1+dia-0.96-pre7: 11-Mar-2007
2+
3+ * Seventh prerelease for 0.96. Fixes two crash bugs and image redrawing
4+ issues, as well as a few minor issues.
5+
16 dia-0.96-pre6: 5-Mar-2007
27
38 * Sixth prerelease for 0.96. I18n fixes, debugging output removed, some
--- a/app/diagram.c
+++ b/app/diagram.c
@@ -1100,6 +1100,11 @@ void diagram_group_selected(Diagram *dia)
11001100 GList *orig_list;
11011101 Change *change;
11021102
1103+ if (g_list_length(dia->data->selected) < 1) {
1104+ message_error("Trying to group with no selected objects.");
1105+ return;
1106+ }
1107+
11031108 #if 0
11041109 /* the following is wrong as it screws up the selected list, see bug #153525
11051110 * I just don't get what was originally intented so please speak up if you know --hb
@@ -1132,13 +1137,13 @@ void diagram_group_selected(Diagram *dia)
11321137 group = group_create(group_list);
11331138 change = undo_group_objects(dia, group_list, group, orig_list);
11341139 (change->apply)(change, dia);
1135-
1140+
11361141 /* Select the created group */
11371142 diagram_select(dia, group);
11381143
11391144 diagram_modified(dia);
11401145 diagram_flush(dia);
1141-
1146+
11421147 undo_set_transactionpoint(dia->undo);
11431148 }
11441149
--- a/app/textedit.c
+++ b/app/textedit.c
@@ -170,6 +170,7 @@ textedit_remove_focus(DiaObject *obj, Diagram *diagram)
170170 /* TODO: make sure the focus is deactivated */
171171 textedit_end_edit(ddisplay_active(), old_focus);
172172 }
173+ g_free(old_focus);
173174 }
174175
175176 /** Call when the entire list of focusable texts gets reset. */
--- a/config.h.win32
+++ b/config.h.win32
@@ -18,7 +18,7 @@
1818 #undef LOCALEDIR /* needs to be calculated at runtime */
1919 /* NOT: #define LOCALEDIR "../lib/locale" */
2020
21-#define VERSION "0.96-pre6"
21+#define VERSION "0.96-pre7"
2222
2323 /*
2424 * We are linking libxml as DLL with either msvc or mingw, but this
--- a/configure.in
+++ b/configure.in
@@ -1,6 +1,6 @@
11 dnl Process this -*- autoconf -*- file with autoconf to produce a
22 dnl configure script.
3-AC_INIT(dia, 0.96-pre6, http://bugzilla.gnome.org/enter_bug.cgi?product=dia)
3+AC_INIT(dia, 0.96-pre7, http://bugzilla.gnome.org/enter_bug.cgi?product=dia)
44 AC_CONFIG_SRCDIR(app/diagram.c)
55 AM_INIT_AUTOMAKE(AC_PACKAGE_NAME,AC_PACKAGE_VERSION)
66
--- a/doc/en/dia.xml
+++ b/doc/en/dia.xml
@@ -8,7 +8,7 @@
88
99 [
1010
11- <!ENTITY VERSION "0.96-pre6">
11+ <!ENTITY VERSION "0.96-pre7">
1212
1313 <!ENTITY INTRODUCTION SYSTEM "intro.xml">
1414
--- a/doc/eu/dia.xml
+++ b/doc/eu/dia.xml
@@ -4,7 +4,7 @@
44
55 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "../../dtd/docbookx.dtd" [
66
7- <!ENTITY VERSION "0.96-pre6">
7+ <!ENTITY VERSION "0.96-pre7">
88
99 <!ENTITY INTRODUCTION SYSTEM "intro.xml">
1010
--- a/doc/pl/dia.xml
+++ b/doc/pl/dia.xml
@@ -1,7 +1,7 @@
11 <?xml version="1.0" encoding="iso-8859-1"?>
22
33 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "../../dtd/docbookx.dtd"[
4-<!ENTITY VERSION "0.96-pre6">
4+<!ENTITY VERSION "0.96-pre7">
55 <!ENTITY INTRODUCTION SYSTEM "intro.xml">
66 <!ENTITY QUICKSTART SYSTEM "usage-quickstart.xml">
77 <!ENTITY CANVAS SYSTEM "usage-canvas.xml">
--- a/lib/dia_image.c
+++ b/lib/dia_image.c
@@ -134,7 +134,7 @@ dia_image_release(DiaImage image)
134134 * @param height Height in pixels of rendering in window.
135135 */
136136 void
137-dia_image_draw(DiaImage image, GdkWindow *window,
137+dia_image_draw(DiaImage image, GdkWindow *window, GdkGC *gc,
138138 int x, int y, int width, int height)
139139 {
140140 GdkPixbuf *scaled;
@@ -164,10 +164,10 @@ dia_image_draw(DiaImage image, GdkWindow *window,
164164 }
165165
166166 /* Once we can render Alpha, we'll do it! */
167- gdk_pixbuf_render_to_drawable_alpha(scaled, window,
168- 0, 0, x, y, width, height,
169- GDK_PIXBUF_ALPHA_BILEVEL, 128,
170- GDK_RGB_DITHER_NORMAL, 0, 0);
167+ gdk_draw_pixbuf(window, gc, scaled,
168+ 0, 0, x, y, width, height,
169+ GDK_RGB_DITHER_NORMAL, 0, 0);
170+
171171 #ifndef SCALING_CACHE
172172 gdk_pixbuf_unref(scaled);
173173 #endif
--- a/lib/dia_image.h
+++ b/lib/dia_image.h
@@ -30,7 +30,7 @@ DiaImage dia_image_get_broken(void);
3030 DiaImage dia_image_load(gchar *filename);
3131 void dia_image_add_ref(DiaImage image);
3232 void dia_image_release(DiaImage image);
33-void dia_image_draw(DiaImage image, GdkWindow *window,
33+void dia_image_draw(DiaImage image, GdkWindow *window, GdkGC *gc,
3434 int x, int y, int width, int height);
3535
3636 int dia_image_width(DiaImage image);
--- a/lib/diagdkrenderer.c
+++ b/lib/diagdkrenderer.c
@@ -813,7 +813,7 @@ draw_image (DiaRenderer *object,
813813 dia_transform_coords(renderer->transform, point->x, point->y,
814814 &real_x, &real_y);
815815
816- dia_image_draw(image, renderer->pixmap, real_x, real_y,
816+ dia_image_draw(image, renderer->pixmap, renderer->gc, real_x, real_y,
817817 real_width, real_height);
818818 }
819819 }
--- a/lib/prop_geomtypes.c
+++ b/lib/prop_geomtypes.c
@@ -181,7 +181,7 @@ lengthprop_get_widget(LengthProperty *prop, PropDialog *dialog)
181181 G_MINFLOAT,
182182 G_MAXFLOAT,
183183 0.1, 1.0, 1.0));
184- GtkWidget *ret = dia_unit_spinner_new(adj, 2, DIA_UNIT_MILLIMETER);
184+ GtkWidget *ret = dia_unit_spinner_new(adj, 2, DIA_UNIT_CENTIMETER);
185185 /* gtk_spin_button_set_numeric(GTK_SPIN_BUTTON(ret),TRUE);*/
186186 prophandler_connect(&prop->common,GTK_OBJECT(adj),"value_changed");
187187
--- a/lib/widgets.c
+++ b/lib/widgets.c
@@ -1470,7 +1470,7 @@ dia_unit_spinner_value_changed(GtkAdjustment *adjustment,
14701470 char buf[256];
14711471 GtkSpinButton *sbutton = GTK_SPIN_BUTTON(spinner);
14721472
1473- g_snprintf(buf, sizeof(buf), "%0.*f%s", sbutton->digits, adjustment->value,
1473+ g_snprintf(buf, sizeof(buf), "%0.*f %s", sbutton->digits, adjustment->value,
14741474 units[spinner->unit_num].unit);
14751475 gtk_entry_set_text(GTK_ENTRY(spinner), buf);
14761476 }