summaryrefslogtreecommitdiff
path: root/src/totem-interface.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/totem-interface.c')
-rw-r--r--src/totem-interface.c38
1 files changed, 0 insertions, 38 deletions
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;
-}