[totem] browser-plugin: Remove useless "About" dialogue
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] browser-plugin: Remove useless "About" dialogue
- Date: Mon, 11 Jul 2011 15:23:38 +0000 (UTC)
commit 9ab830e38166c10c8357b89ec83755c67a42e2a1
Author: Bastien Nocera <hadess hadess net>
Date: Mon Jul 11 15:12:40 2011 +0100
browser-plugin: Remove useless "About" dialogue
browser-plugin/totem-plugin-viewer.c | 57 ----------------------------------
data/mozilla-viewer.ui | 9 -----
2 files changed, 0 insertions(+), 66 deletions(-)
---
diff --git a/browser-plugin/totem-plugin-viewer.c b/browser-plugin/totem-plugin-viewer.c
index 38270e2..83fde2d 100644
--- a/browser-plugin/totem-plugin-viewer.c
+++ b/browser-plugin/totem-plugin-viewer.c
@@ -104,7 +104,6 @@ typedef struct _TotemEmbedded {
DBusGConnection *conn;
GtkWidget *window;
GtkBuilder *menuxml, *xml;
- GtkWidget *about;
GtkWidget *pp_button;
GtkWidget *pp_fs_button;
TotemStatusbar *statusbar;
@@ -187,7 +186,6 @@ static void totem_embedded_update_menu (TotemEmbedded *emb);
static void on_open1_activate (GtkButton *button, TotemEmbedded *emb);
static void totem_embedded_toggle_fullscreen (TotemEmbedded *emb);
-void on_about1_activate (GtkButton *button, TotemEmbedded *emb);
void on_preferences1_activate (GtkButton *button, TotemEmbedded *emb);
void on_copy_location1_activate (GtkButton *button, TotemEmbedded *emb);
void on_fullscreen1_activate (GtkMenuItem *menuitem, TotemEmbedded *emb);
@@ -1129,61 +1127,6 @@ on_fullscreen1_activate (GtkMenuItem *menuitem, TotemEmbedded *emb)
}
void
-on_about1_activate (GtkButton *button, TotemEmbedded *emb)
-{
- char *backend_version, *description, *license;
- GtkWidget **about;
-
- const char *authors[] =
- {
- "Bastien Nocera <hadess hadess net>",
- "Ronald Bultje <rbultje ronald bitfreak net>",
- "Christian Persch" " <" "chpe" "@" "gnome" "." "org" ">",
- NULL
- };
-
- if (emb->about != NULL)
- {
- gtk_window_present (GTK_WINDOW (emb->about));
- return;
- }
-
- backend_version = bacon_video_widget_get_backend_name (emb->bvw);
- description = g_strdup_printf (_("Browser Plugin using %s"),
- backend_version);
- license = totem_interface_get_license ();
-
- emb->about = g_object_new (GTK_TYPE_ABOUT_DIALOG,
- "program-name", _("Totem Browser Plugin"),
- "version", VERSION,
- "copyright", "Copyright  2002-2007 Bastien Nocera\n"
- "Copyright  2006, 2007, 2008 Christian Persch",
- "comments", description,
- "authors", authors,
- "translator-credits", _("translator-credits"),
- "logo-icon-name", "totem",
- "license", license,
- "wrap-license", TRUE,
- NULL);
-
- g_free (backend_version);
- g_free (description);
- g_free (license);
-
- totem_interface_set_transient_for (GTK_WINDOW (emb->about),
- GTK_WINDOW (emb->window));
-
- about = &emb->about;
- g_object_add_weak_pointer (G_OBJECT (emb->about),
- (gpointer *) about);
-
- g_signal_connect (G_OBJECT (emb->about), "response",
- G_CALLBACK (gtk_widget_destroy), NULL);
-
- gtk_widget_show (emb->about);
-}
-
-void
on_copy_location1_activate (GtkButton *button, TotemEmbedded *emb)
{
GdkDisplay *display;
diff --git a/data/mozilla-viewer.ui b/data/mozilla-viewer.ui
index ea88369..ba0d8ce 100644
--- a/data/mozilla-viewer.ui
+++ b/data/mozilla-viewer.ui
@@ -34,13 +34,6 @@
<signal handler="on_fullscreen1_activate" name="activate"/>
</object>
</child>
- <child>
- <object class="GtkAction" id="about1">
- <property name="stock_id">gtk-about</property>
- <property name="name">about1</property>
- <signal handler="on_about1_activate" name="activate"/>
- </object>
- </child>
</object>
</child>
<ui>
@@ -48,8 +41,6 @@
<menuitem action="copy_location1"/>
<menuitem action="preferences1"/>
<menuitem action="fullscreen1"/>
- <separator/>
- <menuitem action="about1"/>
</popup>
</ui>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]