mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-08-25 10:45:41 +00:00
Add gratuitous "About" box.
Add gratuitous "About" box.
This commit is contained in:
parent
82c184431b
commit
78353a733d
|
@ -1,3 +1,30 @@
|
|||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
|
||||
/*
|
||||
* Nautilus
|
||||
*
|
||||
* Copyright (C) 1999 Red Hat, 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: Elliot Lee <sopwith@redhat.com>
|
||||
*
|
||||
*/
|
||||
/* ntl-view.c: Implementation of the object representing a data view,
|
||||
and its associated CORBA object for proxying requests into this
|
||||
object. */
|
||||
#include "config.h"
|
||||
|
||||
#include <libnautilus/libnautilus.h>
|
||||
|
|
|
@ -1,3 +1,30 @@
|
|||
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
|
||||
/*
|
||||
* Nautilus
|
||||
*
|
||||
* Copyright (C) 1999 Red Hat, 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: Elliot Lee <sopwith@redhat.com>
|
||||
*
|
||||
*/
|
||||
/* ntl-view.c: Implementation of the object representing a data view,
|
||||
and its associated CORBA object for proxying requests into this
|
||||
object. */
|
||||
#include "config.h"
|
||||
|
||||
#include <libnautilus/libnautilus.h>
|
||||
|
|
|
@ -20,6 +20,7 @@ icon_DATA = \
|
|||
i-zipdisk.png \
|
||||
i-zipdisk2.png \
|
||||
multi-ok.png \
|
||||
not.png
|
||||
not.png \
|
||||
nautilus3.jpg
|
||||
|
||||
EXTRA_DIST = $(icon_DATA)
|
||||
|
|
BIN
icons/nautilus3.jpg
Normal file
BIN
icons/nautilus3.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.6 KiB |
|
@ -120,6 +120,8 @@ static void nautilus_window_get_arg (GtkObject *object,
|
|||
static void nautilus_window_goto_uri_cb (GtkWidget *widget,
|
||||
const char *uri,
|
||||
GtkWidget *window);
|
||||
static void nautilus_window_about_cb (GtkWidget *widget,
|
||||
NautilusWindow *window);
|
||||
|
||||
#undef CONTENTS_AS_HBOX
|
||||
|
||||
|
@ -207,7 +209,7 @@ static GnomeUIInfo help_menu_info[] = {
|
|||
{
|
||||
GNOME_APP_UI_ITEM,
|
||||
N_("About Nautilus..."), N_("Info about the Nautilus program"),
|
||||
NULL, NULL, NULL,
|
||||
nautilus_window_about_cb, NULL, NULL,
|
||||
GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_ABOUT,
|
||||
0, 0, NULL
|
||||
},
|
||||
|
@ -438,8 +440,7 @@ nautilus_window_constructed(NautilusWindow *window)
|
|||
|
||||
gtk_widget_set_sensitive(bookmarks_menu_info[0].widget, FALSE); /* Add Bookmark */
|
||||
gtk_widget_set_sensitive(bookmarks_menu_info[1].widget, FALSE); /* Edit Bookmarks */
|
||||
|
||||
gtk_widget_set_sensitive(help_menu_info[0].widget, FALSE); /* About */
|
||||
gtk_widget_set_sensitive(help_menu_info[0].widget, TRUE); /* About */
|
||||
|
||||
/* insert bookmarks menu */
|
||||
gtk_menu_item_set_submenu(GTK_MENU_ITEM (main_menu[BOOKMARKS_MENU_INDEX].widget),
|
||||
|
@ -867,6 +868,28 @@ nautilus_window_stop (GtkWidget *btn, NautilusWindow *window)
|
|||
|
||||
}
|
||||
|
||||
static void
|
||||
nautilus_window_about_cb (GtkWidget *widget,
|
||||
NautilusWindow *window)
|
||||
{
|
||||
GtkWidget *aboot;
|
||||
const char *authors[] = {
|
||||
"Darin Adler",
|
||||
"Elliot Lee",
|
||||
"Ettore Perazzoli",
|
||||
"John Sullivan",
|
||||
NULL
|
||||
};
|
||||
|
||||
aboot = gnome_about_new(_("Nautilus"),
|
||||
VERSION,
|
||||
"Copyright (C) 1999",
|
||||
authors,
|
||||
_("The Cool Shell Program"),
|
||||
"nautilus/nautilus3.jpg");
|
||||
gtk_widget_show(aboot);
|
||||
}
|
||||
|
||||
void
|
||||
nautilus_window_allow_back (NautilusWindow *window, gboolean allow)
|
||||
{
|
||||
|
|
|
@ -120,6 +120,8 @@ static void nautilus_window_get_arg (GtkObject *object,
|
|||
static void nautilus_window_goto_uri_cb (GtkWidget *widget,
|
||||
const char *uri,
|
||||
GtkWidget *window);
|
||||
static void nautilus_window_about_cb (GtkWidget *widget,
|
||||
NautilusWindow *window);
|
||||
|
||||
#undef CONTENTS_AS_HBOX
|
||||
|
||||
|
@ -207,7 +209,7 @@ static GnomeUIInfo help_menu_info[] = {
|
|||
{
|
||||
GNOME_APP_UI_ITEM,
|
||||
N_("About Nautilus..."), N_("Info about the Nautilus program"),
|
||||
NULL, NULL, NULL,
|
||||
nautilus_window_about_cb, NULL, NULL,
|
||||
GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_ABOUT,
|
||||
0, 0, NULL
|
||||
},
|
||||
|
@ -438,8 +440,7 @@ nautilus_window_constructed(NautilusWindow *window)
|
|||
|
||||
gtk_widget_set_sensitive(bookmarks_menu_info[0].widget, FALSE); /* Add Bookmark */
|
||||
gtk_widget_set_sensitive(bookmarks_menu_info[1].widget, FALSE); /* Edit Bookmarks */
|
||||
|
||||
gtk_widget_set_sensitive(help_menu_info[0].widget, FALSE); /* About */
|
||||
gtk_widget_set_sensitive(help_menu_info[0].widget, TRUE); /* About */
|
||||
|
||||
/* insert bookmarks menu */
|
||||
gtk_menu_item_set_submenu(GTK_MENU_ITEM (main_menu[BOOKMARKS_MENU_INDEX].widget),
|
||||
|
@ -867,6 +868,28 @@ nautilus_window_stop (GtkWidget *btn, NautilusWindow *window)
|
|||
|
||||
}
|
||||
|
||||
static void
|
||||
nautilus_window_about_cb (GtkWidget *widget,
|
||||
NautilusWindow *window)
|
||||
{
|
||||
GtkWidget *aboot;
|
||||
const char *authors[] = {
|
||||
"Darin Adler",
|
||||
"Elliot Lee",
|
||||
"Ettore Perazzoli",
|
||||
"John Sullivan",
|
||||
NULL
|
||||
};
|
||||
|
||||
aboot = gnome_about_new(_("Nautilus"),
|
||||
VERSION,
|
||||
"Copyright (C) 1999",
|
||||
authors,
|
||||
_("The Cool Shell Program"),
|
||||
"nautilus/nautilus3.jpg");
|
||||
gtk_widget_show(aboot);
|
||||
}
|
||||
|
||||
void
|
||||
nautilus_window_allow_back (NautilusWindow *window, gboolean allow)
|
||||
{
|
||||
|
|
|
@ -120,6 +120,8 @@ static void nautilus_window_get_arg (GtkObject *object,
|
|||
static void nautilus_window_goto_uri_cb (GtkWidget *widget,
|
||||
const char *uri,
|
||||
GtkWidget *window);
|
||||
static void nautilus_window_about_cb (GtkWidget *widget,
|
||||
NautilusWindow *window);
|
||||
|
||||
#undef CONTENTS_AS_HBOX
|
||||
|
||||
|
@ -207,7 +209,7 @@ static GnomeUIInfo help_menu_info[] = {
|
|||
{
|
||||
GNOME_APP_UI_ITEM,
|
||||
N_("About Nautilus..."), N_("Info about the Nautilus program"),
|
||||
NULL, NULL, NULL,
|
||||
nautilus_window_about_cb, NULL, NULL,
|
||||
GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_ABOUT,
|
||||
0, 0, NULL
|
||||
},
|
||||
|
@ -438,8 +440,7 @@ nautilus_window_constructed(NautilusWindow *window)
|
|||
|
||||
gtk_widget_set_sensitive(bookmarks_menu_info[0].widget, FALSE); /* Add Bookmark */
|
||||
gtk_widget_set_sensitive(bookmarks_menu_info[1].widget, FALSE); /* Edit Bookmarks */
|
||||
|
||||
gtk_widget_set_sensitive(help_menu_info[0].widget, FALSE); /* About */
|
||||
gtk_widget_set_sensitive(help_menu_info[0].widget, TRUE); /* About */
|
||||
|
||||
/* insert bookmarks menu */
|
||||
gtk_menu_item_set_submenu(GTK_MENU_ITEM (main_menu[BOOKMARKS_MENU_INDEX].widget),
|
||||
|
@ -867,6 +868,28 @@ nautilus_window_stop (GtkWidget *btn, NautilusWindow *window)
|
|||
|
||||
}
|
||||
|
||||
static void
|
||||
nautilus_window_about_cb (GtkWidget *widget,
|
||||
NautilusWindow *window)
|
||||
{
|
||||
GtkWidget *aboot;
|
||||
const char *authors[] = {
|
||||
"Darin Adler",
|
||||
"Elliot Lee",
|
||||
"Ettore Perazzoli",
|
||||
"John Sullivan",
|
||||
NULL
|
||||
};
|
||||
|
||||
aboot = gnome_about_new(_("Nautilus"),
|
||||
VERSION,
|
||||
"Copyright (C) 1999",
|
||||
authors,
|
||||
_("The Cool Shell Program"),
|
||||
"nautilus/nautilus3.jpg");
|
||||
gtk_widget_show(aboot);
|
||||
}
|
||||
|
||||
void
|
||||
nautilus_window_allow_back (NautilusWindow *window, gboolean allow)
|
||||
{
|
||||
|
|
|
@ -120,6 +120,8 @@ static void nautilus_window_get_arg (GtkObject *object,
|
|||
static void nautilus_window_goto_uri_cb (GtkWidget *widget,
|
||||
const char *uri,
|
||||
GtkWidget *window);
|
||||
static void nautilus_window_about_cb (GtkWidget *widget,
|
||||
NautilusWindow *window);
|
||||
|
||||
#undef CONTENTS_AS_HBOX
|
||||
|
||||
|
@ -207,7 +209,7 @@ static GnomeUIInfo help_menu_info[] = {
|
|||
{
|
||||
GNOME_APP_UI_ITEM,
|
||||
N_("About Nautilus..."), N_("Info about the Nautilus program"),
|
||||
NULL, NULL, NULL,
|
||||
nautilus_window_about_cb, NULL, NULL,
|
||||
GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_ABOUT,
|
||||
0, 0, NULL
|
||||
},
|
||||
|
@ -438,8 +440,7 @@ nautilus_window_constructed(NautilusWindow *window)
|
|||
|
||||
gtk_widget_set_sensitive(bookmarks_menu_info[0].widget, FALSE); /* Add Bookmark */
|
||||
gtk_widget_set_sensitive(bookmarks_menu_info[1].widget, FALSE); /* Edit Bookmarks */
|
||||
|
||||
gtk_widget_set_sensitive(help_menu_info[0].widget, FALSE); /* About */
|
||||
gtk_widget_set_sensitive(help_menu_info[0].widget, TRUE); /* About */
|
||||
|
||||
/* insert bookmarks menu */
|
||||
gtk_menu_item_set_submenu(GTK_MENU_ITEM (main_menu[BOOKMARKS_MENU_INDEX].widget),
|
||||
|
@ -867,6 +868,28 @@ nautilus_window_stop (GtkWidget *btn, NautilusWindow *window)
|
|||
|
||||
}
|
||||
|
||||
static void
|
||||
nautilus_window_about_cb (GtkWidget *widget,
|
||||
NautilusWindow *window)
|
||||
{
|
||||
GtkWidget *aboot;
|
||||
const char *authors[] = {
|
||||
"Darin Adler",
|
||||
"Elliot Lee",
|
||||
"Ettore Perazzoli",
|
||||
"John Sullivan",
|
||||
NULL
|
||||
};
|
||||
|
||||
aboot = gnome_about_new(_("Nautilus"),
|
||||
VERSION,
|
||||
"Copyright (C) 1999",
|
||||
authors,
|
||||
_("The Cool Shell Program"),
|
||||
"nautilus/nautilus3.jpg");
|
||||
gtk_widget_show(aboot);
|
||||
}
|
||||
|
||||
void
|
||||
nautilus_window_allow_back (NautilusWindow *window, gboolean allow)
|
||||
{
|
||||
|
|
|
@ -120,6 +120,8 @@ static void nautilus_window_get_arg (GtkObject *object,
|
|||
static void nautilus_window_goto_uri_cb (GtkWidget *widget,
|
||||
const char *uri,
|
||||
GtkWidget *window);
|
||||
static void nautilus_window_about_cb (GtkWidget *widget,
|
||||
NautilusWindow *window);
|
||||
|
||||
#undef CONTENTS_AS_HBOX
|
||||
|
||||
|
@ -207,7 +209,7 @@ static GnomeUIInfo help_menu_info[] = {
|
|||
{
|
||||
GNOME_APP_UI_ITEM,
|
||||
N_("About Nautilus..."), N_("Info about the Nautilus program"),
|
||||
NULL, NULL, NULL,
|
||||
nautilus_window_about_cb, NULL, NULL,
|
||||
GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_ABOUT,
|
||||
0, 0, NULL
|
||||
},
|
||||
|
@ -438,8 +440,7 @@ nautilus_window_constructed(NautilusWindow *window)
|
|||
|
||||
gtk_widget_set_sensitive(bookmarks_menu_info[0].widget, FALSE); /* Add Bookmark */
|
||||
gtk_widget_set_sensitive(bookmarks_menu_info[1].widget, FALSE); /* Edit Bookmarks */
|
||||
|
||||
gtk_widget_set_sensitive(help_menu_info[0].widget, FALSE); /* About */
|
||||
gtk_widget_set_sensitive(help_menu_info[0].widget, TRUE); /* About */
|
||||
|
||||
/* insert bookmarks menu */
|
||||
gtk_menu_item_set_submenu(GTK_MENU_ITEM (main_menu[BOOKMARKS_MENU_INDEX].widget),
|
||||
|
@ -867,6 +868,28 @@ nautilus_window_stop (GtkWidget *btn, NautilusWindow *window)
|
|||
|
||||
}
|
||||
|
||||
static void
|
||||
nautilus_window_about_cb (GtkWidget *widget,
|
||||
NautilusWindow *window)
|
||||
{
|
||||
GtkWidget *aboot;
|
||||
const char *authors[] = {
|
||||
"Darin Adler",
|
||||
"Elliot Lee",
|
||||
"Ettore Perazzoli",
|
||||
"John Sullivan",
|
||||
NULL
|
||||
};
|
||||
|
||||
aboot = gnome_about_new(_("Nautilus"),
|
||||
VERSION,
|
||||
"Copyright (C) 1999",
|
||||
authors,
|
||||
_("The Cool Shell Program"),
|
||||
"nautilus/nautilus3.jpg");
|
||||
gtk_widget_show(aboot);
|
||||
}
|
||||
|
||||
void
|
||||
nautilus_window_allow_back (NautilusWindow *window, gboolean allow)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue