Wrote a script to check for files that forget to include <config.h> and

* check-config-h.pl: Wrote a script to check for files that forget
	to include <config.h> and optionally edit to add it.

        * src/nautilus-zoom-control.c (set_zoom_level): Fixed the bug
	number in a FIXME.

        * docs/style-guide.html: Added one more tip.

        * check-FIXME.pl: Use my newfound Perl knowledge to spruce it up.

        * components/help/converters/gnome-db2html2/gdb3html.c:
        * components/help/converters/gnome-db2html2/sect-elements.c:
        * components/help/converters/gnome-db2html2/sect-preparse.c:
        * components/help/converters/gnome-db2html2/toc-elements.c:
        * components/help/converters/gnome-info2html2/html.c:
        * components/help/converters/gnome-info2html2/main.c:
        * components/help/converters/gnome-info2html2/parse.c:
        * components/help/converters/gnome-info2html2/utils.c:
        * components/help/converters/gnome-man2html2/gnome-man2html.c:
        * components/help/hyperbola-filefmt.c:
        * components/help/hyperbola-nav-index.c:
        * components/help/hyperbola-nav-search.c:
        * components/help/hyperbola-nav-tree.c:
        * components/html/glibwww-callbacks.c:
        * components/html/glibwww-init.c:
        * components/html/glibwww-trans.c:
        * components/html/gnome-dialogs.c:
        * components/html/ntl-web-browser.c:
        * components/services/install/eazel-install-metadata.c:
        * components/services/install/eazel-install-protocols.c:
        * components/services/install/eazel-install-rpm-glue.c:
        * components/services/install/eazel-install-tests.c:
        * components/services/install/eazel-install-utils.c:
        * components/services/install/eazel-install-xml-package-list.c:
        * components/services/install/eazel-install.c:
        * components/services/install/helixcode-install-utils.c:
        * components/services/startup/eazel-register.c:
        * components/websearch/ntl-web-search.c:
        * helper-utilities/authenticate/nautilus-authenticate-fork.c:
        * helper-utilities/authenticate/nautilus-authenticate-pam.c:
        * helper-utilities/authenticate/nautilus-authenticate.c:
        * libnautilus-extensions/nautilus-bonobo-extensions.c:
        * libnautilus-extensions/nautilus-file-utilities.c:
        * libnautilus-extensions/nautilus-glib-extensions.c:
        * libnautilus-extensions/nautilus-link.c:
        * libnautilus-extensions/nautilus-mime-type.c:
        * libnautilus-extensions/nautilus-undo-transaction.c:
        * librsvg/art_rgba.c:
        * librsvg/art_rgba_svp.c:
        * librsvg/rsvg-bpath-util.c:
        * librsvg/rsvg-path.c:
        * librsvg/rsvg.c:
        * librsvg/test-rsvg.c:
        * nautilus-widgets/nautilus-caption-table.c:
        * nautilus-widgets/nautilus-password-dialog.c:
        * nautilus-widgets/nautilus-preferences-box.c:
        * nautilus-widgets/nautilus-preferences-dialog.c:
        * nautilus-widgets/nautilus-preferences-group.c:
        * nautilus-widgets/nautilus-preferences-item.c:
        * nautilus-widgets/nautilus-preferences-pane.c:
        * nautilus-widgets/nautilus-radio-button-group.c:
        * nautilus-widgets/test-nautilus-widgets.c:
        * nautilus-widgets/test-preferences.c:
        * src/file-manager/desktop-item.c:
        * src/file-manager/desktop-layout.c:
        * src/file-manager/desktop-menu.c:
        * src/nautilus-bookmarks-window.c:
        * src/nautilus-gconf.c:
	* src/nautilus-window-menus.c:
        * src/nautilus-window-toolbars.c:
	* src/nautilus-zoom-control.c
        * src/nautilus-zoomable-frame-svr.c:
        * src/ntl-app.c:
        * src/ntl-content-view.c:
        * src/ntl-main.c:
        * src/ntl-meta-view.c:
        * src/ntl-miniicon.c:
        * src/ntl-uri-map.c:
        * src/ntl-view-frame-svr.c:
        * src/ntl-view.c:
        * src/ntl-window-state.c:
	Added includes of <config.h>.
This commit is contained in:
Darin Adler 2000-05-02 00:50:32 +00:00
parent f115ffb697
commit 292a29b61f
111 changed files with 339 additions and 56 deletions

View file

