diff options
author | Jonathan Tellier <jonathan.tellier@gmail.com> | 2009-05-21 01:49:02 +0800 |
---|---|---|
committer | jtellier <jonathan.tellier@collabora.co.uk> | 2009-05-26 22:47:22 +0800 |
commit | 72720c392da5917088cc95a5fc5dd4e7ce56a4d1 (patch) | |
tree | b5d7195a4fa484ec7887d61bc91fd72d88f294ed /libempathy-gtk | |
parent | fdd5d6bcf95255cad8f4573d262abe1532a0f912 (diff) | |
download | gsoc2013-empathy-72720c392da5917088cc95a5fc5dd4e7ce56a4d1.tar gsoc2013-empathy-72720c392da5917088cc95a5fc5dd4e7ce56a4d1.tar.gz gsoc2013-empathy-72720c392da5917088cc95a5fc5dd4e7ce56a4d1.tar.bz2 gsoc2013-empathy-72720c392da5917088cc95a5fc5dd4e7ce56a4d1.tar.lz gsoc2013-empathy-72720c392da5917088cc95a5fc5dd4e7ce56a4d1.tar.xz gsoc2013-empathy-72720c392da5917088cc95a5fc5dd4e7ce56a4d1.tar.zst gsoc2013-empathy-72720c392da5917088cc95a5fc5dd4e7ce56a4d1.zip |
When no video is received or sent we show contacts' avatars instead of showing
black widgets.
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-video-widget.c | 4 | ||||
-rw-r--r-- | libempathy-gtk/empathy-video-widget.h | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-video-widget.c b/libempathy-gtk/empathy-video-widget.c index 4c7bee9db..7647b845f 100644 --- a/libempathy-gtk/empathy-video-widget.c +++ b/libempathy-gtk/empathy-video-widget.c @@ -263,14 +263,14 @@ empathy_video_widget_class_init ( param_spec = g_param_spec_int ("min-width", "min-width", "Minimal width of the widget", - 0, G_MAXINT, 320, + 0, G_MAXINT, EMPATHY_VIDEO_WIDGET_DEFAULT_WIDTH, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); g_object_class_install_property (object_class, PROP_MIN_WIDTH, param_spec); param_spec = g_param_spec_int ("min-height", "min-height", "Minimal height of the widget", - 0, G_MAXINT, 240, + 0, G_MAXINT, EMPATHY_VIDEO_WIDGET_DEFAULT_HEIGHT, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); g_object_class_install_property (object_class, PROP_MIN_HEIGHT, param_spec); diff --git a/libempathy-gtk/empathy-video-widget.h b/libempathy-gtk/empathy-video-widget.h index da17a6f47..cfdd0354c 100644 --- a/libempathy-gtk/empathy-video-widget.h +++ b/libempathy-gtk/empathy-video-widget.h @@ -21,6 +21,9 @@ #ifndef __EMPATHY_VIDEO_WIDGET_H__ #define __EMPATHY_VIDEO_WIDGET_H__ +#define EMPATHY_VIDEO_WIDGET_DEFAULT_WIDTH 320 +#define EMPATHY_VIDEO_WIDGET_DEFAULT_HEIGHT 240 + #include <glib-object.h> #include <gst/gst.h> #include <gtk/gtk.h> |