1 2 /* nautilus-ui-utilities.h - helper functions for GtkUIManager stuff 3 4 Copyright (C) 2004 Red Hat, Inc. 5 6 The Gnome Library is free software; you can redistribute it and/or 7 modify it under the terms of the GNU Library General Public License as 8 published by the Free Software Foundation; either version 2 of the 9 License, or (at your option) any later version. 10 11 The Gnome Library is distributed in the hope that it will be useful, 12 but WITHOUT ANY WARRANTY; without even the implied warranty of 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 Library General Public License for more details. 15 16 You should have received a copy of the GNU Library General Public 17 License along with the Gnome Library; see the file COPYING.LIB. If not, 18 see <http://www.gnu.org/licenses/>. 19 20 Authors: Alexander Larsson <alexl@redhat.com> 21 */ 22 23 #pragma once 24 25 #include <gtk/gtk.h> 26 27 28 void nautilus_gmenu_set_from_model (GMenu *target_menu, 29 GMenuModel *source_model); 30 31 void nautilus_ui_frame_image (GdkPixbuf **pixbuf); 32 void nautilus_ui_frame_video (GdkPixbuf **pixbuf); 33 34 gboolean nautilus_file_date_in_between (guint64 file_unix_time, 35 GDateTime *initial_date, 36 GDateTime *end_date); 37 gchar * get_text_for_date_range (GPtrArray *date_range, 38 gboolean prefix_with_since); 39 40 GtkDialog * show_dialog (const gchar *primary_text, 41 const gchar *secondary_text, 42 GtkWindow *parent, 43 GtkMessageType type); 44 45 void show_unmount_progress_cb (GMountOperation *op, 46 const gchar *message, 47 gint64 time_left, 48 gint64 bytes_left, 49 gpointer user_data); 50 void show_unmount_progress_aborted_cb (GMountOperation *op, 51 gpointer user_data); 52