~timchen119/ubuntu/trusty/gnome-bluetooth/lp1035431

« back to all changes in this revision

Viewing changes to moblin/moblin-copy-n-paste/mux-cell-renderer-text.c

  • Committer: Bazaar Package Importer
  • Author(s): Emilio Pozuelo Monfort
  • Date: 2011-02-27 15:45:22 UTC
  • mfrom: (1.3.2 upstream)
  • mto: (2.2.3 experimental) (1.5.1)
  • mto: This revision was merged to the branch mainline in revision 53.
  • Revision ID: james.westby@ubuntu.com-20110227154522-dnnoqasv5v3mv42a
Tags: upstream-2.91.5
ImportĀ upstreamĀ versionĀ 2.91.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
static guint signals[LAST_SIGNAL] = { 0 };
13
13
 
14
14
static gboolean
15
 
contains (GdkRectangle *rect, gint x, gint y)
 
15
contains (const GdkRectangle *rect, gint x, gint y)
16
16
{
17
17
  return (rect->x + rect->width) > x && rect->x <= x &&
18
18
         (rect->y + rect->height) > y && rect->y <= y;
23
23
                                 GdkEvent            *event,
24
24
                                 GtkWidget           *widget,
25
25
                                 const gchar         *path,
26
 
                                 GdkRectangle        *bg_area,
27
 
                                 GdkRectangle        *cell_area,
 
26
                                 const GdkRectangle  *bg_area,
 
27
                                 const GdkRectangle  *cell_area,
28
28
                                 GtkCellRendererState flags)
29
29
{
30
30
  gdouble x, y;
43
43
 
44
44
static void
45
45
mux_cell_renderer_text_render (GtkCellRenderer     *cell,
46
 
                               GdkDrawable         *window,
 
46
                               cairo_t             *cr,
47
47
                               GtkWidget           *widget,
48
 
                               GdkRectangle        *bg_area,
49
 
                               GdkRectangle        *cell_area,
50
 
                               GdkRectangle        *expose_area,
 
48
                               const GdkRectangle  *bg_area,
 
49
                               const GdkRectangle  *cell_area,
51
50
                               GtkCellRendererState flags)
52
51
{
53
52
  GTK_CELL_RENDERER_CLASS (mux_cell_renderer_text_parent_class)->render (cell,
54
 
                                                                         window,
 
53
                                                                         cr,
55
54
                                                                         widget,
56
55
                                                                         bg_area,
57
56
                                                                         cell_area,
58
 
                                                                         expose_area,
59
57
                                                                         GTK_CELL_RENDERER_SELECTED);
60
58
}
61
59
 
82
80
static void
83
81
mux_cell_renderer_text_init (MuxCellRendererText *self)
84
82
{
85
 
  GTK_CELL_RENDERER (self)->mode = GTK_CELL_RENDERER_MODE_ACTIVATABLE;
 
83
  g_object_set (self, "mode", GTK_CELL_RENDERER_MODE_ACTIVATABLE, NULL);
86
84
}
87
85
 
88
86
GtkCellRenderer*