~ubuntu-branches/ubuntu/saucy/gtk+3.0/saucy

« back to all changes in this revision

Viewing changes to gtk/gtktimeline.h

  • Committer: Package Import Robot
  • Author(s): Robert Ancell, Jeremy Bicha, Robert Ancell, Sebastien Bacher, Ken VanDine
  • Date: 2012-06-15 11:36:11 UTC
  • mfrom: (1.1.20) (36.1.48 precise) (0.1.25 sid)
  • Revision ID: package-import@ubuntu.com-20120615113611-bvb6nfn0k6kriz3k
Tags: 3.5.4-0ubuntu1
[ Jeremy Bicha ]
* settings.ini:
  Set gnome-panel menu-bar icon size to 24 so that Ubuntu logo
  for the Applications menu isn't set too small (LP: #986969)

[ Robert Ancell ]
* New upstream release (LP: #1000545)
* debian/control:
  - Bump build-depends on libglib2.0-dev
  - Add breaks older version of gtk3-engines-unico
* debian/libgtk-3-0.symbols:
  - Updated
* debian/libgtk-3-0.install.in:
* debian/rules:
  - Install settings.ini in rules
* debian/patches/00git_gtkimage_cleanup_crash.patch:
  - Applied upstream

[ Sebastien Bacher ]
* Rebase on Debian, including:
  - simplified the build rules and .install
  - dropped the static build (not really useful and costing time and efforts)
* Remaining diffs:
* debian/control.in:
  - updated replace versions
* debian/patches/100_overlay_scrollbar_loading.patch: 
  -dropped, the new scollbar code doesn't require that hack
* Drop fallback support for pre-multiarch loaders
* Remaining patches:
  - 043_ubuntu_menu_proxy.patch
  - 062_ubuntu-set-grab-add.patch
  - 073_treeview_almost_fixed.patch
  - 075_expose_gdkwidget_for_gtkrange.patch
  - 099_eventbox_scroll_mask.patch
  - git_gtkcellrenderer_grabbing_modifier.patch

[ Ken VanDine ]
* debian/patches/101_revert_symbolic_icon_search.patch
  - Revert symbolic icon search changes from 3.4.2, it breaks the icon 
    displayed in indicator-power because of the order the icons are searched
    in.  It looks like ubuntu-mono should drop the old icon names and 
    use the new -symbolic icons.  We need to carry this patch until 
    ubuntu-mono fixes it's handling of symbolic icons.  (LP: #1001229)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* GTK - The GIMP Toolkit
2
 
 * Copyright (C) 2007 Carlos Garnacho <carlos@imendio.com>
3
 
 *
4
 
 * This library is free software; you can redistribute it and/or
5
 
 * modify it under the terms of the GNU Library General Public
6
 
 * License as published by the Free Software Foundation; either
7
 
 * version 2 of the License, or (at your option) any later version.
8
 
 *
9
 
 * This library is distributed in the hope that it will be useful,
10
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12
 
 * Library General Public License for more details.
13
 
 *
14
 
 * You should have received a copy of the GNU Library General Public
15
 
 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16
 
 */
17
 
 
18
 
#ifndef __GTK_TIMELINE_H__
19
 
#define __GTK_TIMELINE_H__
20
 
 
21
 
#include <glib-object.h>
22
 
#include <gtk/gtkenums.h>
23
 
#include <gdk/gdk.h>
24
 
 
25
 
G_BEGIN_DECLS
26
 
 
27
 
#define GTK_TYPE_TIMELINE                 (_gtk_timeline_get_type ())
28
 
#define GTK_TIMELINE(obj)                 (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TIMELINE, GtkTimeline))
29
 
#define GTK_TIMELINE_CLASS(klass)         (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TIMELINE, GtkTimelineClass))
30
 
#define GTK_IS_TIMELINE(obj)              (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TIMELINE))
31
 
#define GTK_IS_TIMELINE_CLASS(klass)      (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TIMELINE))
32
 
#define GTK_TIMELINE_GET_CLASS(obj)       (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TIMELINE, GtkTimelineClass))
33
 
 
34
 
typedef struct GtkTimeline      GtkTimeline;
35
 
typedef struct GtkTimelineClass GtkTimelineClass;
36
 
 
37
 
typedef enum {
38
 
  GTK_TIMELINE_DIRECTION_FORWARD,
39
 
  GTK_TIMELINE_DIRECTION_BACKWARD
40
 
} GtkTimelineDirection;
41
 
 
42
 
typedef enum {
43
 
  GTK_TIMELINE_PROGRESS_LINEAR,
44
 
  GTK_TIMELINE_PROGRESS_EASE,
45
 
  GTK_TIMELINE_PROGRESS_EASE_IN,
46
 
  GTK_TIMELINE_PROGRESS_EASE_OUT,
47
 
  GTK_TIMELINE_PROGRESS_EASE_IN_OUT
48
 
} GtkTimelineProgressType;
49
 
 
50
 
struct GtkTimeline
51
 
{
52
 
  GObject parent_instance;
53
 
  gpointer priv;
54
 
};
55
 
 
56
 
struct GtkTimelineClass
57
 
{
58
 
  GObjectClass parent_class;
59
 
 
60
 
  void (* started)           (GtkTimeline *timeline);
61
 
  void (* finished)          (GtkTimeline *timeline);
62
 
  void (* paused)            (GtkTimeline *timeline);
63
 
 
64
 
  void (* frame)             (GtkTimeline *timeline,
65
 
                              gdouble     progress);
66
 
 
67
 
  void (* __gtk_reserved1) (void);
68
 
  void (* __gtk_reserved2) (void);
69
 
  void (* __gtk_reserved3) (void);
70
 
  void (* __gtk_reserved4) (void);
71
 
};
72
 
 
73
 
 
74
 
GType                   _gtk_timeline_get_type          (void) G_GNUC_CONST;
75
 
 
76
 
GtkTimeline *           _gtk_timeline_new               (guint                    duration);
77
 
GtkTimeline *           _gtk_timeline_new_for_screen    (guint                    duration,
78
 
                                                         GdkScreen               *screen);
79
 
 
80
 
void                    _gtk_timeline_start             (GtkTimeline             *timeline);
81
 
void                    _gtk_timeline_pause             (GtkTimeline             *timeline);
82
 
void                    _gtk_timeline_rewind            (GtkTimeline             *timeline);
83
 
 
84
 
gboolean                _gtk_timeline_is_running        (GtkTimeline             *timeline);
85
 
guint                   _gtk_timeline_get_elapsed_time  (GtkTimeline             *timeline);
86
 
 
87
 
guint                   _gtk_timeline_get_fps           (GtkTimeline             *timeline);
88
 
void                    _gtk_timeline_set_fps           (GtkTimeline             *timeline,
89
 
                                                         guint                    fps);
90
 
 
91
 
gboolean                _gtk_timeline_get_loop          (GtkTimeline             *timeline);
92
 
void                    _gtk_timeline_set_loop          (GtkTimeline             *timeline,
93
 
                                                         gboolean                 loop);
94
 
 
95
 
guint                   _gtk_timeline_get_duration      (GtkTimeline             *timeline);
96
 
void                    _gtk_timeline_set_duration      (GtkTimeline             *timeline,
97
 
                                                         guint                    duration);
98
 
 
99
 
GdkScreen *             _gtk_timeline_get_screen        (GtkTimeline             *timeline);
100
 
void                    _gtk_timeline_set_screen        (GtkTimeline             *timeline,
101
 
                                                         GdkScreen               *screen);
102
 
 
103
 
GtkTimelineDirection    _gtk_timeline_get_direction     (GtkTimeline             *timeline);
104
 
void                    _gtk_timeline_set_direction     (GtkTimeline             *timeline,
105
 
                                                         GtkTimelineDirection     direction);
106
 
 
107
 
gdouble                 _gtk_timeline_get_progress      (GtkTimeline             *timeline);
108
 
 
109
 
GtkTimelineProgressType _gtk_timeline_get_progress_type (GtkTimeline             *timeline);
110
 
void                    _gtk_timeline_set_progress_type (GtkTimeline             *timeline,
111
 
                                                         GtkTimelineProgressType  progress_type);
112
 
 
113
 
 
114
 
G_END_DECLS
115
 
 
116
 
#endif /* __GTK_TIMELINE_H__ */