svn path=/trunk/; revision=18842

svn path=/trunk/; revision=18842
This commit is contained in:
Hans Breuer 2007-09-17 19:53:54 +00:00
parent 14a77727a7
commit 7f1bc40a84
6 changed files with 57 additions and 37 deletions

View File

@ -1,3 +1,15 @@
2007-09-17 Hans Breuer <hans@breuer.org>
* gtk/makefile.msc.in : updated msvc build
* gtk/gtkbuilderparser.c : fixed gccism - stack allocated variable
size array
* gtk/gtkselection.c(547) : error C4033: 'gtk_target_list_find'
must return a value
* test/makefile.msc : added some more tests
* tests/autotestfilesystem.c : HAVE_UNISTD_H, _rmdir
2007-09-17 Amitakhya Phukan <amitakhya@svn.gnome.org> 2007-09-17 Amitakhya Phukan <amitakhya@svn.gnome.org>
* configure.in: Added as to ALL_LINGUAS. * configure.in: Added as to ALL_LINGUAS.

View File

@ -857,8 +857,10 @@ dpgettext (const char *domain,
size_t msgctxt_len = strlen (msgctxt) + 1; size_t msgctxt_len = strlen (msgctxt) + 1;
size_t msgid_len = strlen (msgid) + 1; size_t msgid_len = strlen (msgid) + 1;
const char *translation; const char *translation;
char msg_ctxt_id[msgctxt_len + msgid_len]; char* msg_ctxt_id;
msg_ctxt_id = g_alloca (msgctxt_len + msgid_len);
memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1); memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1);
msg_ctxt_id[msgctxt_len - 1] = '\004'; msg_ctxt_id[msgctxt_len - 1] = '\004';
memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len); memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len);

View File

