~ubuntu-branches/ubuntu/precise/empathy/precise-proposed-201205180810

« back to all changes in this revision

Viewing changes to src/empathy-video-widget.c

  • Committer: Bazaar Package Importer
  • Author(s): Brian Curtis, Brian Curtis, Ken VanDine
  • Date: 2011-06-01 10:35:24 UTC
  • mfrom: (1.1.70 upstream) (6.3.44 experimental)
  • Revision ID: james.westby@ubuntu.com-20110601103524-wx3wgp71394730jt
Tags: 3.1.1-1ubuntu1
[ Brian Curtis ]
* Merge with Debian experimental, remaining Ubuntu changes:
* debian/control:
  - Drop geoclue/mapping build-depends (they are in Universe)
  - Add Vcz-Bzr link
  - Add Suggests on telepathy-idle
  - Bump telepathy-butterfly, telepathy-haze to recommends
  - Don't recommend the freedesktop sound theme we have an ubuntu one
  - Add build depend for libunity-dev
* debian/rules:
  - Use autoreconf.mk
  - Disable map and location
* debian/empathy.install:
  - Install message indicator configuration
* debian/indicators/empathy:
  - Message indicator configuration
* debian/patches/01_lpi.patch:
  - Add Launchpad integration
* debian/patches/10_use_notify_osd_icons.patch:
  - Use the notify-osd image for new messages
* debian/patches/34_start_raised_execpt_in_session.patch
  - If not started with the session, we should always raise
* debian/patches/36_chat_window_default_size.patch:
  - Make the default chat window size larger
* debian/patches/37_facebook_default.patch:
  - Make facebook the default chat account type
* debian/patches/38_lp_569289.patch
  - Set freenode as default IRC network for new IRC accounts 
* debian/patches/41_unity_launcher_progress.patch
  - Display file transfer progress in the unity launcher

[ Ken VanDine ]
* debian/control
  - build depend on libgcr-3-dev instead of libgcr-dev
  - dropped build depends for libindicate, we will use telepathy-indicator
  - Depend on dconf-gsettings-backend | gsettings-backend
  - Added a Recommends for telepathy-indicator
* +debian/empathy.gsettings-override
  - Added an override for notifications-focus
* debian/patches/series
  - commented out 23_idomessagedialog_for_voip_and_ft.patch, until ido has 
    been ported to gtk3

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
empathy_video_widget_init (EmpathyVideoWidget *obj)
84
84
{
85
85
  EmpathyVideoWidgetPriv *priv = GET_PRIV (obj);
86
 
  GdkColor black;
 
86
  GdkRGBA black;
87
87
 
88
88
  priv->lock = g_mutex_new ();
89
89
 
92
92
    G_CALLBACK (empathy_video_widget_element_added_cb),
93
93
    obj);
94
94
 
95
 
  if (gdk_color_parse ("Black", &black))
96
 
    gtk_widget_modify_bg (GTK_WIDGET (obj), GTK_STATE_NORMAL,
97
 
      &black);
 
95
  if (gdk_rgba_parse (&black, "Black"))
 
96
    gtk_widget_override_background_color (GTK_WIDGET (obj), 0, &black);
98
97
 
99
98
  gtk_widget_set_double_buffered (GTK_WIDGET (obj), FALSE);
100
99
}
170
169
static void empathy_video_widget_dispose (GObject *object);
171
170
static void empathy_video_widget_finalize (GObject *object);
172
171
 
173
 
static gboolean empathy_video_widget_expose_event (GtkWidget *widget,
174
 
  GdkEventExpose *event);
 
172
 
 
173
static gboolean empathy_video_widget_draw (GtkWidget *widget,
 
174
  cairo_t *cr);
 
175
 
175
176
static void
176
177
empathy_video_widget_element_set_sink_properties (EmpathyVideoWidget *self);
177
178
 
258
259
  object_class->set_property = empathy_video_widget_set_property;
259
260
  object_class->get_property = empathy_video_widget_get_property;
260
261
 
261
 
  widget_class->expose_event = empathy_video_widget_expose_event;
 
262
  widget_class->draw = empathy_video_widget_draw;
262
263
 
263
264
  param_spec = g_param_spec_object ("gst-element",
264
265
    "gst-element", "The underlaying gstreamer element",
421
422
}
422
423
 
423
424
static gboolean
424
 
empathy_video_widget_expose_event (GtkWidget *widget, GdkEventExpose *event)
 
425
empathy_video_widget_draw (GtkWidget *widget,
 
426
    cairo_t *cr)
425
427
{
426
428
  EmpathyVideoWidget *self = EMPATHY_VIDEO_WIDGET (widget);
427
429
  EmpathyVideoWidgetPriv *priv = GET_PRIV (self);
428
430
  GtkAllocation allocation;
429
431
 
430
 
  if (event != NULL && event->count > 0)
431
 
    return TRUE;
432
 
 
433
432
  if (priv->overlay == NULL)
434
433
    {
435
434
      gtk_widget_get_allocation (widget, &allocation);
436
 
      gdk_window_clear_area (gtk_widget_get_window (widget), 0, 0,
437
 
                             allocation.width, allocation.height);
 
435
 
 
436
      gtk_render_frame (gtk_widget_get_style_context (widget), cr,
 
437
          0, 0,
 
438
          gtk_widget_get_allocated_width (widget),
 
439
          gtk_widget_get_allocated_height (widget));
438
440
      return TRUE;
439
441
    }
440
442