@ -1,3 +1,88 @@
2000-05-01 Darin Adler <darin@eazel.com>
* check-config-h.pl: Wrote a script to check for files that forget
to include <config.h> and optionally edit to add it.
* src/nautilus-zoom-control.c (set_zoom_level): Fixed the bug
number in a FIXME.
* docs/style-guide.html: Added one more tip.
* check-FIXME.pl: Use my newfound Perl knowledge to spruce it up.
* components/help/converters/gnome-db2html2/gdb3html.c:
* components/help/converters/gnome-db2html2/sect-elements.c:
* components/help/converters/gnome-db2html2/sect-preparse.c:
* components/help/converters/gnome-db2html2/toc-elements.c:
* components/help/converters/gnome-info2html2/html.c:
* components/help/converters/gnome-info2html2/main.c:
* components/help/converters/gnome-info2html2/parse.c:
* components/help/converters/gnome-info2html2/utils.c:
* components/help/converters/gnome-man2html2/gnome-man2html.c:
* components/help/hyperbola-filefmt.c:
* components/help/hyperbola-nav-index.c:
* components/help/hyperbola-nav-search.c:
* components/help/hyperbola-nav-tree.c:
* components/html/glibwww-callbacks.c:
* components/html/glibwww-init.c:
* components/html/glibwww-trans.c:
* components/html/gnome-dialogs.c:
* components/html/ntl-web-browser.c:
* components/services/install/eazel-install-metadata.c:
* components/services/install/eazel-install-protocols.c:
* components/services/install/eazel-install-rpm-glue.c:
* components/services/install/eazel-install-tests.c:
* components/services/install/eazel-install-utils.c:
* components/services/install/eazel-install-xml-package-list.c:
* components/services/install/eazel-install.c:
* components/services/install/helixcode-install-utils.c:
* components/services/startup/eazel-register.c:
* components/websearch/ntl-web-search.c:
* helper-utilities/authenticate/nautilus-authenticate-fork.c:
* helper-utilities/authenticate/nautilus-authenticate-pam.c:
* helper-utilities/authenticate/nautilus-authenticate.c:
* libnautilus-extensions/nautilus-bonobo-extensions.c:
* libnautilus-extensions/nautilus-file-utilities.c:
* libnautilus-extensions/nautilus-glib-extensions.c:
* libnautilus-extensions/nautilus-link.c:
* libnautilus-extensions/nautilus-mime-type.c:
* libnautilus-extensions/nautilus-undo-transaction.c:
* librsvg/art_rgba.c:
* librsvg/art_rgba_svp.c:
* librsvg/rsvg-bpath-util.c:
* librsvg/rsvg-path.c:
* librsvg/rsvg.c:
* librsvg/test-rsvg.c:
* nautilus-widgets/nautilus-caption-table.c:
* nautilus-widgets/nautilus-password-dialog.c:
* nautilus-widgets/nautilus-preferences-box.c:
* nautilus-widgets/nautilus-preferences-dialog.c:
* nautilus-widgets/nautilus-preferences-group.c:
* nautilus-widgets/nautilus-preferences-item.c:
* nautilus-widgets/nautilus-preferences-pane.c:
* nautilus-widgets/nautilus-radio-button-group.c:
* nautilus-widgets/test-nautilus-widgets.c:
* nautilus-widgets/test-preferences.c:
* src/file-manager/desktop-item.c:
* src/file-manager/desktop-layout.c:
* src/file-manager/desktop-menu.c:
* src/nautilus-bookmarks-window.c:
* src/nautilus-gconf.c:
* src/nautilus-window-menus.c:
* src/nautilus-window-toolbars.c:
* src/nautilus-zoom-control.c
* src/nautilus-zoomable-frame-svr.c:
* src/ntl-app.c:
* src/ntl-content-view.c:
* src/ntl-main.c:
* src/ntl-meta-view.c:
* src/ntl-miniicon.c:
* src/ntl-uri-map.c:
* src/ntl-view-frame-svr.c:
* src/ntl-view.c:
* src/ntl-window-state.c:
Added includes of <config.h>.
2000-05-01 Gene Z. Ragan <gzr@eazel.com>
* libnautilus-extensions/nautilus-icon-text-item.c

View file

