nautilus-gtk-extensions.h 2.87 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */

/* nautilus-gtk-extensions.h - interface for new functions that operate on
  			       gtk classes. Perhaps some of these should be
  			       rolled into gtk someday.

   Copyright (C) 1999, 2000 Eazel, Inc.

   The Gnome Library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Library General Public License as
   published by the Free Software Foundation; either version 2 of the
   License, or (at your option) any later version.

   The Gnome Library is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   Library General Public License for more details.

   You should have received a copy of the GNU Library General Public
   License along with the Gnome Library; see the file COPYING.LIB.  If not,
   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
   Boston, MA 02111-1307, USA.

   Authors: John Sullivan <sullivan@eazel.com>
*/

#ifndef NAUTILUS_GTK_EXTENSIONS_H
28
#define NAUTILUS_GTK_EXTENSIONS_H
29

30
#include <gtk/gtkmenu.h>
31
#include <gtk/gtkwindow.h>
32
33
34
#include <gtk/gtktypeutils.h>
#include <gtk/gtkobject.h>

35
36
37
38
#define gtk_marshal_NONE__BOXED_BOXED gtk_marshal_NONE__POINTER_POINTER

#define NAUTILUS_DEFAULT_POPUP_MENU_DISPLACEMENT 2

39
40
41
42
guint             nautilus_gtk_signal_connect_free_data                    (GtkObject              *object,
									    const gchar            *name,
									    GtkSignalFunc           func,
									    gpointer                data);
43

44
void              nautilus_gtk_window_present                              (GtkWindow              *window);
45

46
47
GtkSelectionData *nautilus_gtk_selection_data_copy_deep                    (const GtkSelectionData *selection_data);
void              nautilus_gtk_selection_data_free_deep                    (GtkSelectionData       *selection_data);
48

49
50
51
void              nautilus_pop_up_context_menu                             (GtkMenu                *menu,
									    gint16                  offset_x,
									    gint16                  offset_y);
52

53
54
55
56
57
58
59
60
void              nautilus_gtk_marshal_NONE__POINTER_INT_INT_DOUBLE        (GtkObject              *object,
									    GtkSignalFunc           func,
									    gpointer                func_data,
									    GtkArg                 *args);
void              nautilus_gtk_marshal_NONE__POINTER_INT_INT_DOUBLE_DOUBLE (GtkObject              *object,
									    GtkSignalFunc           func,
									    gpointer                func_data,
									    GtkArg                 *args);
61

62
63
64
65
66
67
void              nautilus_gtk_marshal_NONE__DOUBLE                        (GtkObject    *object,
									    GtkSignalFunc func,
									    gpointer      func_data,
									    GtkArg       *args);


68
#endif /* NAUTILUS_GTK_EXTENSIONS_H */