summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog17
-rw-r--r--libnautilus-private/nautilus-program-chooser.c11
-rw-r--r--src/Makefile.am2
-rw-r--r--src/file-manager/fm-desktop-icon-view.c28
-rw-r--r--src/file-manager/fm-icon-view.c2
-rw-r--r--src/nautilus-about.c471
-rw-r--r--src/nautilus-about.h62
7 files changed, 32 insertions, 561 deletions
diff --git a/ChangeLog b/ChangeLog
index 68bf9a33e..23d2cdd1f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,20 @@
+2002-02-27 Darin Adler <darin@bentspoon.com>
+
+ * libnautilus-private/nautilus-program-chooser.c:
+ Change file-types-capplet to gnome2-file-types-properties.
+
+ * src/file-manager/fm-desktop-icon-view.c:
+ (fm_desktop_icon_view_finalize), (fm_desktop_icon_view_class_init):
+ Use finalize instead of destroy.
+
+ * src/file-manager/fm-icon-view.c:
+ (fm_icon_view_update_icon_container_fonts): Get rid of unneeded
+ nautilus_icon_container_request_update_all call.
+
+ * src/Makefile.am:
+ * src/nautilus-about.c: Remove.
+ * src/nautilus-about.h: Remove.
+
2002-02-27 Gediminas Paulauskas <menesis@delfi.lt>
* libnautilus-private/nautilus-bookmarks.c: add missing include
diff --git a/libnautilus-private/nautilus-program-chooser.c b/libnautilus-private/nautilus-program-chooser.c
index db53ebac6..6728500eb 100644
--- a/libnautilus-private/nautilus-program-chooser.c
+++ b/libnautilus-private/nautilus-program-chooser.c
@@ -50,6 +50,7 @@
#include <gtk/gtktreeview.h>
#include <gtk/gtkvbox.h>
#include <libgnome/gnome-i18n.h>
+#include <libgnome/gnome-macros.h>
#include <libgnomeui/gnome-stock-icons.h>
#include <libgnomeui/gnome-uidefs.h>
@@ -112,7 +113,7 @@ struct NautilusProgramChooserDetails {
#define NAME_COLUMN_INITIAL_WIDTH 200
/* Program name of the mime type capplet */
-#define FILE_TYPES_CAPPLET_NAME "file-types-capplet"
+#define FILE_TYPES_CAPPLET_NAME "gnome2-file-types-properties"
/* This number controls a maximum character count for a file name that is
* displayed as part of a dialog (beyond this it will be truncated).
@@ -131,10 +132,8 @@ static gboolean program_file_pair_is_in_short_list_for_file (ProgramFilePair *
static GType program_file_pair_get_type (void);
-static void nautilus_program_chooser_class_init (NautilusProgramChooserClass *klass);
-static void nautilus_program_chooser_init (NautilusProgramChooser *program_chooser);
-
-EEL_CLASS_BOILERPLATE (NautilusProgramChooser, nautilus_program_chooser, GTK_TYPE_DIALOG);
+GNOME_CLASS_BOILERPLATE (NautilusProgramChooser, nautilus_program_chooser,
+ GtkDialog, GTK_TYPE_DIALOG);
static gboolean
program_file_pair_compute_status (ProgramFilePair *pair)
@@ -1273,7 +1272,7 @@ nautilus_program_chooser_class_init (NautilusProgramChooserClass *klass)
}
static void
-nautilus_program_chooser_init (NautilusProgramChooser *program_chooser)
+nautilus_program_chooser_instance_init (NautilusProgramChooser *program_chooser)
{
GtkWidget *dialog_vbox, *scrolled_window;
GtkWidget *framed_hbox;
diff --git a/src/Makefile.am b/src/Makefile.am
index bfde42441..1a90095dc 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -40,7 +40,6 @@ nautilus_shell_interface_idl_sources = \
nautilus_SOURCES = \
$(nautilus_shell_interface_idl_sources) \
- nautilus-about.c \
nautilus-applicable-views.c \
nautilus-application.c \
nautilus-bookmark-list.c \
@@ -75,7 +74,6 @@ nautilus_SOURCES = \
nautilus-window-toolbars.c \
nautilus-window.c \
nautilus-zoom-control.c \
- nautilus-about.h \
nautilus-applicable-views.h \
nautilus-application.h \
nautilus-bookmark-list.h \
diff --git a/src/file-manager/fm-desktop-icon-view.c b/src/file-manager/fm-desktop-icon-view.c
index 25189c61f..54b4c9b1e 100644
--- a/src/file-manager/fm-desktop-icon-view.c
+++ b/src/file-manager/fm-desktop-icon-view.c
@@ -219,7 +219,7 @@ desktop_icon_view_property_filter (GdkXEvent *gdk_xevent,
}
static void
-fm_desktop_icon_view_destroy (GtkObject *object)
+fm_desktop_icon_view_finalize (GObject *object)
{
FMDesktopIconView *icon_view;
@@ -249,8 +249,8 @@ fm_desktop_icon_view_destroy (GtkObject *object)
delete_all_mount_links ();
eel_preferences_remove_callback (NAUTILUS_PREFERENCES_HOME_URI,
- home_uri_changed,
- icon_view);
+ home_uri_changed,
+ icon_view);
/* Clean up details */
if (icon_view->details->ui != NULL) {
@@ -263,27 +263,19 @@ fm_desktop_icon_view_destroy (GtkObject *object)
g_free (icon_view->details);
- EEL_CALL_PARENT (GTK_OBJECT_CLASS, destroy, (object));
+ G_OBJECT_CLASS (parent_class)->finalize (object);
}
static void
-fm_desktop_icon_view_class_init (FMDesktopIconViewClass *klass)
+fm_desktop_icon_view_class_init (FMDesktopIconViewClass *class)
{
- GtkObjectClass *object_class;
- FMDirectoryViewClass *fm_directory_view_class;
- FMIconViewClass *fm_icon_view_class;
+ G_OBJECT_CLASS (class)->finalize = fm_desktop_icon_view_finalize;
- object_class = GTK_OBJECT_CLASS (klass);
- fm_directory_view_class = FM_DIRECTORY_VIEW_CLASS (klass);
- fm_icon_view_class = FM_ICON_VIEW_CLASS (klass);
+ FM_DIRECTORY_VIEW_CLASS (class)->merge_menus = real_merge_menus;
+ FM_DIRECTORY_VIEW_CLASS (class)->update_menus = real_update_menus;
+ FM_DIRECTORY_VIEW_CLASS (class)->supports_zooming = real_supports_zooming;
- object_class->destroy = fm_desktop_icon_view_destroy;
-
- fm_directory_view_class->merge_menus = real_merge_menus;
- fm_directory_view_class->update_menus = real_update_menus;
- fm_directory_view_class->supports_zooming = real_supports_zooming;
-
- fm_icon_view_class->supports_auto_layout = real_supports_auto_layout;
+ FM_ICON_VIEW_CLASS (class)->supports_auto_layout = real_supports_auto_layout;
}
static void
diff --git a/src/file-manager/fm-icon-view.c b/src/file-manager/fm-icon-view.c
index e87bb52bc..cbebc5311 100644
--- a/src/file-manager/fm-icon-view.c
+++ b/src/file-manager/fm-icon-view.c
@@ -2336,8 +2336,6 @@ fm_icon_view_update_icon_container_fonts (FMIconView *icon_view)
nautilus_icon_container_set_font_name (icon_container, font_name);
g_free (font_name);
-
- nautilus_icon_container_request_update_all (icon_container);
}
static int default_zoom_level_font_size = 12;
diff --git a/src/nautilus-about.c b/src/nautilus-about.c
deleted file mode 100644
index 05aa4fa1c..000000000
--- a/src/nautilus-about.c
+++ /dev/null
@@ -1,471 +0,0 @@
-/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
-
-/*
- * Nautilus
- *
- * Copyright (C) 2000 Eazel, Inc.
- *
- * Nautilus 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.
- *
- * Nautilus 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 program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- * Author: Andy Hertzfeld <andy@eazel.com>
- *
- * This is the implementation for the nautilus about dialog
- *
- */
-
-#include <config.h>
-#include "nautilus-about.h"
-
-#include <eel/eel-gdk-extensions.h>
-#include <eel/eel-gdk-pixbuf-extensions.h>
-#include <eel/eel-glib-extensions.h>
-#include <eel/eel-gtk-extensions.h>
-#include <eel/eel-string.h>
-#include <gdk-pixbuf/gdk-pixbuf.h>
-#include <gtk/gtkdrawingarea.h>
-#include <gtk/gtkframe.h>
-#include <gtk/gtkmain.h>
-#include <gtk/gtkmenu.h>
-#include <gtk/gtkmenuitem.h>
-#include <gtk/gtkstock.h>
-#include <libgnome/gnome-i18n.h>
-#include <libgnome/gnome-macros.h>
-#include <libgnome/gnome-util.h>
-#include <libnautilus-private/nautilus-file-utilities.h>
-#include <libnautilus-private/nautilus-global-preferences.h>
-#include <libnautilus-private/nautilus-icon-factory.h>
-#include <libnautilus-private/nautilus-theme.h>
-#include <math.h>
-#include <time.h>
-
-struct NautilusAboutDetails {
- GtkWidget *drawing_area;
- GdkPixbuf *background_pixbuf;
- int last_update_time;
- guint timer_task;
- char **authors;
- int *order_array;
-};
-
-static void nautilus_about_repaint (GtkWidget *drawing_area,
- GdkEventExpose *event,
- NautilusAbout *about);
-static void nautilus_about_draw_info (NautilusAbout *about,
- const char *title,
- const char *version,
- const char *copyright,
- const char **authors,
- const char *comments,
- const char *translators,
- const char *time_stamp);
-static int update_authors_if_necessary (gpointer callback_data);
-
-/* author box layout definitions */
-#define AUTHOR_TOP_POS 88
-#define AUTHOR_LEFT_POS 200
-#define AUTHOR_COLUMN_WIDTH 140
-#define AUTHOR_LINE_HEIGHT 15
-#define ITEMS_PER_COLUMN 11
-
-/* delay between randomizing, in seconds */
-#define UPDATE_TIME_INTERVAL 8
-
-GNOME_CLASS_BOILERPLATE (NautilusAbout,
- nautilus_about,
- GtkDialog,
- GTK_TYPE_DIALOG)
-
-static void
-nautilus_about_finalize (GObject *object)
-{
- NautilusAbout *about;
-
- about = NAUTILUS_ABOUT (object);
-
- if (about->details->background_pixbuf != NULL) {
- g_object_unref (about->details->background_pixbuf);
- }
-
- g_strfreev (about->details->authors);
- g_free (about->details->order_array);
-
- if (about->details->timer_task != 0) {
- gtk_timeout_remove (about->details->timer_task);
- }
-
- g_free (about->details);
-
- GNOME_CALL_PARENT (G_OBJECT_CLASS, finalize, (object));
-}
-
-
-/* initialize the about */
-static void
-nautilus_about_instance_init (NautilusAbout *about)
-{
- char *background_path;
- GtkWidget *frame;
- int area_width, area_height;
-
- about->details = g_new0 (NautilusAboutDetails, 1);
-
- background_path = nautilus_theme_get_image_path ("about_background.png");
- about->details->background_pixbuf = gdk_pixbuf_new_from_file (background_path, NULL);
- g_free (background_path);
-
- /* set the window title */
- gtk_window_set_title (GTK_WINDOW (about), _("About Nautilus"));
- gtk_window_set_wmclass (GTK_WINDOW (about), "about", "Nautilus");
-
- /* allocate a frame to hold the drawing area */
- frame = gtk_frame_new (NULL);
- gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN);
-
- gtk_container_add (GTK_CONTAINER (GTK_DIALOG(about)->vbox),
- GTK_WIDGET(frame));
- gtk_widget_show (frame);
-
- /* allocate the drawing area */
- about->details->drawing_area = gtk_drawing_area_new ();
-
- area_width = gdk_pixbuf_get_width (about->details->background_pixbuf);
- area_height = gdk_pixbuf_get_height (about->details->background_pixbuf);
-
- gtk_widget_set_size_request (GTK_WIDGET (about->details->drawing_area),
- area_width, area_height);
- gtk_widget_set_events (about->details->drawing_area, GDK_EXPOSURE_MASK);
-
- g_signal_connect (about->details->drawing_area, "expose_event",
- G_CALLBACK (nautilus_about_repaint), about);
-
- gtk_widget_show (about->details->drawing_area);
- gtk_container_add (GTK_CONTAINER (frame), about->details->drawing_area);
-
- /* set up the timer task */
- about->details->timer_task = gtk_timeout_add (2000, update_authors_if_necessary, about);
-
- /* configure the dialog */
- gtk_dialog_add_button (GTK_DIALOG (about),
- GTK_STOCK_OK, GTK_RESPONSE_OK);
-}
-
-/* allocate a new about dialog */
-GtkWidget *
-nautilus_about_new (const char *title,
- const char *version,
- const char *copyright,
- const char **authors,
- const char *comments,
- const char *translators,
- const char *time_stamp)
-{
- NautilusAbout *about;
-
- about = NAUTILUS_ABOUT (gtk_widget_new (nautilus_about_get_type (), NULL));
-
- /* draw the info onto the pixbuf, once and for all */
- nautilus_about_draw_info (about, title, version, copyright,
- authors, comments, translators, time_stamp);
-
- return GTK_WIDGET (about);
-}
-
-
-/* utility to simplify drawing */
-static void
-draw_pixbuf (GdkPixbuf *pixbuf, GdkDrawable *drawable, int x, int y)
-{
- gdk_pixbuf_render_to_drawable_alpha (pixbuf, drawable, 0, 0, x, y,
- gdk_pixbuf_get_width (pixbuf),
- gdk_pixbuf_get_height (pixbuf),
- GDK_PIXBUF_ALPHA_BILEVEL, 128, GDK_RGB_DITHER_MAX,
- 0, 0);
-}
-
-/* here's the routine that does all the real work, repainting the drawing area */
-static void
-nautilus_about_repaint (GtkWidget *widget,
- GdkEventExpose *event,
- NautilusAbout *about)
-{
- /* draw the background image */
- if (about->details->background_pixbuf != NULL) {
- draw_pixbuf (about->details->background_pixbuf,
- widget->window, 0, 0);
- }
-}
-
-/* utility routine to draw a string at a position */
-static void
-draw_aa_string (GtkWidget *widget,
- GdkPixbuf *pixbuf,
- PangoWeight weight,
- double scale_factor,
- int x_pos,
- int y_pos,
- guint32 color,
- guint32 shadow_color,
- const char *text,
- int shadow_offset)
-{
- PangoLayout *layout;
-
- layout = pango_layout_new (eel_gtk_widget_get_pango_ft2_context (widget));
- pango_layout_set_text (layout, text, -1);
-
- if (shadow_offset != 0) {
- eel_gdk_pixbuf_draw_layout (pixbuf, x_pos + shadow_offset, y_pos + shadow_offset,
- shadow_color, layout);
- }
-
- eel_gdk_pixbuf_draw_layout (pixbuf, x_pos, y_pos, color, layout);
-
- g_object_unref (layout);
-}
-
-/* randomize_authors randomizes the order array so different names get displayed in different positions each time */
-
-static void
-randomize_authors (NautilusAbout *about)
-{
- int author_count;
- int index, temp;
- int swap_element;
-
- /* count the authors */
- author_count = 0;
- while (about->details->authors[author_count] != NULL) {
- author_count += 1;
- }
-
- /* initialize the order array */
- g_free (about->details->order_array);
- about->details->order_array = g_new (int, author_count);
- for (index = 0; index < author_count; index++) {
- about->details->order_array[index] = index;
- }
-
- /* shuffle the order array */
- for (index = 0; index < author_count - 1; index++) {
- swap_element = rand() % (author_count - index);
- temp = about->details->order_array[index];
- about->details->order_array[index] = about->details->order_array[swap_element];
- about->details->order_array[swap_element] = temp;
- }
-}
-
-/* draw the author list */
-static void
-draw_author_list (NautilusAbout *about,
- GdkPixbuf *pixbuf)
-{
- int index, column_count;
- int xpos, ypos;
-
- /* draw the authors */
- index = 0;
- column_count = 0;
-
- xpos = AUTHOR_LEFT_POS; ypos = AUTHOR_TOP_POS;
- while (about->details->authors[about->details->order_array[index]] != NULL) {
- draw_aa_string (GTK_WIDGET (about), pixbuf,
- PANGO_WEIGHT_NORMAL, PANGO_SCALE_MEDIUM, xpos, ypos,
- EEL_RGB_COLOR_BLACK, EEL_RGB_COLOR_BLACK,
- about->details->authors[about->details->order_array[index]],
- 0);
- ypos += AUTHOR_LINE_HEIGHT;
- index++;
- column_count++;
- if (column_count >= ITEMS_PER_COLUMN) {
- /* two columns only and then stop drawing */
- if (xpos != AUTHOR_LEFT_POS)
- break;
-
- column_count = 0;
- ypos = AUTHOR_TOP_POS;
- xpos += AUTHOR_COLUMN_WIDTH;
- }
- }
-}
-
-/* draw the information onto the pixbuf */
-static void
-nautilus_about_draw_info (NautilusAbout *about,
- const char *title,
- const char *version,
- const char *copyright,
- const char **authors,
- const char *comments,
- const char *translators,
- const char *time_stamp)
-{
- char *display_str, *temp_str;
- char **comment_array;
- GdkPixbuf *pixbuf;
- uint black, white, grey;
- int xpos, ypos, total_height;
- int index;
-
- pixbuf = about->details->background_pixbuf;
- total_height = gdk_pixbuf_get_height (pixbuf);
-
- black = EEL_RGBA_COLOR_PACK (0, 0, 0, 255);
- white = EEL_RGBA_COLOR_PACK (255, 255, 255, 255);
- grey = EEL_RGBA_COLOR_PACK (153, 153, 153, 255);
-
- /* draw the name and version */
- display_str = g_strdup_printf ("%s %s", title, version);
- draw_aa_string (GTK_WIDGET (about), pixbuf, PANGO_WEIGHT_BOLD, PANGO_SCALE_X_LARGE, 12, 5, white, black, display_str, 1);
- g_free (display_str);
-
- /* draw the copyright notice */
- draw_aa_string (GTK_WIDGET (about), pixbuf, PANGO_WEIGHT_BOLD, PANGO_SCALE_MEDIUM, 12, 40, black, black, copyright, 0);
-
- /* draw the authors title */
- draw_aa_string (GTK_WIDGET (about), pixbuf, PANGO_WEIGHT_BOLD, PANGO_SCALE_LARGE, 184, 64, black, black, _("Authors"), 0);
-
- /* draw the time stamp */
- draw_aa_string (GTK_WIDGET (about), pixbuf, PANGO_WEIGHT_NORMAL, PANGO_SCALE_MEDIUM, 284, total_height - 14, grey, black, time_stamp, 0);
-
- /* draw the translator's credit, if necessary */
- if (eel_strcmp (translators, "Translator Credits") != 0) {
- comment_array = g_strsplit (translators, "\n", 10);
- index = 0;
- while (comment_array[index] != NULL) {
- index += 1;
- }
-
- xpos = 6;
- ypos = total_height - (14 * index);
-
- index = 0;
- while (comment_array[index] != NULL) {
- draw_aa_string (GTK_WIDGET (about), pixbuf, PANGO_WEIGHT_NORMAL, PANGO_SCALE_MEDIUM, xpos, ypos, black, black, comment_array[index], 0);
- ypos += 14;
- index++;
- }
- g_strfreev (comment_array);
- }
-
- /* remember the authors */
- g_strfreev (about->details->authors);
-
- temp_str = g_strjoinv ("\n", (char**) authors);
- about->details->authors = g_strsplit (temp_str, "\n", -1);
- g_free (temp_str);
-
- randomize_authors (about);
- draw_author_list (about, pixbuf);
- about->details->last_update_time = time (NULL);
-
- /* draw the comment, breaking it up into multiple lines */
- comment_array = g_strsplit (comments, "\n", 10);
- index = 0;
- xpos = 6; ypos = 118;
- while (comment_array[index] != NULL) {
- draw_aa_string (GTK_WIDGET (about), pixbuf, PANGO_WEIGHT_NORMAL, PANGO_SCALE_LARGE, xpos, ypos, black, black, comment_array[index], 0);
- ypos += 18;
- index++;
- }
- g_strfreev (comment_array);
-}
-
-/* update authors is called to randomize the author array and redraw it */
-
-void
-nautilus_about_update_authors (NautilusAbout *about)
-{
- ArtIRect author_area;
-
- /* clear the author area */
- author_area = eel_art_irect_assign (AUTHOR_LEFT_POS - 24,
- AUTHOR_TOP_POS,
- 2 * AUTHOR_COLUMN_WIDTH,
- AUTHOR_LINE_HEIGHT * ITEMS_PER_COLUMN);
-
- eel_gdk_pixbuf_fill_rectangle_with_color
- (about->details->background_pixbuf,
- author_area,
- EEL_RGBA_COLOR_PACK (255, 255, 255, 255));
-
- /* randomize the author array */
- randomize_authors (about);
-
- /* redraw the authors */
- draw_author_list (about, about->details->background_pixbuf);
-
- about->details->last_update_time = time (NULL);
-
- /* set up the timer task if necessary */
- if (about->details->timer_task == 0) {
- about->details->timer_task = gtk_timeout_add
- (2000, update_authors_if_necessary, about);
- }
-
- /* schedule a redraw for the about box */
- gtk_widget_queue_draw (GTK_WIDGET (about));
-}
-
-static void
-nautilus_about_hide (GtkWidget *widget)
-{
- NautilusAbout *about;
-
- about = NAUTILUS_ABOUT (widget);
- if (about->details->timer_task != 0) {
- gtk_timeout_remove (about->details->timer_task);
- about->details->timer_task = 0;
- }
-
- GNOME_CALL_PARENT (GTK_WIDGET_CLASS, hide, (widget));
-}
-
-static int
-update_authors_if_necessary (gpointer callback_data)
-{
- NautilusAbout *about;
- guint current_time, next_time;
-
- about = NAUTILUS_ABOUT (callback_data);
-
- current_time = time (NULL);
- next_time = about->details->last_update_time + UPDATE_TIME_INTERVAL;
-
- if (current_time > next_time) {
- nautilus_about_update_authors (about);
- }
- return TRUE;
-}
-
-static void
-nautilus_about_hide_on_response (GtkDialog *dialog, int response_id)
-{
- gtk_widget_hide (GTK_WIDGET (dialog));
-}
-
-static gboolean
-nautilus_about_hide_on_delete (GtkWidget *widget, GdkEventAny *event)
-{
- return gtk_widget_hide_on_delete (widget);
-}
-
-static void
-nautilus_about_class_init (NautilusAboutClass *class)
-{
- G_OBJECT_CLASS (class)->finalize = nautilus_about_finalize;
- GTK_WIDGET_CLASS (class)->delete_event = nautilus_about_hide_on_delete;
- GTK_WIDGET_CLASS (class)->hide = nautilus_about_hide;
- GTK_DIALOG_CLASS (class)->response = nautilus_about_hide_on_response;
-}
diff --git a/src/nautilus-about.h b/src/nautilus-about.h
deleted file mode 100644
index 240a4fdbf..000000000
--- a/src/nautilus-about.h
+++ /dev/null
@@ -1,62 +0,0 @@
-/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
-
-/*
- * Nautilus
- *
- * Copyright (C) 2000 Eazel, Inc.
- *
- * Nautilus 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.
- *
- * Nautilus 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 program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- * Author: Andy Hertzfeld <andy@eazel.com>
- *
- * This is the header file for the nautilus about dialog
- *
- */
-
-#ifndef NAUTILUS_ABOUT_H
-#define NAUTILUS_ABOUT_H
-
-#include <gtk/gtkdialog.h>
-
-#define NAUTILUS_TYPE_ABOUT (nautilus_about_get_type ())
-#define NAUTILUS_ABOUT(obj) (GTK_CHECK_CAST ((obj), NAUTILUS_TYPE_ABOUT, NautilusAbout))
-#define NAUTILUS_ABOUT_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), NAUTILUS_TYPE_ABOUT, NautilusAboutClass))
-#define NAUTILUS_IS_ABOUT(obj) (GTK_CHECK_TYPE ((obj), NAUTILUS_TYPE_ABOUT))
-#define NAUTILUS_IS_ABOUT_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), NAUTILUS_TYPE_ABOUT))
-
-typedef struct NautilusAbout NautilusAbout;
-typedef struct NautilusAboutClass NautilusAboutClass;
-typedef struct NautilusAboutDetails NautilusAboutDetails;
-
-struct NautilusAbout {
- GtkDialog parent;
- NautilusAboutDetails *details;
-};
-
-struct NautilusAboutClass {
- GtkDialogClass parent_class;
-};
-
-GtkType nautilus_about_get_type (void);
-GtkWidget *nautilus_about_new (const char *title,
- const char *version,
- const char *copyright,
- const char **authors,
- const char *comments,
- const char *translators,
- const char *time_stamp);
-void nautilus_about_update_authors (NautilusAbout *about);
-
-#endif /* NAUTILUS_ABOUT_H */