@ -33,20 +33,23 @@ use strict;
my %skip_files;
if (!@ARGV)
{
@ARGV = `find -name '*' -and ! \\( -name '*~' -or -name '#*' -or -name 'ChangeLog*' -or -name 'Entries' -or -name 'check-FIXME.pl' \\)`;
$skip_files{"./TODO"} = 1;
$skip_files{"./autogen.sh"} = 1;
$skip_files{"./aclocal.m4"} = 1;
$skip_files{"./config.sub"} = 1;
$skip_files{"./libtool"} = 1;
$skip_files{"./ltconfig"} = 1;
$skip_files{"./ltmain.sh"} = 1;
$skip_files{"./macros/gnome-fileutils.m4"} = 1;
$skip_files{"./macros/gnome-objc-checks.m4"} = 1;
$skip_files{"./macros/gnome-vfs.m4"} = 1;
$skip_files{"./src/file-manager/desktop-canvas.c"} = 1;
$skip_files{"./src/file-manager/desktop-layout.c"} = 1;
$skip_files{"./src/file-manager/desktop-window.c"} = 1;
@ARGV = `find -name '*' -and ! \\( -name '*~' -or -name '#*' -or -name 'ChangeLog*' -or -name 'Entries' \\)`;
%skip_files =
(
"./TODO" => 1,
"./aclocal.m4" => 1,
"./check-FIXME.pl" => 1,
"./config.sub" => 1,
"./libtool" => 1,
"./ltconfig" => 1,
"./ltmain.sh" => 1,
"./macros/gnome-fileutils.m4" => 1,
"./macros/gnome-objc-checks.m4" => 1,
"./macros/gnome-vfs.m4" => 1,
"./src/file-manager/desktop-canvas.c" => 1,
"./src/file-manager/desktop-layout.c" => 1,
"./src/file-manager/desktop-window.c" => 1,
);
}
# locate all of the target lines

91
check-config-h.pl Executable file
View file

