summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrifa75 <yahiaoui.fakhri@gmail.com>2022-11-24 01:14:32 +0100
committerBastien Nocera <hadess@hadess.net>2022-11-24 10:04:32 +0100
commit9cbe5c593b63434c4b6c614f47fead7134e7f84f (patch)
tree040c2aea304c2c38023ff56a0ef1e7d58eb571e7
parent165a9714d9a13476e21ef012fe0a4b0f0dd89094 (diff)
downloadtotem-9cbe5c593b63434c4b6c614f47fead7134e7f84f.tar.gz
main: Remove unused totem_interface_create_header_button()
-rw-r--r--docs/reference/totem-sections.txt1
-rw-r--r--src/totem-interface.c38
-rw-r--r--src/totem-interface.h4
3 files changed, 0 insertions, 43 deletions
diff --git a/docs/reference/totem-sections.txt b/docs/reference/totem-sections.txt
index 81e38a833..8d982aabf 100644
--- a/docs/reference/totem-sections.txt
+++ b/docs/reference/totem-sections.txt
@@ -92,7 +92,6 @@ totem_is_seekable
totem_set_current_subtitle
totem_gst_playbin_get_frame
totem_gst_tag_list_get_cover
-totem_interface_create_header_button
</SECTION>
<SECTION>
diff --git a/src/totem-interface.c b/src/totem-interface.c
index b8a74e104..028506db6 100644
--- a/src/totem-interface.c
+++ b/src/totem-interface.c
@@ -116,41 +116,3 @@ totem_interface_error_blocking (const char *title, const char *reason,
gtk_dialog_run (GTK_DIALOG (error_dialog));
gtk_widget_destroy (error_dialog);
}
-
-/**
- * totem_interface_create_header_button:
- * @header: The header widget to put the button in
- * @button: The button to use in the header
- * @icon_name: The icon name for the button image
- * @pack_type: A #GtkPackType to tell us where to include the button
- *
- * Put the given @icon_name into @button, and pack @button into @header
- * according to @pack_type.
- *
- * Return value: (transfer none): the button passed as input
- */
-GtkWidget *
-totem_interface_create_header_button (GtkWidget *header,
- GtkWidget *button,
- const char *icon_name,
- GtkPackType pack_type)
-{
- GtkWidget *image;
- GtkStyleContext *context;
-
- image = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_MENU);
- gtk_button_set_image (GTK_BUTTON (button), image);
- context = gtk_widget_get_style_context (button);
- gtk_style_context_add_class (context, "image-button");
- g_object_set (G_OBJECT (button), "valign", GTK_ALIGN_CENTER, NULL);
- if (GTK_IS_MENU_BUTTON (button))
- g_object_set (G_OBJECT (button), "use-popover", TRUE, NULL);
-
- if (pack_type == GTK_PACK_END)
- gtk_header_bar_pack_end (GTK_HEADER_BAR (header), button);
- else
- gtk_header_bar_pack_start (GTK_HEADER_BAR (header), button);
- gtk_widget_show_all (button);
-
- return button;
-}
diff --git a/src/totem-interface.h b/src/totem-interface.h
index 55477a6f8..0bafd3f4d 100644
--- a/src/totem-interface.h
+++ b/src/totem-interface.h
@@ -31,7 +31,3 @@ void totem_interface_error (const char *title,
void totem_interface_error_blocking (const char *title,
const char *reason,
GtkWindow *parent);
-GtkWidget * totem_interface_create_header_button (GtkWidget *header,
- GtkWidget *button,
- const char *icon_name,
- GtkPackType pack_type);