summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2021-05-11 14:46:51 +0200
committerBastien Nocera <hadess@hadess.net>2021-05-11 14:46:51 +0200
commitdd51996a6e46edfea7b96325ba7a53b63b6a2734 (patch)
tree6e42857236b573ef2c79e7030d0eebad71052e10
parent3cb2ab9072832e2a47e189d495d530af79bc090e (diff)
downloadtotem-dd51996a6e46edfea7b96325ba7a53b63b6a2734.tar.gz
main: Remove unused totem_interface_error_with_link()
-rw-r--r--docs/reference/totem-sections.txt1
-rw-r--r--src/totem-interface.c37
-rw-r--r--src/totem-interface.h5
3 files changed, 0 insertions, 43 deletions
diff --git a/docs/reference/totem-sections.txt b/docs/reference/totem-sections.txt
index 77740caeb..f92c6a043 100644
--- a/docs/reference/totem-sections.txt
+++ b/docs/reference/totem-sections.txt
@@ -100,7 +100,6 @@ totem_interface_create_header_button
<TITLE>Interface</TITLE>
totem_interface_error
totem_interface_error_blocking
-totem_interface_error_with_link
<SUBSECTION Private>
totem_interface_get_full_path
totem_interface_load
diff --git a/src/totem-interface.c b/src/totem-interface.c
index 1c6feea43..241fbdc43 100644
--- a/src/totem-interface.c
+++ b/src/totem-interface.c
@@ -119,43 +119,6 @@ totem_interface_error_blocking (const char *title, const char *reason,
}
/**
- * totem_interface_error_with_link:
- * @title: the error title
- * @reason: the error reason (secondary text)
- * @uri: the URI to open
- * @label: a label for the URI's button, or %NULL to use @uri as the label
- * @parent: the error dialogue's parent #GtkWindow
- *
- * Display a modal error dialogue like totem_interface_error(),
- * but add a button which will open @uri in a browser window.
- **/
-void
-totem_interface_error_with_link (const char *title, const char *reason,
- const char *uri, const char *label, GtkWindow *parent)
-{
- GtkWidget *error_dialog, *link_button, *hbox;
-
- if (label == NULL)
- label = uri;
-
- error_dialog = totem_interface_error_dialog (title, reason, parent);
- link_button = gtk_link_button_new_with_label (uri, label);
-
- hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
- gtk_box_set_homogeneous (GTK_BOX (hbox), TRUE);
- gtk_box_pack_start (GTK_BOX (hbox), link_button, FALSE, FALSE, 0);
- gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (error_dialog))), hbox, TRUE, FALSE, 0);
- gtk_widget_show_all (hbox);
-
- gtk_dialog_set_default_response (GTK_DIALOG (error_dialog), GTK_RESPONSE_OK);
-
- g_signal_connect (G_OBJECT (error_dialog), "response", G_CALLBACK
- (gtk_widget_destroy), error_dialog);
-
- gtk_window_present (GTK_WINDOW (error_dialog));
-}
-
-/**
* totem_interface_load:
* @name: the #GtkBuilder UI file to load
* @fatal: %TRUE if errors loading the file should be fatal, %FALSE otherwise
diff --git a/src/totem-interface.h b/src/totem-interface.h
index f06ec3214..277261e80 100644
--- a/src/totem-interface.h
+++ b/src/totem-interface.h
@@ -43,11 +43,6 @@ void totem_interface_error (const char *title,
void totem_interface_error_blocking (const char *title,
const char *reason,
GtkWindow *parent);
-void totem_interface_error_with_link (const char *title,
- const char *reason,
- const char *uri,
- const char *label,
- GtkWindow *parent);
GtkWidget * totem_interface_create_header_button (GtkWidget *header,
GtkWidget *button,
const char *icon_name,