From 06e735a652a9aefc787c696b44bfcc666ed61ef2 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 13 Jul 2005 05:44:22 +0000 Subject: [PATCH] Add Copyright/License information. --- ChangeLog | 35 +++++++++++++++++++ ChangeLog.pre-2-10 | 35 +++++++++++++++++++ ChangeLog.pre-2-8 | 35 +++++++++++++++++++ gtk/gtktextbtree.h | 26 ++++++++++++++ gtk/gtktextchildprivate.h | 2 +- gtk/gtktextiterprivate.h | 26 ++++++++++++++ gtk/gtktextsegment.h | 26 ++++++++++++++ gtk/gtktexttag.h | 49 ++++++++++++++++++++++++++ gtk/gtktexttagprivate.h | 26 ++++++++++++++ gtk/gtktexttypes.c | 26 ++++++++++++++ gtk/gtktexttypes.h | 26 ++++++++++++++ gtk/gtktextutil.c | 1 - tests/simple.c | 19 +++++++++++ tests/testactions.c | 19 +++++++++++ tests/testcombo.c | 18 ++++++++++ tests/testcombochange.c | 20 +++++++++++ tests/testdnd.c | 20 +++++++++++ tests/testentrycompletion.c | 19 +++++++++++ tests/testfilechooser.c | 19 +++++++++++ tests/testicontheme.c | 20 +++++++++++ tests/testmenubars.c | 20 ++++++++--- tests/testmenus.c | 20 ++++++++--- tests/testmerge.c | 19 +++++++++++ tests/testmultidisplay.c | 20 +++++++++++ tests/testmultiscreen.c | 20 +++++++++++ tests/testsocket.c | 68 +++++++++++++++++++++++++++++++++++++ tests/testsocket_child.c | 20 +++++++++++ tests/testsocket_common.c | 20 +++++++++++ tests/testspinbutton.c | 19 +++++++++++ tests/testtext.c | 20 +++++++++++ tests/testtextbuffer.c | 21 ++++++++++-- tests/testtreecolumns.c | 20 +++++++++++ tests/testtreeedit.c | 20 +++++++++++ tests/testtreeflow.c | 20 +++++++++++ tests/testtreefocus.c | 20 +++++++++++ tests/testtreesort.c | 20 +++++++++++ tests/testtreeview.c | 20 +++++++++++ tests/testxinerama.c | 20 +++++++++++ tests/treestoretest.c | 19 +++++++++++ 39 files changed, 881 insertions(+), 12 deletions(-) diff --git a/ChangeLog b/ChangeLog index 739b8a99d..677891235 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,40 @@ 2005-07-13 Matthias Clasen + * tests/treestoretest.c: + * tests/testxinerama.c: + * tests/testtreeview.c: + * tests/testtreefocus.c: + * tests/testtreeflow.c: + * tests/testtreeedit.c: + * tests/testtreecolumns.c: + * tests/testtext.c: + * tests/testtextbuffer.c: + * tests/testspinbutton.c: + * tests/testsocket_common.c: + * tests/testsocket_child.c: + * tests/testsocket.c: + * tests/testmultiscreen.c: + * tests/testmultidisplay.c: + * tests/testmerge.c: + * tests/testmenus.c: + * tests/testmenubars.c: + * tests/testicontheme.c: + * tests/testfilechooser.c: + * tests/testentrycompletion.c: + * tests/testdnd.c: + * tests/testcombochange.c: + * tests/testactions.c: + * tests/testcombo.c: + * tests/simple.c: + * gtk/gtktextutil.c: + * gtk/gtktexttypes.h: + * gtk/gtktexttypes.c: + * gtk/gtktexttagprivate.h: + * gtk/gtktextsegment.h: + * gtk/gtktextiterprivate.h: + * gtk/gtktextchildprivate.h: + * gtk/gtktextbtree.h: Add Copyright/License information. + * gtk/gtkicontheme.c (gtk_icon_theme_get_default) (gtk_icon_theme_get_for_screen): Add a warning about unreffing icon themes. (#310163, Rodney Dawes) diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 739b8a99d..677891235 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,40 @@ 2005-07-13 Matthias Clasen + * tests/treestoretest.c: + * tests/testxinerama.c: + * tests/testtreeview.c: + * tests/testtreefocus.c: + * tests/testtreeflow.c: + * tests/testtreeedit.c: + * tests/testtreecolumns.c: + * tests/testtext.c: + * tests/testtextbuffer.c: + * tests/testspinbutton.c: + * tests/testsocket_common.c: + * tests/testsocket_child.c: + * tests/testsocket.c: + * tests/testmultiscreen.c: + * tests/testmultidisplay.c: + * tests/testmerge.c: + * tests/testmenus.c: + * tests/testmenubars.c: + * tests/testicontheme.c: + * tests/testfilechooser.c: + * tests/testentrycompletion.c: + * tests/testdnd.c: + * tests/testcombochange.c: + * tests/testactions.c: + * tests/testcombo.c: + * tests/simple.c: + * gtk/gtktextutil.c: + * gtk/gtktexttypes.h: + * gtk/gtktexttypes.c: + * gtk/gtktexttagprivate.h: + * gtk/gtktextsegment.h: + * gtk/gtktextiterprivate.h: + * gtk/gtktextchildprivate.h: + * gtk/gtktextbtree.h: Add Copyright/License information. + * gtk/gtkicontheme.c (gtk_icon_theme_get_default) (gtk_icon_theme_get_for_screen): Add a warning about unreffing icon themes. (#310163, Rodney Dawes) diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 739b8a99d..677891235 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,5 +1,40 @@ 2005-07-13 Matthias Clasen + * tests/treestoretest.c: + * tests/testxinerama.c: + * tests/testtreeview.c: + * tests/testtreefocus.c: + * tests/testtreeflow.c: + * tests/testtreeedit.c: + * tests/testtreecolumns.c: + * tests/testtext.c: + * tests/testtextbuffer.c: + * tests/testspinbutton.c: + * tests/testsocket_common.c: + * tests/testsocket_child.c: + * tests/testsocket.c: + * tests/testmultiscreen.c: + * tests/testmultidisplay.c: + * tests/testmerge.c: + * tests/testmenus.c: + * tests/testmenubars.c: + * tests/testicontheme.c: + * tests/testfilechooser.c: + * tests/testentrycompletion.c: + * tests/testdnd.c: + * tests/testcombochange.c: + * tests/testactions.c: + * tests/testcombo.c: + * tests/simple.c: + * gtk/gtktextutil.c: + * gtk/gtktexttypes.h: + * gtk/gtktexttypes.c: + * gtk/gtktexttagprivate.h: + * gtk/gtktextsegment.h: + * gtk/gtktextiterprivate.h: + * gtk/gtktextchildprivate.h: + * gtk/gtktextbtree.h: Add Copyright/License information. + * gtk/gtkicontheme.c (gtk_icon_theme_get_default) (gtk_icon_theme_get_for_screen): Add a warning about unreffing icon themes. (#310163, Rodney Dawes) diff --git a/gtk/gtktextbtree.h b/gtk/gtktextbtree.h index 9881dfd43..2b2d17cba 100644 --- a/gtk/gtktextbtree.h +++ b/gtk/gtktextbtree.h @@ -1,3 +1,29 @@ +/* GTK - The GIMP Toolkit + * gtktextbtree.h Copyright (C) 2000 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + #ifndef __GTK_TEXT_BTREE_H__ #define __GTK_TEXT_BTREE_H__ diff --git a/gtk/gtktextchildprivate.h b/gtk/gtktextchildprivate.h index 7ef2e0bee..0c9b19c14 100644 --- a/gtk/gtktextchildprivate.h +++ b/gtk/gtktextchildprivate.h @@ -1,4 +1,4 @@ -/* gtktextchild.c - child pixmaps and widgets +/* gtktextchildprivate.h - child pixmaps and widgets * * Copyright (c) 1994 The Regents of the University of California. * Copyright (c) 1994-1997 Sun Microsystems, Inc. diff --git a/gtk/gtktextiterprivate.h b/gtk/gtktextiterprivate.h index b5b8506bf..ff1893dfb 100644 --- a/gtk/gtktextiterprivate.h +++ b/gtk/gtktextiterprivate.h @@ -1,3 +1,29 @@ +/* GTK - The GIMP Toolkit + * gtktextiterprivate.h Copyright (C) 2000 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + #ifndef __GTK_TEXT_ITER_PRIVATE_H__ #define __GTK_TEXT_ITER_PRIVATE_H__ diff --git a/gtk/gtktextsegment.h b/gtk/gtktextsegment.h index 79bda9a23..def6e2585 100644 --- a/gtk/gtktextsegment.h +++ b/gtk/gtktextsegment.h @@ -1,3 +1,29 @@ +/* GTK - The GIMP Toolkit + * gtktextsegment.h Copyright (C) 2000 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + #ifndef __GTK_TEXT_SEGMENT_H__ #define __GTK_TEXT_SEGMENT_H__ diff --git a/gtk/gtktexttag.h b/gtk/gtktexttag.h index 720718840..d42764066 100644 --- a/gtk/gtktexttag.h +++ b/gtk/gtktexttag.h @@ -1,3 +1,52 @@ +/* gtktexttag.c - text tag object + * + * Copyright (c) 1992-1994 The Regents of the University of California. + * Copyright (c) 1994-1997 Sun Microsystems, Inc. + * Copyright (c) 2000 Red Hat, Inc. + * Tk -> Gtk port by Havoc Pennington + * + * This software is copyrighted by the Regents of the University of + * California, Sun Microsystems, Inc., and other parties. The + * following terms apply to all files associated with the software + * unless explicitly disclaimed in individual files. + * + * The authors hereby grant permission to use, copy, modify, + * distribute, and license this software and its documentation for any + * purpose, provided that existing copyright notices are retained in + * all copies and that this notice is included verbatim in any + * distributions. No written agreement, license, or royalty fee is + * required for any of the authorized uses. Modifications to this + * software may be copyrighted by their authors and need not follow + * the licensing terms described here, provided that the new terms are + * clearly indicated on the first page of each file where they apply. + * + * IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY + * PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL + * DAMAGES ARISING OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, + * OR ANY DERIVATIVES THEREOF, EVEN IF THE AUTHORS HAVE BEEN ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * + * THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES, + * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND + * NON-INFRINGEMENT. THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, + * AND THE AUTHORS AND DISTRIBUTORS HAVE NO OBLIGATION TO PROVIDE + * MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. + * + * GOVERNMENT USE: If you are acquiring this software on behalf of the + * U.S. government, the Government shall have only "Restricted Rights" + * in the software and related documentation as defined in the Federal + * Acquisition Regulations (FARs) in Clause 52.227.19 (c) (2). If you + * are acquiring the software on behalf of the Department of Defense, + * the software shall be classified as "Commercial Computer Software" + * and the Government shall have only "Restricted Rights" as defined + * in Clause 252.227-7013 (c) (1) of DFARs. Notwithstanding the + * foregoing, the authors grant the U.S. Government and others acting + * in its behalf permission to use and distribute the software in + * accordance with the terms specified in this license. + * + */ + #ifndef __GTK_TEXT_TAG_H__ #define __GTK_TEXT_TAG_H__ diff --git a/gtk/gtktexttagprivate.h b/gtk/gtktexttagprivate.h index 44fe22501..a7547005a 100644 --- a/gtk/gtktexttagprivate.h +++ b/gtk/gtktexttagprivate.h @@ -1,3 +1,29 @@ +/* GTK - The GIMP Toolkit + * gtktexttagprivate.h Copyright (C) 2000 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + #ifndef __GTK_TEXT_TAG_PRIVATE_H__ #define __GTK_TEXT_TAG_PRIVATE_H__ diff --git a/gtk/gtktexttypes.c b/gtk/gtktexttypes.c index 86a79c290..3a237bae1 100644 --- a/gtk/gtktexttypes.c +++ b/gtk/gtktexttypes.c @@ -1,3 +1,29 @@ +/* GTK - The GIMP Toolkit + * gtktexttypes.c Copyright (C) 2000 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + #include #include "gtktexttypes.h" #include "gtkalias.h" diff --git a/gtk/gtktexttypes.h b/gtk/gtktexttypes.h index 78434d7bb..635f6e0f5 100644 --- a/gtk/gtktexttypes.h +++ b/gtk/gtktexttypes.h @@ -1,3 +1,29 @@ +/* GTK - The GIMP Toolkit + * gtktexttypes.h Copyright (C) 2000 Red Hat, Inc. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +/* + * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS + * file for a list of people on the GTK+ Team. See the ChangeLog + * files for a list of changes. These files are distributed with + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + */ + #ifndef __GTK_TEXT_TYPES_H__ #define __GTK_TEXT_TYPES_H__ diff --git a/gtk/gtktextutil.c b/gtk/gtktextutil.c index e9f535c7c..945a561c7 100644 --- a/gtk/gtktextutil.c +++ b/gtk/gtktextutil.c @@ -1,4 +1,3 @@ -/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* GTK - The GIMP Toolkit * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald * diff --git a/tests/simple.c b/tests/simple.c index 46dfd15d5..5fd6822e3 100644 --- a/tests/simple.c +++ b/tests/simple.c @@ -1,3 +1,22 @@ +/* simple.c + * Copyright (C) 1997 Red Hat, Inc + * Author: Elliot Lee + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ #include #include diff --git a/tests/testactions.c b/tests/testactions.c index 3c9a50789..4f971c2fd 100644 --- a/tests/testactions.c +++ b/tests/testactions.c @@ -1,3 +1,22 @@ +/* testactions.c + * Copyright (C) 2003 Matthias Clasen + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + #undef GTK_DISABLE_DEPRECATED #include #include diff --git a/tests/testcombo.c b/tests/testcombo.c index b8b19218e..c2b839ea2 100644 --- a/tests/testcombo.c +++ b/tests/testcombo.c @@ -1,3 +1,21 @@ +/* testcombo.c + * Copyright (C) 2003 Kristian Rietveld + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ #include #include diff --git a/tests/testcombochange.c b/tests/testcombochange.c index a58efda26..b67b0f50f 100644 --- a/tests/testcombochange.c +++ b/tests/testcombochange.c @@ -1,3 +1,23 @@ +/* testcombochange.c + * Copyright (C) 2004 Red Hat, Inc. + * Author: Owen Taylor + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + #include #include #include diff --git a/tests/testdnd.c b/tests/testdnd.c index a3904ae9b..d2e9a5c48 100644 --- a/tests/testdnd.c +++ b/tests/testdnd.c @@ -1,3 +1,23 @@ +/* testdnd.c + * Copyright (C) 1998 Red Hat, Inc. + * Author: Owen Taylor + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + #include #include "gtk/gtk.h" diff --git a/tests/testentrycompletion.c b/tests/testentrycompletion.c index 18dbb32df..b806b016b 100644 --- a/tests/testentrycompletion.c +++ b/tests/testentrycompletion.c @@ -1,3 +1,22 @@ +/* testentrycompletion.c + * Copyright (C) 2004 Red Hat, Inc. + * Author: Matthias Clasen + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ #include #include diff --git a/tests/testfilechooser.c b/tests/testfilechooser.c index 41a54e9b2..49e218dfd 100644 --- a/tests/testfilechooser.c +++ b/tests/testfilechooser.c @@ -1,3 +1,22 @@ +/* testfilechooser.c + * Copyright (C) 2003 Red Hat, Inc. + * Author: Owen Taylor + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ #include #include diff --git a/tests/testicontheme.c b/tests/testicontheme.c index 6ac8d59f3..a5ded578d 100644 --- a/tests/testicontheme.c +++ b/tests/testicontheme.c @@ -1,3 +1,23 @@ +/* testicontheme.c + * Copyright (C) 2002, 2003 Red Hat, Inc. + * Authors: Alexander Larsson, Owen Taylor + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + #include #include #include diff --git a/tests/testmenubars.c b/tests/testmenubars.c index 741bf4685..27e26357f 100644 --- a/tests/testmenubars.c +++ b/tests/testmenubars.c @@ -1,9 +1,21 @@ -/* Menubars +/* testmenubars.c -- test different packing directions + * Copyright (C) 2005 Red Hat, Inc. + * Author: Matthias Clasen * - * This program tests different packing directions - * of menu bars. + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. * - * Written by Matthias Clasen + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. */ #include diff --git a/tests/testmenus.c b/tests/testmenus.c index f4c963872..81c196420 100644 --- a/tests/testmenus.c +++ b/tests/testmenus.c @@ -1,9 +1,21 @@ -/* Menus +/* testmenus.c -- dynamically add and remove items to a menu + * Copyright (C) 2002 Red Hat, Inc. + * Author: Owen Taylor * - * This program dynamically adds and removes items to a menu to test that - * scroll arrows operate correctly. + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. * - * Written by Owen Taylor + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. */ #undef GTK_DISABLE_DEPRECATED diff --git a/tests/testmerge.c b/tests/testmerge.c index 7a2654d73..6832f759d 100644 --- a/tests/testmerge.c +++ b/tests/testmerge.c @@ -1,3 +1,22 @@ +/* testmerge.c + * Copyright (C) 2003 James Henstridge + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + #include #include diff --git a/tests/testmultidisplay.c b/tests/testmultidisplay.c index 060202a5d..5c5006600 100644 --- a/tests/testmultidisplay.c +++ b/tests/testmultidisplay.c @@ -1,3 +1,23 @@ +/* testmultidisplay.c + * Copyright (C) 2001 Sun Microsystems Inc. + * Author: Erwann Chenede + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + #include #include #include diff --git a/tests/testmultiscreen.c b/tests/testmultiscreen.c index ba7170e17..1786545fb 100644 --- a/tests/testmultiscreen.c +++ b/tests/testmultiscreen.c @@ -1,3 +1,23 @@ +/* testmultidisplay.c + * Copyright (C) 2001 Sun Microsystems Inc. + * Author: Erwann Chenede + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + #include #include diff --git a/tests/testsocket.c b/tests/testsocket.c index 41e827673..468242952 100644 --- a/tests/testsocket.c +++ b/tests/testsocket.c @@ -1,3 +1,24 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 2 -*- */ +/* testsocket.c + * Copyright (C) 2001 Red Hat, Inc + * Author: Owen Taylor + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + #undef GTK_DISABLE_DEPRECATED #include @@ -269,6 +290,45 @@ add_local_passive_child (GtkWidget *window) gtk_socket_add_id (GTK_SOCKET (socket->socket), xid); } +static const char * +grab_string (int status) +{ + switch (status) { + case GDK_GRAB_SUCCESS: return "GrabSuccess"; + case GDK_GRAB_ALREADY_GRABBED: return "AlreadyGrabbed"; + case GDK_GRAB_INVALID_TIME: return "GrabInvalidTime"; + case GDK_GRAB_NOT_VIEWABLE: return "GrabNotViewable"; + case GDK_GRAB_FROZEN: return "GrabFrozen"; + default: + { + static char foo [255]; + sprintf (foo, "unknown status: %d", status); + return foo; + } + } +} + +static void +grab_window_toggled (GtkToggleButton *button, + GtkWidget *widget) +{ + + if (gtk_toggle_button_get_active (button)) + { + int status; + + status = gdk_keyboard_grab (widget->window, FALSE, GDK_CURRENT_TIME); + + if (status != GDK_GRAB_SUCCESS) + g_warning ("Could not grab keyboard! (%s)", grab_string (status)); + + } + else + { + gdk_keyboard_ungrab (GDK_CURRENT_TIME); + } +} + int main (int argc, char *argv[]) { @@ -276,6 +336,7 @@ main (int argc, char *argv[]) GtkWidget *hbox; GtkWidget *vbox; GtkWidget *entry; + GtkWidget *checkbutton; GtkAccelGroup *accel_group; GtkItemFactory *item_factory; @@ -334,6 +395,13 @@ main (int argc, char *argv[]) g_signal_connect_swapped (button, "clicked", G_CALLBACK (remove_child), vbox); + checkbutton = gtk_check_button_new_with_label ("Grab keyboard"); + gtk_box_pack_start (GTK_BOX (vbox), checkbutton, FALSE, FALSE, 0); + + g_signal_connect (checkbutton, "toggled", + G_CALLBACK (grab_window_toggled), + window); + hbox = gtk_hbox_new (FALSE, 0); gtk_box_pack_start (GTK_BOX(vbox), hbox, FALSE, FALSE, 0); diff --git a/tests/testsocket_child.c b/tests/testsocket_child.c index d0bbbb6bd..4fe354b79 100644 --- a/tests/testsocket_child.c +++ b/tests/testsocket_child.c @@ -1,3 +1,23 @@ +/* testsocket_child.c + * Copyright (C) 2001 Red Hat, Inc + * Author: Owen Taylor + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + #include #include #include diff --git a/tests/testsocket_common.c b/tests/testsocket_common.c index 1783a65a8..6d374de98 100644 --- a/tests/testsocket_common.c +++ b/tests/testsocket_common.c @@ -1,3 +1,23 @@ +/* testsocket_common.c + * Copyright (C) 2001 Red Hat, Inc + * Author: Owen Taylor + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + #undef GTK_DISABLE_DEPRECATED #include diff --git a/tests/testspinbutton.c b/tests/testspinbutton.c index 9027a973f..67af1970c 100644 --- a/tests/testspinbutton.c +++ b/tests/testspinbutton.c @@ -1,3 +1,22 @@ +/* testspinbutton.c + * Copyright (C) 2004 Morten Welinder + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + #include #include diff --git a/tests/testtext.c b/tests/testtext.c index 85d312c5b..05cf1f045 100644 --- a/tests/testtext.c +++ b/tests/testtext.c @@ -1,3 +1,23 @@ +/* testtext.c + * Copyright (C) 2000 Red Hat, Inc + * Author: Havoc Pennington + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + #include #include #include diff --git a/tests/testtextbuffer.c b/tests/testtextbuffer.c index 862285141..5da1cab0d 100644 --- a/tests/testtextbuffer.c +++ b/tests/testtextbuffer.c @@ -1,5 +1,22 @@ -/* Simplistic test suite */ - +/* testtextbuffer.c -- Simplistic test suite + * Copyright (C) 2000 Red Hat, Inc + * Author: Havoc Pennington + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ #include #include diff --git a/tests/testtreecolumns.c b/tests/testtreecolumns.c index fd0b99954..f7edc6122 100644 --- a/tests/testtreecolumns.c +++ b/tests/testtreecolumns.c @@ -1,3 +1,23 @@ +/* testtreecolumns.c + * Copyright (C) 2001 Red Hat, Inc + * Author: Jonathan Blandford + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + #include #include diff --git a/tests/testtreeedit.c b/tests/testtreeedit.c index a4fc8da10..3c7f21f06 100644 --- a/tests/testtreeedit.c +++ b/tests/testtreeedit.c @@ -1,3 +1,23 @@ +/* testtreeedit.c + * Copyright (C) 2001 Red Hat, Inc + * Author: Jonathan Blandford + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + #include #include diff --git a/tests/testtreeflow.c b/tests/testtreeflow.c index 979e1c8a8..1af0b6e72 100644 --- a/tests/testtreeflow.c +++ b/tests/testtreeflow.c @@ -1,3 +1,23 @@ +/* testtreeflow.c + * Copyright (C) 2001 Red Hat, Inc + * Author: Jonathan Blandford + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + #include #include diff --git a/tests/testtreefocus.c b/tests/testtreefocus.c index 123a88b37..924e4f75c 100644 --- a/tests/testtreefocus.c +++ b/tests/testtreefocus.c @@ -1,3 +1,23 @@ +/* testtreefocus.c + * Copyright (C) 2001 Red Hat, Inc + * Author: Jonathan Blandford + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + #include #include diff --git a/tests/testtreesort.c b/tests/testtreesort.c index 74b5c276e..622f678fb 100644 --- a/tests/testtreesort.c +++ b/tests/testtreesort.c @@ -1,3 +1,23 @@ +/* testtreesort.c + * Copyright (C) 2001 Red Hat, Inc + * Author: Jonathan Blandford + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + #include #include diff --git a/tests/testtreeview.c b/tests/testtreeview.c index df0ff2c14..d1fd5ef17 100644 --- a/tests/testtreeview.c +++ b/tests/testtreeview.c @@ -1,3 +1,23 @@ +/* testtreeview.c + * Copyright (C) 2001 Red Hat, Inc + * Author: Jonathan Blandford + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + #undef GTK_DISABLE_DEPRECATED #include #include diff --git a/tests/testxinerama.c b/tests/testxinerama.c index 5517d4e64..bd0fceaeb 100644 --- a/tests/testxinerama.c +++ b/tests/testxinerama.c @@ -1,3 +1,23 @@ +/* testmultidisplay.c + * Copyright (C) 2001 Sun Microsystems Inc. + * Author: Erwann Chenede + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + #include #include #include diff --git a/tests/treestoretest.c b/tests/treestoretest.c index f921560a5..7d5b5b1e4 100644 --- a/tests/treestoretest.c +++ b/tests/treestoretest.c @@ -1,3 +1,22 @@ +/* treestoretest.c + * Copyright (C) 2001 Red Hat, Inc + * Author: Jonathan Blandford + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ #include #include #include -- 2.43.2