--- gnome-media-2.23.3/grecord/src/gsr-window.c-orig 2008-06-03 13:37:05.664959000 -0500
+++ gnome-media-2.23.3/grecord/src/gsr-window.c 2008-06-03 13:36:32.587655000 -0500
@@ -354,12 +354,6 @@ set_action_sensitive (GSRWindow *window
gtk_action_set_sensitive (action, sensitive);
}
-static void
-file_new_cb (GtkAction *action,
- GSRWindow *window)
-{
- gsr_open_window (NULL);
-}
static void
file_open_cb (GtkAction *action,
@@ -406,14 +400,9 @@ file_open_cb (GtkAction *action,
g_free (dirname);
g_free (utf8_name);
- if (window->priv->has_file == TRUE) {
- /* Just open a new window with the file */
- gsr_open_window (name);
- } else {
/* Set the file in this window */
g_object_set (G_OBJECT (window), "location", name, NULL);
window->priv->dirty = FALSE;
- }
g_free (name);
}
@@ -462,14 +451,9 @@ file_open_recent_cb (EggRecentViewGtk *v
goto out;
}
- if (window->priv->has_file == TRUE) {
- /* Just open a new window with the file */
- gsr_open_window (filename);
- } else {
/* Set the file in this window */
g_object_set (G_OBJECT (window), "location", filename, NULL);
window->priv->dirty = FALSE;
- }
out:
g_free (filename);
@@ -2111,8 +2095,6 @@ static const GtkActionEntry menu_entries
{
/* File menu. */
{ "File", NULL, N_("_File") },
- { "FileNew", GTK_STOCK_NEW, NULL, NULL,
- N_("Create a new sample"), G_CALLBACK (file_new_cb) },
{ "FileOpen", GTK_STOCK_OPEN, NULL, NULL,
N_("Open a file"), G_CALLBACK (file_open_cb) },
{ "FileSave", GTK_STOCK_SAVE, NULL, NULL,
diff -uw gnome-media-2.17.90_old/grecord/src/ui.xml gnome-media-2.17.90/grecord/src/ui.xml
--- gnome-media-2.17.90_old/grecord/src/ui.xml 2007-02-01 16:56:25.144369000 +0800
+++ gnome-media-2.17.90/grecord/src/ui.xml 2007-02-01 16:58:42.595615000 +0800
@@ -2,7 +2,6 @@
<menubar name="MenuBar">
<menu name="FileMenu" action="File">
- <menuitem action="FileNew"/>
<menuitem action="FileOpen"/>
<separator/>
<menuitem action="FileSave"/>
@@ -29,7 +28,6 @@
</menubar>
<toolbar name="ToolBar">
- <toolitem action="FileNew"/>
<toolitem action="FileOpen"/>
<toolitem action="FileSave"/>
<separator/>