summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntónio Fernandes <antoniof@gnome.org>2022-09-01 16:42:15 +0100
committerAntónio Fernandes <antoniof@gnome.org>2022-09-01 22:20:55 +0000
commit683a3d54ef2e884a0abf812f35df7751ce0f509e (patch)
treed5fa9507d84da7f385d9fe722a6465d8d99a05a6
parent83c2c6fdda4e6652cbbcf87a14f23a6bf355baf4 (diff)
downloadnautilus-683a3d54ef2e884a0abf812f35df7751ce0f509e.tar.gz
audio-video-properties: Drop obsolete test program
The properties extension no longer creates a widget, so it's no longer a simple task of packing that widget into a window. We never use that test program anyway; manual testing can and should be performed in the main application.
-rw-r--r--extensions/audio-video-properties/meson.build16
-rw-r--r--extensions/audio-video-properties/test-properties-page.c81
2 files changed, 0 insertions, 97 deletions
diff --git a/extensions/audio-video-properties/meson.build b/extensions/audio-video-properties/meson.build
index e58dc5f1c..e78e7f60d 100644
--- a/extensions/audio-video-properties/meson.build
+++ b/extensions/audio-video-properties/meson.build
@@ -24,19 +24,3 @@ libtotem_properties_page = shared_module(
install: true,
install_dir: extensiondir
)
-
-# test_properties_page_sources = files(
-# 'totem-properties-main.c',
-# 'totem-properties-view.c',
-# 'totem-gst-helpers.c',
-# 'test-properties-page.c'
-# )
-
-# executable(
-# 'test-properties-page',
-# test_properties_page_sources,
-# dependencies: libtotem_properties_page_deps + [
-# nautilus_extension
-# ],
-# )
-
diff --git a/extensions/audio-video-properties/test-properties-page.c b/extensions/audio-video-properties/test-properties-page.c
deleted file mode 100644
index f52881625..000000000
--- a/extensions/audio-video-properties/test-properties-page.c
+++ /dev/null
@@ -1,81 +0,0 @@
-/*
- * Copyright (C) 2005 Bastien Nocera <hadess@hadess.net>
- *
- * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- */
-
-#include <config.h>
-#include <string.h>
-#define GST_USE_UNSTABLE_API 1
-#include <gst/gst.h>
-#include <glib/gi18n-lib.h>
-#include "totem-gst-helpers.h"
-#include "totem-properties-view.h"
-
-static GtkWidget *window, *props, *label;
-
-static void
-create_props (const char *url)
-{
- label = gtk_label_new ("Audio/Video");
- window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
- g_signal_connect (G_OBJECT (window), "destroy",
- G_CALLBACK (gtk_main_quit), NULL);
- gtk_window_set_default_size (GTK_WINDOW (window), 450, 550);
- props = totem_properties_view_new (url, label);
- gtk_container_add (GTK_CONTAINER (window), props);
-
- gtk_widget_show (window);
-}
-
-static void
-destroy_props (void)
-{
- gtk_widget_destroy (label);
-}
-
-int main (int argc, char **argv)
-{
- GFile *file;
- char *url;
-
- bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
- bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
- textdomain (GETTEXT_PACKAGE);
-
- totem_gst_disable_display_decoders ();
- gst_init (&argc, &argv);
- gtk_init ();
-
- if (argc != 2) {
- g_print ("Usage: %s [URI]\n", argv[0]);
- return 1;
- }
-
- file = g_file_new_for_commandline_arg (argv[1]);
- url = g_file_get_uri (file);
- g_object_unref (file);
-
- create_props (url);
- g_free (url);
-
- gtk_main ();
-
- destroy_props ();
-
- return 0;
-}
-