[totem/wip/hadess/remove-totem-interface: 1/3] main: Remove unused totem_interface_error_with_link()
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/wip/hadess/remove-totem-interface: 1/3] main: Remove unused totem_interface_error_with_link()
- Date: Tue, 11 May 2021 13:20:56 +0000 (UTC)
commit dd51996a6e46edfea7b96325ba7a53b63b6a2734
Author: Bastien Nocera <hadess hadess net>
Date: Tue May 11 14:46:51 2021 +0200
main: Remove unused totem_interface_error_with_link()
docs/reference/totem-sections.txt | 1 -
src/totem-interface.c | 37 -------------------------------------
src/totem-interface.h | 5 -----
3 files changed, 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
@@ -118,43 +118,6 @@ totem_interface_error_blocking (const char *title, const char *reason,
gtk_widget_destroy (error_dialog);
}
-/**
- * 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
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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]