@ -544,7 +544,7 @@ gtk_target_list_find (GtkTargetList *list,
{ {
GList *tmp_list; GList *tmp_list;
g_return_if_fail (list != NULL); g_return_val_if_fail (list != NULL, FALSE);
tmp_list = list->list; tmp_list = list->list;
while (tmp_list) while (tmp_list)

View File

@ -70,9 +70,14 @@ gtkbuiltincache.h: gtk-update-icon-cache.exe
gtk-update-icon-cache --force --ignore-theme-index \ gtk-update-icon-cache --force --ignore-theme-index \
--source builtin_icons stock-icons > gtkbuiltincache.h --source builtin_icons stock-icons > gtkbuiltincache.h
GENERATED = \
gtktypebuiltins.h gtktypebuiltins.c \
gtkmarshal.h gtkmarshal.c gtkmarshalers.h gtkmarshalers.c \
gtk.def gtkalias.h gtkaliasdef.c
all : \ all : \
..\config.h \ ..\config.h \
generated \ $(GENERATED) \
gtk-update-icon-cache.exe \ gtk-update-icon-cache.exe \
gtkbuiltincache.h \ gtkbuiltincache.h \
libgtk-win32-$(GTK_VER)-0.dll \ libgtk-win32-$(GTK_VER)-0.dll \
@ -98,6 +103,9 @@ gtk_OBJECTS = \
gtkbindings.obj \ gtkbindings.obj \
gtkbbox.obj \ gtkbbox.obj \
gtkbox.obj \ gtkbox.obj \
gtkbuildable.obj \
gtkbuilder.obj \
gtkbuilderparser.obj \
gtkbutton.obj \ gtkbutton.obj \
gtkcalendar.obj \ gtkcalendar.obj \
gtkcelleditable.obj \ gtkcelleditable.obj \
@ -322,35 +330,37 @@ gtk_public_h_sources = \
gtkaccelgroup.h \ gtkaccelgroup.h \
gtkaccellabel.h \ gtkaccellabel.h \
gtkaccelmap.h \ gtkaccelmap.h \
gtkaccessible.h \ gtkaccessible.h \
gtkaction.h \ gtkaction.h \
gtkactiongroup.h \ gtkactiongroup.h \
gtkadjustment.h \ gtkadjustment.h \
gtkalignment.h \ gtkalignment.h \
gtkarrow.h \ gtkarrow.h \
gtkaspectframe.h \ gtkaspectframe.h \
gtkassistant.h \ gtkassistant.h \
gtkbbox.h \ gtkbbox.h \
gtkbin.h \ gtkbin.h \
gtkbindings.h \ gtkbindings.h \
gtkbox.h \ gtkbox.h \
gtkbuilder.h \
gtkbuildable.h \
gtkbutton.h \ gtkbutton.h \
gtkcalendar.h \ gtkcalendar.h \
gtkcelleditable.h \ gtkcelleditable.h \
gtkcelllayout.h \ gtkcelllayout.h \
gtkcellrenderer.h \ gtkcellrenderer.h \
gtkcellrendereraccel.h \ gtkcellrendereraccel.h \
gtkcellrenderercombo.h \
gtkcellrendererpixbuf.h \ gtkcellrendererpixbuf.h \
gtkcellrendererprogress.h \ gtkcellrendererprogress.h \
gtkcellrendererspin.h \ gtkcellrendererspin.h \
gtkcellrenderertext.h \ gtkcellrenderertext.h \
gtkcellrenderertoggle.h \ gtkcellrenderertoggle.h \
gtkcellview.h \ gtkcellview.h \
gtkcheckbutton.h \ gtkcheckbutton.h \
gtkcheckmenuitem.h \ gtkcheckmenuitem.h \
gtkclipboard.h \ gtkclipboard.h \
gtkclist.h \ gtkclist.h \
gtkclipboard.h \
gtkcolorbutton.h \ gtkcolorbutton.h \
gtkcolorsel.h \ gtkcolorsel.h \
gtkcolorseldialog.h \ gtkcolorseldialog.h \
@ -360,17 +370,18 @@ gtk_public_h_sources = \
gtkcontainer.h \ gtkcontainer.h \
gtkctree.h \ gtkctree.h \
gtkcurve.h \ gtkcurve.h \
gtkdebug.h \ gtkdebug.h \
gtkdialog.h \ gtkdialog.h \
gtkdnd.h \ gtkdnd.h \
gtkdrawingarea.h \ gtkdrawingarea.h \
gtkeditable.h \ gtkeditable.h \
gtkentry.h \ gtkentry.h \
gtkentrycompletion.h \ gtkentrycompletion.h \
gtkenums.h \ gtkenums.h \
gtkeventbox.h \ gtkeventbox.h \
gtkexpander.h \ gtkexpander.h \
gtkfilechooser.h \ gtkfilechooser.h \
gtkfilechooserbutton.h \
gtkfilechooserdialog.h \ gtkfilechooserdialog.h \
gtkfilechooserwidget.h \ gtkfilechooserwidget.h \
gtkfilefilter.h \ gtkfilefilter.h \
@ -389,8 +400,6 @@ gtk_public_h_sources = \
gtkhscale.h \ gtkhscale.h \
gtkhscrollbar.h \ gtkhscrollbar.h \
gtkhseparator.h \ gtkhseparator.h \
gtkstatusicon.h \
gtkhsv.h \
gtkiconfactory.h \ gtkiconfactory.h \
gtkicontheme.h \ gtkicontheme.h \
gtkiconview.h \ gtkiconview.h \
@ -405,19 +414,20 @@ gtk_public_h_sources = \
gtkitem.h \ gtkitem.h \
gtkitemfactory.h \ gtkitemfactory.h \
gtklabel.h \ gtklabel.h \
gtklayout.h \ gtklayout.h \
gtklinkbutton.h \ gtklinkbutton.h \
gtklist.h \ gtklist.h \
gtklistitem.h \ gtklistitem.h \
gtkliststore.h \ gtkliststore.h \
gtkmain.h \ gtkmain.h \
gtkmarshal.h \
gtkmenu.h \ gtkmenu.h \
gtkmenubar.h \ gtkmenubar.h \
gtkmenuitem.h \ gtkmenuitem.h \
gtkmenushell.h \ gtkmenushell.h \
gtkmenutoolbutton.h \
gtkmessagedialog.h \ gtkmessagedialog.h \
gtkmisc.h \ gtkmisc.h \
gtkmodules.h \
gtknotebook.h \ gtknotebook.h \
gtkobject.h \ gtkobject.h \
gtkoldeditable.h \ gtkoldeditable.h \
@ -430,11 +440,11 @@ gtk_public_h_sources = \
gtkpreview.h \ gtkpreview.h \
gtkprintcontext.h \ gtkprintcontext.h \
gtkprintoperation.h \ gtkprintoperation.h \
gtkprintoperationpreview.h \
gtkprintsettings.h \ gtkprintsettings.h \
gtkprivate.h \ gtkprivate.h \
gtkprogress.h \ gtkprogress.h \
gtkprogressbar.h \ gtkprogressbar.h \
gtkquery.h \
gtkradioaction.h \ gtkradioaction.h \
gtkradiobutton.h \ gtkradiobutton.h \
gtkradiomenuitem.h \ gtkradiomenuitem.h \
@ -453,29 +463,27 @@ gtk_public_h_sources = \
gtkscalebutton.h \ gtkscalebutton.h \
gtkscrollbar.h \ gtkscrollbar.h \
gtkscrolledwindow.h \ gtkscrolledwindow.h \
gtksearchengine.h \
gtkselection.h \ gtkselection.h \
gtkseparator.h \ gtkseparator.h \
gtkseparatormenuitem.h \ gtkseparatormenuitem.h \
gtkseparatortoolitem.h \ gtkseparatortoolitem.h \
gtksettings.h \ gtksettings.h \
gtksignal.h \ gtksignal.h \
gtksizegroup.h \ gtksizegroup.h \
gtksignal.h \
gtksocket.h \ gtksocket.h \
gtkspinbutton.h \ gtkspinbutton.h \
gtkstatusbar.h \ gtkstatusbar.h \
gtkstatusicon.h \
gtkstock.h \ gtkstock.h \
gtkstyle.h \ gtkstyle.h \
gtktable.h \ gtktable.h \
gtktearoffmenuitem.h \ gtktearoffmenuitem.h \
gtktext.h \ gtktext.h \
gtktextbuffer.h \ gtktextbuffer.h \
gtktextbufferrichtext.h \ gtktextbufferrichtext.h \
gtktextchild.h \ gtktextchild.h \
gtktextdisplay.h \ gtktextdisplay.h \
gtktextiter.h \ gtktextiter.h \
gtktextlayout.h \
gtktextmark.h \ gtktextmark.h \
gtktexttag.h \ gtktexttag.h \
gtktexttagtable.h \ gtktexttagtable.h \
@ -487,6 +495,7 @@ gtk_public_h_sources = \
gtktoolbar.h \ gtktoolbar.h \
gtktoolbutton.h \ gtktoolbutton.h \
gtktoolitem.h \ gtktoolitem.h \
gtktooltip.h \
gtktooltips.h \ gtktooltips.h \
gtktree.h \ gtktree.h \
gtktreednd.h \ gtktreednd.h \
@ -500,7 +509,7 @@ gtk_public_h_sources = \
gtktreeview.h \ gtktreeview.h \
gtktreeviewcolumn.h \ gtktreeviewcolumn.h \
gtktypeutils.h \ gtktypeutils.h \
gtkuimanager.h \ gtkuimanager.h \
gtkvbbox.h \ gtkvbbox.h \
gtkvbox.h \ gtkvbox.h \
gtkviewport.h \ gtkviewport.h \
@ -522,17 +531,6 @@ gtk_extra_sources = \
..\config.h : ..\config.h.win32 ..\config.h : ..\config.h.win32
copy ..\config.h.win32 ..\config.h copy ..\config.h.win32 ..\config.h
GENERATED = \
gtktypebuiltins.h gtktypebuiltins.c \
gtkmarshal.h gtkmarshal.c gtkmarshalers.h gtkmarshalers.c \
gtk.def gtkalias.h gtkaliasdef.c
#
# Generated source files:
#
generated : $(GENERATED)
$(TOUCH) generated
gtk.def: gtk.symbols makefile.msc gtk.def: gtk.symbols makefile.msc
echo EXPORTS > gtk.def echo EXPORTS > gtk.def
cl /EP -DINCLUDE_VARIABLES -DG_OS_WIN32 -DALL_FILES \ cl /EP -DINCLUDE_VARIABLES -DG_OS_WIN32 -DALL_FILES \
@ -569,10 +567,10 @@ gtktypebuiltins.c: $(gtk_public_h_sources) makefile.msc
copy xgen-gtbc gtktypebuiltins.c copy xgen-gtbc gtktypebuiltins.c
# private marshalers # private marshalers
gtkmarshalers.h : gtkmarshalers.list gtkmarshalers.h : gtkmarshalers.list makefile.msc
$(GLIB)\gobject\glib-genmarshal --prefix=_gtk_marshal gtkmarshalers.list --header >>gtkmarshalers.h $(GLIB)\gobject\glib-genmarshal --prefix=_gtk_marshal gtkmarshalers.list --header >gtkmarshalers.h
gtkmarshalers.c : gtkmarshalers.list gtkmarshalers.c : gtkmarshalers.list makefile.msc
$(GLIB)\gobject\glib-genmarshal --prefix=_gtk_marshal gtkmarshalers.list --body >gtkmarshalers.c $(GLIB)\gobject\glib-genmarshal --prefix=_gtk_marshal gtkmarshalers.list --body >gtkmarshalers.c
# public, deprecated marshalers # public, deprecated marshalers

View File

@ -25,11 +25,18 @@
#include <config.h> #include <config.h>
#include <string.h> #include <string.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h> #include <unistd.h>
#endif
#include <glib/gprintf.h> #include <glib/gprintf.h>
#include <gtk/gtk.h> #include <gtk/gtk.h>
#include <gtk/gtkfilesystem.h> #include <gtk/gtkfilesystem.h>
#ifdef G_OS_WIN32
#include <direct.h>
#define rmdir(d) _rmdir(d)
#endif
#define CALLBACK_TIMEOUT_MS 3000 /* Period after which the callback must have been called */ #define CALLBACK_TIMEOUT_MS 3000 /* Period after which the callback must have been called */
#define CANCEL_TIMEOUT_MS 100 /* We'll sleep for this much time before cancelling */ #define CANCEL_TIMEOUT_MS 100 /* We'll sleep for this much time before cancelling */

View File

@ -40,13 +40,14 @@ all : \
# Test programs: # Test programs:
# #
TESTAPPS = \ TESTAPPS = \
autotestfilechooser floatingtest \ autotestfilechooser autotestfilesystem \
buildertest floatingtest \
testaccel testactions testassistant \ testaccel testactions testassistant \
testbbox \ testbbox \
testcairo testcalendar testcellrenderertext testcombo testcombochange \ testcairo testcalendar testcellrenderertext testcombo testcombochange \
testdnd \ testdnd \
testellipsise testentrycompletion \ testellipsise testentrycompletion \
testfilechooser testfilechooserbutton \ testfilechooser testfilechooserbutton testframe \
testgrouping testgtk \ testgrouping testgtk \
testicontheme testiconview testimage testinput \ testicontheme testiconview testimage testinput \
testmenus testmenubars testmerge testmultidisplay testmultiscreen \ testmenus testmenubars testmerge testmultidisplay testmultiscreen \