@ -0,0 +1,91 @@
#!/usr/bin/perl -w
# -*- Mode: perl; indent-tabs-mode: nil -*-
#
# Nautilus
#
# Copyright (C) 2000 Eazel, Inc.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU 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
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this library; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
# Author: Darin Adler <darin@eazel.com>,
#
# check-config-h.pl: Search for .c files where someone forgot to
# put an include for <config.h> in.
use diagnostics;
use strict;
use Getopt::Long;
my $edit = 0;
&GetOptions("edit" => \$edit);
# default to all the files starting from the current directory
my %skip_files;
if (!@ARGV)
{
@ARGV = `find -name '*.c'`;
}
# locate all of the target lines
my @missing_files;
FILE: foreach my $file (@ARGV)
{
chomp $file;
next if $skip_files{$file};
open FILE, $file or die "can't open $file";
while (<FILE>)
{
next FILE if /generated by/;
next FILE if /^\s*\#\s*include\s*[<\"]config\.h[>\"]/;
}
close FILE;
push @missing_files, $file;
}
if (@missing_files)
{
print "\n", scalar(@missing_files), " C files don't have bug reports:\n\n";
if (!$edit)
{
print join("\n", @missing_files), "\n";
}
else
{
foreach my $file (@missing_files)
{
open OLD, $file or die "can't open $file";
open NEW, "> $file.new" or die "can't open $file.new";
while (<OLD>)
{
if (/^\s*\#\s*include\s/)
{
print NEW "$&<config.h>\n";
print NEW;
last;
}
print NEW;
}
print NEW <OLD>;
close NEW;
close OLD;
rename "$file.new", $file or die "can't rename $file";
print "edited $file\n";
}
}
}

View file

@ -1,3 +1,4 @@
#include <config.h>
#include "gdb3html.h"
#include "toc-elements.h"
#include "sect-elements.h"

View file

@ -1,3 +1,4 @@
#include <config.h>
#include "sect-elements.h"
#include "gnome.h"

View file

@ -1,4 +1,5 @@
#include <config.h>
#include "sect-elements.h"
#include "gnome.h"

View file

@ -1,4 +1,5 @@
#include <config.h>
#include "toc-elements.h"

View file

@ -1,5 +1,6 @@
/* handles all html operations */
#include <config.h>
#include <stdio.h>
#include <unistd.h>
#include <ctype.h>

View file

@ -1,5 +1,6 @@
/* little test main() to see how we're doing */
#include <config.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View file

@ -2,6 +2,7 @@
/* currently only finds nodes and contructs a tree */
/* partially motivated by source code of the 'info' program */
#include <config.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>

View file

@ -1,5 +1,6 @@
/* various utility functions */
#include <config.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>

View file

@ -122,6 +122,7 @@
*/
#include <config.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

View file

@ -1,3 +1,4 @@
#include <config.h>
#include <gnome.h>
#include <zlib.h>

View file

@ -1,3 +1,4 @@
#include <config.h>
#include <libnautilus/libnautilus.h>
#include <gnome.h>
#include "hyperbola-filefmt.h"

View file

@ -1,3 +1,4 @@
#include <config.h>
#include <libnautilus/libnautilus.h>
#include <gnome.h>
#include "hyperbola-filefmt.h"

View file

@ -1,3 +1,4 @@
#include <config.h>
#include <libnautilus/libnautilus.h>
#include "hyperbola-filefmt.h"
#include <gtk/gtk.h>

View file

@ -1,4 +1,5 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
#include <config.h>
#include "glibwww.h"
#include <HTEvent.h>
#include <HTTimer.h>

View file

@ -15,7 +15,7 @@
#undef _
#ifdef HAVE_CONFIG_H
#include "config.h"
#include <config.h>
#endif
#include <glib.h>
#include "glibwww.h"

View file

@ -8,7 +8,7 @@
#undef _
#ifdef HAVE_CONFIG_H
#include "config.h"
#include <config.h>
#endif
#include "glibwww.h"
#include <stdio.h>

View file

@ -10,7 +10,7 @@
#undef _
#ifdef HAVE_CONFIG_H
#include "config.h"
#include <config.h>
#endif
#include "glibwww.h"

View file

@ -1,3 +1,4 @@
#include <config.h>
#include <WWWCore.h>
#include <WWWStream.h>
#include <WWWTrans.h>

View file

@ -25,6 +25,7 @@
* file and install a services generated package-list.xml.
*/
#include <config.h>
#include "eazel-install-metadata.h"
static gboolean create_default_configuration_metafile (const char* target_file);

View file

@ -26,6 +26,7 @@
* file and install a services generated package-list.xml.
*/
#include <config.h>
#include "eazel-install-protocols.h"
gboolean

View file

@ -25,6 +25,7 @@
* file and install a services generated package-list.xml.
*/
#include <config.h>
#include "eazel-install-rpm-glue.h"
gboolean

View file

@ -25,6 +25,7 @@
* file and install a services generated package-list.xml.
*/
#include <config.h>
#include "eazel-install-tests.h"
InstallOptions*

View file

@ -26,4 +26,5 @@
* file and install a services generated package-list.xml.
*/
#include <config.h>
#include "eazel-install-utils.h"

View file

@ -27,6 +27,7 @@
* file and install a services generated package-list.xml.
*/
#include <config.h>
#include "eazel-install-xml-package-list.h"
static PackageData* parse_package (xmlNode* package);

View file

@ -28,6 +28,7 @@
* file and install a services generated package-list.xml.
*/
#include <config.h>
#include "eazel-install-types.h"
#include "eazel-install-protocols.h"
#include "eazel-install-rpm-glue.h"

View file

@ -25,6 +25,7 @@
/* Most of this code is taken directly from Joe Shaw's Helix Code install / Updater
* with a few very minor changes made by me. */
#include <config.h>
#include "helixcode-install-utils.h"
char*

View file

@ -24,6 +24,7 @@
*
*/
#include <config.h>
#include <gdk/gdk.h>
#include <stdio.h>
#include <fcntl.h>

View file

@ -23,8 +23,8 @@
*
*/
/* ntl-web-search.c: Rewrite KWebSearch using Gtk+ and Nautilus */
#include "config.h"
#include <config.h>
#include <libnautilus/libnautilus.h>
#include <gnome.h>
#include <liboaf/liboaf.h>

View file

@ -32,7 +32,8 @@ braces that open the block for an if statement on the same line as the
if statement (part of Linux kernel brace style).</p>
<p><b>We prefer to use words rather than acronyms or abbreviations.</b> This means that
we name classes with a prefix like Nautilus, not Ntl, for example.</p>
we name classes with a prefix like Nautilus, not Ntl, for example. And we use variables
named result rather than retval or rv.</p>
<p><b>We strive to have a minimum number of local variables.</b> This makes it
easier to move pieces of code around. For more on this, read

View file

@ -24,6 +24,7 @@
* command. Return the process id in *pid_out.
*/
#include <config.h>
#include "nautilus-authenticate.h"
#include <stdio.h>

View file

@ -23,6 +23,7 @@
/* nautilus-authenticate-pam.c - Use PAM to authenticate a user.
*/
#include <config.h>
#include "nautilus-authenticate.h"
#include <security/pam_appl.h>

View file

@ -24,6 +24,7 @@
* user and execute a priviledge command on their behalf.
*/
#include <config.h>
#include "nautilus-authenticate.h"
#include <nautilus-widgets/nautilus-password-dialog.h>

View file

@ -24,6 +24,7 @@
Author: John Sullivan <sullivan@eazel.com>
*/
#include <config.h>
#include "nautilus-bonobo-extensions.h"

View file

@ -22,6 +22,7 @@
Authors: Ramiro Estrugo <ramiro@eazel.com>
*/
#include <config.h>
#include "nautilus-caption-table.h"
#include <gtk/gtkentry.h>

View file

@ -22,6 +22,7 @@
Authors: John Sullivan <sullivan@eazel.com>
*/
#include <config.h>
#include "nautilus-file-utilities.h"
#include <libgnome/gnome-defs.h>

View file

@ -24,6 +24,7 @@
Authors: John Sullivan <sullivan@eazel.com>
*/
#include <config.h>
#include "nautilus-glib-extensions.h"
#include "nautilus-lib-self-check-functions.h"

View file

@ -22,6 +22,7 @@
Author: Andy Hertzfeld <andy@eazel.com>
*/
#include <config.h>
#include <stdlib.h>
#include <parser.h>

View file

@ -26,6 +26,7 @@
Author: Andy Hertzfeld <andy@eazel.com>
*/
#include <config.h>
#include <string.h>
#include <stdio.h>
#include "nautilus-glib-extensions.h"

View file

@ -19,6 +19,7 @@
* USA
*/
#include <config.h>
#include "ntl-miniicon.h"
#include <gdk/gdkprivate.h>

View file

@ -22,6 +22,7 @@
Authors: Ramiro Estrugo <ramiro@eazel.com>
*/
#include <config.h>
#include "nautilus-password-dialog.h"
#include "nautilus-caption-table.h"

View file

@ -23,6 +23,7 @@
*/
#include <config.h>
#include <nautilus-widgets/nautilus-preferences-box.h>
#include <libnautilus-extensions/nautilus-gtk-macros.h>

View file

@ -22,6 +22,7 @@
Authors: Ramiro Estrugo <ramiro@eazel.com>
*/
#include <config.h>
#include <nautilus-widgets/nautilus-preferences-dialog.h>
#include <libnautilus-extensions/nautilus-gtk-macros.h>

View file

@ -22,6 +22,7 @@
Authors: Ramiro Estrugo <ramiro@eazel.com>
*/
#include <config.h>
#include "nautilus-preferences-group.h"
#include <gnome.h>

View file

@ -22,6 +22,7 @@
Authors: Ramiro Estrugo <ramiro@eazel.com>
*/
#include <config.h>
#include "nautilus-preferences-item.h"
#include "nautilus-preferences.h"
#include <libnautilus-extensions/nautilus-gtk-macros.h>

View file

@ -23,6 +23,7 @@
*/
#include <config.h>
#include <nautilus-widgets/nautilus-preferences-pane.h>
#include <libnautilus-extensions/nautilus-gtk-macros.h>

View file

@ -22,6 +22,7 @@
Authors: Ramiro Estrugo <ramiro@eazel.com>
*/
#include <config.h>
#include <nautilus-widgets/nautilus-radio-button-group.h>
#include <gtk/gtkradiobutton.h>

View file

@ -22,6 +22,7 @@
* Boston, MA 02111-1307, USA.
*/
#include <config.h>
#include "nautilus-undo-transaction.h"
/* nautilus_undo_transaction_new */

View file

@ -1,4 +1,5 @@
#include <config.h>
#include <nautilus-widgets/nautilus-radio-button-group.h>
#include <nautilus-widgets/nautilus-caption-table.h>
#include <nautilus-widgets/nautilus-password-dialog.h>

View file

@ -1,4 +1,5 @@
#include <config.h>
#include <nautilus-widgets/nautilus-radio-button-group.h>
#include <nautilus-widgets/nautilus-preferences-group.h>
#include <nautilus-widgets/nautilus-preferences-item.h>

View file

@ -24,6 +24,7 @@
Author: John Sullivan <sullivan@eazel.com>
*/
#include <config.h>
#include "nautilus-bonobo-extensions.h"

View file

@ -22,6 +22,7 @@
Authors: Ramiro Estrugo <ramiro@eazel.com>
*/
#include <config.h>
#include "nautilus-caption-table.h"
#include <gtk/gtkentry.h>

View file

@ -22,6 +22,7 @@
Authors: John Sullivan <sullivan@eazel.com>
*/
#include <config.h>
#include "nautilus-file-utilities.h"
#include <libgnome/gnome-defs.h>

View file

@ -24,6 +24,7 @@
Authors: John Sullivan <sullivan@eazel.com>
*/
#include <config.h>
#include "nautilus-glib-extensions.h"
#include "nautilus-lib-self-check-functions.h"

View file

@ -22,6 +22,7 @@
Author: Andy Hertzfeld <andy@eazel.com>
*/
#include <config.h>
#include <stdlib.h>
#include <parser.h>

View file

@ -26,6 +26,7 @@
Author: Andy Hertzfeld <andy@eazel.com>
*/
#include <config.h>
#include <string.h>
#include <stdio.h>
#include "nautilus-glib-extensions.h"

View file

@ -19,6 +19,7 @@
* USA
*/
#include <config.h>
#include "ntl-miniicon.h"
#include <gdk/gdkprivate.h>

View file

@ -22,6 +22,7 @@
Authors: Ramiro Estrugo <ramiro@eazel.com>
*/
#include <config.h>
#include "nautilus-password-dialog.h"
#include "nautilus-caption-table.h"

View file

@ -23,6 +23,7 @@
*/
#include <config.h>
#include <nautilus-widgets/nautilus-preferences-box.h>
#include <libnautilus-extensions/nautilus-gtk-macros.h>

View file

@ -22,6 +22,7 @@
Authors: Ramiro Estrugo <ramiro@eazel.com>
*/
#include <config.h>
#include <nautilus-widgets/nautilus-preferences-dialog.h>
#include <libnautilus-extensions/nautilus-gtk-macros.h>

View file

@ -22,6 +22,7 @@
Authors: Ramiro Estrugo <ramiro@eazel.com>
*/
#include <config.h>
#include "nautilus-preferences-group.h"
#include <gnome.h>

View file

@ -22,6 +22,7 @@
Authors: Ramiro Estrugo <ramiro@eazel.com>
*/
#include <config.h>
#include "nautilus-preferences-item.h"
#include "nautilus-preferences.h"
#include <libnautilus-extensions/nautilus-gtk-macros.h>

View file

@ -23,6 +23,7 @@
*/
#include <config.h>
#include <nautilus-widgets/nautilus-preferences-pane.h>
#include <libnautilus-extensions/nautilus-gtk-macros.h>

View file

@ -22,6 +22,7 @@
Authors: Ramiro Estrugo <ramiro@eazel.com>
*/
#include <config.h>
#include <nautilus-widgets/nautilus-radio-button-group.h>
#include <gtk/gtkradiobutton.h>

View file

@ -22,6 +22,7 @@
* Boston, MA 02111-1307, USA.
*/
#include <config.h>
#include "nautilus-undo-transaction.h"
/* nautilus_undo_transaction_new */

View file

@ -1,4 +1,5 @@
#include <config.h>
#include <nautilus-widgets/nautilus-radio-button-group.h>
#include <nautilus-widgets/nautilus-caption-table.h>
#include <nautilus-widgets/nautilus-password-dialog.h>

View file

@ -1,4 +1,5 @@
#include <config.h>
#include <nautilus-widgets/nautilus-radio-button-group.h>
#include <nautilus-widgets/nautilus-preferences-group.h>
#include <nautilus-widgets/nautilus-preferences-item.h>

View file

@ -20,6 +20,7 @@
* 02111-1307, USA.
*/
#include <config.h>
#include <libart_lgpl/art_misc.h>
#include "art_rgba.h"

View file

@ -20,6 +20,7 @@
* 02111-1307, USA.
*/
#include <config.h>
#include <libart_lgpl/art_misc.h>
#include <libart_lgpl/art_svp.h>
#include <libart_lgpl/art_svp_render_aa.h>

View file

@ -21,6 +21,7 @@
Author: Raph Levien <raph@artofcode.com>
*/
#include <config.h>
#include <glib.h>
#include <math.h>
#include "rsvg-bpath-util.h"

View file

@ -24,6 +24,7 @@
/* This is adapted from svg-path in Gill. */
#include <config.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>

View file

@ -21,6 +21,7 @@
Author: Raph Levien <raph@artofcode.com>
*/
#include <config.h>
#include <stdio.h>
#include <string.h>
#include <math.h>

View file

@ -22,6 +22,7 @@
Author: Raph Levien <raph@artofcode.com>
*/
#include <config.h>
#include <stdio.h>
#include <stdlib.h>
#include <png.h>

View file

@ -22,6 +22,7 @@
Authors: Ramiro Estrugo <ramiro@eazel.com>
*/
#include <config.h>
#include "nautilus-caption-table.h"
#include <gtk/gtkentry.h>

View file

@ -22,6 +22,7 @@
Authors: Ramiro Estrugo <ramiro@eazel.com>
*/
#include <config.h>
#include "nautilus-password-dialog.h"
#include "nautilus-caption-table.h"

View file

@ -23,6 +23,7 @@
*/
#include <config.h>
#include <nautilus-widgets/nautilus-preferences-box.h>
#include <libnautilus-extensions/nautilus-gtk-macros.h>

View file

@ -22,6 +22,7 @@
Authors: Ramiro Estrugo <ramiro@eazel.com>
*/
#include <config.h>
#include <nautilus-widgets/nautilus-preferences-dialog.h>
#include <libnautilus-extensions/nautilus-gtk-macros.h>

View file

@ -22,6 +22,7 @@
Authors: Ramiro Estrugo <ramiro@eazel.com>
*/
#include <config.h>
#include "nautilus-preferences-group.h"
#include <gnome.h>

View file

@ -22,6 +22,7 @@
Authors: Ramiro Estrugo <ramiro@eazel.com>
*/
#include <config.h>
#include "nautilus-preferences-item.h"
#include "nautilus-preferences.h"
#include <libnautilus-extensions/nautilus-gtk-macros.h>

View file

@ -23,6 +23,7 @@
*/
#include <config.h>
#include <nautilus-widgets/nautilus-preferences-pane.h>
#include <libnautilus-extensions/nautilus-gtk-macros.h>

View file

@ -22,6 +22,7 @@
Authors: Ramiro Estrugo <ramiro@eazel.com>
*/
#include <config.h>
#include <nautilus-widgets/nautilus-radio-button-group.h>
#include <gtk/gtkradiobutton.h>

View file

@ -1,4 +1,5 @@
#include <config.h>
#include <nautilus-widgets/nautilus-radio-button-group.h>
#include <nautilus-widgets/nautilus-caption-table.h>
#include <nautilus-widgets/nautilus-password-dialog.h>

View file

@ -1,4 +1,5 @@
#include <config.h>
#include <nautilus-widgets/nautilus-radio-button-group.h>
#include <nautilus-widgets/nautilus-preferences-group.h>
#include <nautilus-widgets/nautilus-preferences-item.h>

View file

@ -20,6 +20,7 @@
* USA
*/
#include <config.h>
#include "desktop-item.h"
#include <gdk-pixbuf/gnome-canvas-pixbuf.h>

View file

@ -20,6 +20,7 @@
* USA
*/
#include <config.h>
#include "desktop-layout.h"
struct _DesktopLayoutItem {

View file

@ -20,6 +20,7 @@
* USA
*/
#include <config.h>
#include "desktop-menu.h"
#include <libgnomeui/gnome-popup-menu.h>

View file

@ -26,6 +26,7 @@
/* ntl-uri-map.c: Implementation of routines for mapping a location
change request to a set of views and actual URL to be loaded. */
#include <config.h>
#include "ntl-uri-map.h"
#include <libnautilus-extensions/nautilus-directory.h>

View file

@ -24,6 +24,7 @@
*
*/
#include <config.h>
#include "nautilus.h"
#include <libnautilus/libnautilus.h>
#include <bonobo.h>

View file

@ -22,6 +22,7 @@
Authors: John Sullivan <sullivan@eazel.com>
*/
#include <config.h>
#include "nautilus-bookmarks-window.h"
#include <libnautilus-extensions/nautilus-entry.h>
#include <libnautilus-extensions/nautilus-icon-factory.h>

View file

@ -22,6 +22,7 @@
Authors: Havoc Pennington <hp@redhat.com>
*/
#include <config.h>
#include "nautilus-gconf.h"
static GConfClient *global_client = NULL;

View file

@ -28,7 +28,7 @@
/* ntl-main.c: Implementation of the routines that drive program lifecycle and main window creation/destruction. */
#include "config.h"
#include <config.h>
#include "nautilus.h"
#include "nautilus-self-check-functions.h"
#include <libnautilus-extensions/nautilus-debug.h>

View file

@ -23,6 +23,8 @@
Author: John Sullivan <sullivan@eazel.com>
*/
#include <config.h>
#include "nautilus-bookmark-list.h"
#include "nautilus-bookmarks-window.h"
#include "nautilus-signaller.h"
@ -78,19 +80,19 @@ file_menu_new_window_callback (BonoboUIHandler *ui_handler,
gpointer user_data,
const char *path)
{
NautilusWindow *current_mainwin;
NautilusWindow *new_mainwin;
g_return_if_fail (NAUTILUS_IS_WINDOW (user_data));
current_mainwin = NAUTILUS_WINDOW (user_data);
new_mainwin = nautilus_app_create_window (NAUTILUS_APP (current_mainwin->app));
nautilus_window_goto_uri (new_mainwin,
nautilus_window_get_requested_uri (current_mainwin));
gtk_widget_show (GTK_WIDGET (new_mainwin));
NautilusWindow *current_mainwin;
NautilusWindow *new_mainwin;
g_return_if_fail (NAUTILUS_IS_WINDOW (user_data));
current_mainwin = NAUTILUS_WINDOW (user_data);
new_mainwin = nautilus_app_create_window (NAUTILUS_APP (current_mainwin->app));
nautilus_window_goto_uri (new_mainwin,
nautilus_window_get_requested_uri (current_mainwin));
gtk_widget_show (GTK_WIDGET (new_mainwin));
}
static void
@ -849,15 +851,15 @@ nautilus_window_initialize_menus (NautilusWindow *window)
* Some (hopefully all) will be overridden by implementations by the
* different content views.
*/
bonobo_ui_handler_menu_set_sensitivity(ui_handler,
NAUTILUS_MENU_PATH_SELECT_ALL_ITEM,
FALSE);
bonobo_ui_handler_menu_set_sensitivity (ui_handler,
NAUTILUS_MENU_PATH_SELECT_ALL_ITEM,
FALSE);
/* Set initial toggle state of Eazel theme menu item */
update_eazel_theme_menu_item (window);
/* Set inital state of undo menu */
update_undo_menu_item(window);
update_undo_menu_item (window);
/* Sign up to be notified of icon theme changes so Use Eazel Theme Icons
* menu item will show correct toggle state. */

View file

@ -26,6 +26,7 @@
/* ntl-view-frame-svr.c: CORBA server implementation of the object
representing a data view frame. */
#include <config.h>
#include "nautilus.h"
#include "ntl-view-private.h"

View file

@ -27,6 +27,7 @@
and its associated CORBA object for proxying requests into this
object. */
#include <config.h>
#include "ntl-view-private.h"
#include "nautilus.h"
#include <libnautilus-extensions/nautilus-gtk-extensions.h>

View file

@ -23,6 +23,8 @@
Author: John Sullivan <sullivan@eazel.com>
*/
#include <config.h>
#include "nautilus-bookmark-list.h"
#include "nautilus-bookmarks-window.h"
#include "nautilus-signaller.h"
@ -78,19 +80,19 @@ file_menu_new_window_callback (BonoboUIHandler *ui_handler,
gpointer user_data,
const char *path)
{
NautilusWindow *current_mainwin;
NautilusWindow *new_mainwin;
g_return_if_fail (NAUTILUS_IS_WINDOW (user_data));
current_mainwin = NAUTILUS_WINDOW (user_data);
new_mainwin = nautilus_app_create_window (NAUTILUS_APP (current_mainwin->app));
nautilus_window_goto_uri (new_mainwin,
nautilus_window_get_requested_uri (current_mainwin));
gtk_widget_show (GTK_WIDGET (new_mainwin));
NautilusWindow *current_mainwin;
NautilusWindow *new_mainwin;
g_return_if_fail (NAUTILUS_IS_WINDOW (user_data));
current_mainwin = NAUTILUS_WINDOW (user_data);
new_mainwin = nautilus_app_create_window (NAUTILUS_APP (current_mainwin->app));
nautilus_window_goto_uri (new_mainwin,
nautilus_window_get_requested_uri (current_mainwin));
gtk_widget_show (GTK_WIDGET (new_mainwin));
}
static void
@ -849,15 +851,15 @@ nautilus_window_initialize_menus (NautilusWindow *window)
* Some (hopefully all) will be overridden by implementations by the
* different content views.
*/
bonobo_ui_handler_menu_set_sensitivity(ui_handler,
NAUTILUS_MENU_PATH_SELECT_ALL_ITEM,
FALSE);
bonobo_ui_handler_menu_set_sensitivity (ui_handler,
NAUTILUS_MENU_PATH_SELECT_ALL_ITEM,
FALSE);
/* Set initial toggle state of Eazel theme menu item */
update_eazel_theme_menu_item (window);
/* Set inital state of undo menu */
update_undo_menu_item(window);
update_undo_menu_item (window);
/* Sign up to be notified of icon theme changes so Use Eazel Theme Icons
* menu item will show correct toggle state. */

View file

@ -24,6 +24,7 @@
*
*/
#include <config.h>
#include "nautilus.h"
#include <libnautilus-extensions/nautilus-file-utilities.h>
#include <libnautilus-extensions/nautilus-global-preferences.h>

View file

@ -23,6 +23,7 @@
Author: John Sullivan <sullivan@eazel.com>
*/
#include <config.h>
#include "ntl-window-private.h"
#include "ntl-app.h"

View file

@ -23,6 +23,7 @@
*
*/
#include <config.h>
#include <gdk/gdk.h>
#include <gtk/gtkeventbox.h>
#include <gtk/gtkwidget.h>
@ -260,7 +261,7 @@ set_zoom_level(NautilusZoomControl *zoom_control, gint new_level)
zoom_control->current_zoom = new_level;
zoom_control->zoom_factor = (double) nautilus_get_icon_size_for_zoom_level
(zoom_control->current_zoom) / NAUTILUS_ICON_SIZE_STANDARD;
/* FIXME bugzilla.eazel.com 671:
/* FIXME bugzilla.eazel.com 305:
* tell the content view about the zoom change here soon
*/
}

Some files were not shown because too many files have changed in this diff Show more