diff options
author | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-02-03 22:03:26 +0800 |
---|---|---|
committer | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-02-03 23:00:33 +0800 |
commit | 7f58b46964f9ec00abfac3beb5356ab7fdb88cb4 (patch) | |
tree | ac6d96d576e9ff0aabd2230e96f6b3a0672c07bf /src | |
parent | 4b985ad97ad2cfee604394c5b7c6fb47d87cab39 (diff) | |
download | gsoc2013-empathy-7f58b46964f9ec00abfac3beb5356ab7fdb88cb4.tar gsoc2013-empathy-7f58b46964f9ec00abfac3beb5356ab7fdb88cb4.tar.gz gsoc2013-empathy-7f58b46964f9ec00abfac3beb5356ab7fdb88cb4.tar.bz2 gsoc2013-empathy-7f58b46964f9ec00abfac3beb5356ab7fdb88cb4.tar.lz gsoc2013-empathy-7f58b46964f9ec00abfac3beb5356ab7fdb88cb4.tar.xz gsoc2013-empathy-7f58b46964f9ec00abfac3beb5356ab7fdb88cb4.tar.zst gsoc2013-empathy-7f58b46964f9ec00abfac3beb5356ab7fdb88cb4.zip |
EmpathyCallWindowFullscreen -> EmpathyStreamedMediaFullscreen
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 2 | ||||
-rw-r--r-- | src/empathy-call-window-fullscreen.h | 77 | ||||
-rw-r--r-- | src/empathy-streamed-media-window-fullscreen.c (renamed from src/empathy-call-window-fullscreen.c) | 132 | ||||
-rw-r--r-- | src/empathy-streamed-media-window-fullscreen.h | 77 | ||||
-rw-r--r-- | src/empathy-streamed-media-window.c | 28 |
5 files changed, 158 insertions, 158 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index b77629038..72cc541df 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -102,7 +102,7 @@ empathy_debugger_SOURCES = \ empathy_handwritten_av_source = \ empathy-av.c \ - empathy-call-window-fullscreen.c empathy-call-window-fullscreen.h \ + empathy-streamed-media-window-fullscreen.c empathy-streamed-media-window-fullscreen.h \ empathy-streamed-media-window.c empathy-streamed-media-window.h \ $(NULL) diff --git a/src/empathy-call-window-fullscreen.h b/src/empathy-call-window-fullscreen.h deleted file mode 100644 index 967a52475..000000000 --- a/src/empathy-call-window-fullscreen.h +++ /dev/null @@ -1,77 +0,0 @@ -/* - * empathy-call-window-fullscreen.h - Header for EmpathyCallWindowFullscreen - * Copyright (C) 2009 Collabora Ltd. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef __EMPATHY_CALL_WINDOW_FULLSCREEN_H__ -#define __EMPATHY_CALL_WINDOW_FULLSCREEN_H__ - -#include <glib-object.h> -#include <gtk/gtk.h> - -#include "empathy-streamed-media-window.h" - -G_BEGIN_DECLS - -typedef struct _EmpathyCallWindowFullscreen EmpathyCallWindowFullscreen; -typedef struct _EmpathyCallWindowFullscreenClass - EmpathyCallWindowFullscreenClass; - -struct _EmpathyCallWindowFullscreenClass { - GObjectClass parent_class; -}; - -struct _EmpathyCallWindowFullscreen { - GObject parent; - gboolean is_fullscreen; - GtkWidget *leave_fullscreen_button; -}; - -GType empathy_call_window_fullscreen_get_type (void); - -/* TYPE MACROS */ -#define EMPATHY_TYPE_CALL_WINDOW_FULLSCREEN \ - (empathy_call_window_fullscreen_get_type ()) -#define EMPATHY_CALL_WINDOW_FULLSCREEN(obj) \ - (G_TYPE_CHECK_INSTANCE_CAST((obj), EMPATHY_TYPE_CALL_WINDOW_FULLSCREEN, \ - EmpathyCallWindowFullscreen)) -#define EMPATHY_CALL_WINDOW_FULLSCREEN_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_CAST((klass), EMPATHY_TYPE_CALL_WINDOW_FULLSCREEN, \ - EmpathyCallWindowClassFullscreen)) -#define EMPATHY_IS_CALL_WINDOW_FULLSCREEN(obj) \ - (G_TYPE_CHECK_INSTANCE_TYPE((obj), EMPATHY_TYPE_CALL_WINDOW_FULLSCREEN)) -#define EMPATHY_IS_CALL_WINDOW_FULLSCREEN_CLASS(klass) \ - (G_TYPE_CHECK_CLASS_TYPE((klass), EMPATHY_TYPE_CALL_WINDOW_FULLSCREEN)) -#define EMPATHY_CALL_WINDOW_FULLSCREEN_GET_CLASS(obj) \ - (G_TYPE_INSTANCE_GET_CLASS ((obj), EMPATHY_TYPE_CALL_WINDOW_FULLSCREEN, \ - EmpathyCallWindowFullscreenClass)) - -EmpathyCallWindowFullscreen *empathy_call_window_fullscreen_new ( - EmpathyStreamedMediaWindow *parent); - -void empathy_call_window_fullscreen_set_fullscreen ( - EmpathyCallWindowFullscreen *fs, - gboolean set_fullscreen); -void empathy_call_window_fullscreen_set_video_widget ( - EmpathyCallWindowFullscreen *fs, - GtkWidget *video_widget); -void empathy_call_window_fullscreen_show_popup ( - EmpathyCallWindowFullscreen *fs); - -G_END_DECLS - -#endif /* #ifndef __EMPATHY_CALL_WINDOW_FULLSCREEN_H__*/ diff --git a/src/empathy-call-window-fullscreen.c b/src/empathy-streamed-media-window-fullscreen.c index dad0b466c..caa34ffd1 100644 --- a/src/empathy-call-window-fullscreen.c +++ b/src/empathy-streamed-media-window-fullscreen.c @@ -1,5 +1,5 @@ /* - * empathy-call-window-fullscreen.c - Source for EmpathyCallWindowFullscreen + * empathy-streamed-media-window-fullscreen.c - Source for EmpathyStreamedMediaWindowFullscreen * Copyright (C) 2009 Collabora Ltd. * * Some code is based on the Totem Movie Player, especially @@ -22,7 +22,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "empathy-call-window-fullscreen.h" +#include "empathy-streamed-media-window-fullscreen.h" #include <gtk/gtk.h> @@ -33,14 +33,14 @@ be shown */ #define FULLSCREEN_POPUP_TIMEOUT 5 -G_DEFINE_TYPE (EmpathyCallWindowFullscreen, empathy_call_window_fullscreen, +G_DEFINE_TYPE (EmpathyStreamedMediaWindowFullscreen, empathy_streamed_media_window_fullscreen, G_TYPE_OBJECT) /* private structure */ -typedef struct _EmpathyCallWindowFullscreenPriv - EmpathyCallWindowFullscreenPriv; +typedef struct _EmpathyStreamedMediaWindowFullscreenPriv + EmpathyStreamedMediaWindowFullscreenPriv; -struct _EmpathyCallWindowFullscreenPriv +struct _EmpathyStreamedMediaWindowFullscreenPriv { EmpathyStreamedMediaWindow *parent_window; @@ -53,21 +53,21 @@ struct _EmpathyCallWindowFullscreenPriv }; #define GET_PRIV(o) \ - (G_TYPE_INSTANCE_GET_PRIVATE ((o), EMPATHY_TYPE_CALL_WINDOW_FULLSCREEN, \ - EmpathyCallWindowFullscreenPriv)) + (G_TYPE_INSTANCE_GET_PRIVATE ((o), EMPATHY_TYPE_STREAMED_MEDIA_WINDOW_FULLSCREEN, \ + EmpathyStreamedMediaWindowFullscreenPriv)) -static void empathy_call_window_fullscreen_dispose (GObject *object); -static void empathy_call_window_fullscreen_finalize (GObject *object); +static void empathy_streamed_media_window_fullscreen_dispose (GObject *object); +static void empathy_streamed_media_window_fullscreen_finalize (GObject *object); -static gboolean empathy_call_window_fullscreen_hide_popup ( - EmpathyCallWindowFullscreen *fs); +static gboolean empathy_streamed_media_window_fullscreen_hide_popup ( + EmpathyStreamedMediaWindowFullscreen *fs); static void -empathy_call_window_fullscreen_set_cursor_visible ( - EmpathyCallWindowFullscreen *fs, +empathy_streamed_media_window_fullscreen_set_cursor_visible ( + EmpathyStreamedMediaWindowFullscreen *fs, gboolean show_cursor) { - EmpathyCallWindowFullscreenPriv *priv = GET_PRIV (fs); + EmpathyStreamedMediaWindowFullscreenPriv *priv = GET_PRIV (fs); GdkWindow *window; if (priv->video_widget == NULL) @@ -82,23 +82,23 @@ empathy_call_window_fullscreen_set_cursor_visible ( } static void -empathy_call_window_fullscreen_add_popup_timeout ( - EmpathyCallWindowFullscreen *self) +empathy_streamed_media_window_fullscreen_add_popup_timeout ( + EmpathyStreamedMediaWindowFullscreen *self) { - EmpathyCallWindowFullscreenPriv *priv = GET_PRIV (self); + EmpathyStreamedMediaWindowFullscreenPriv *priv = GET_PRIV (self); if (priv->popup_timeout == 0) { priv->popup_timeout = g_timeout_add_seconds (FULLSCREEN_POPUP_TIMEOUT, - (GSourceFunc) empathy_call_window_fullscreen_hide_popup, self); + (GSourceFunc) empathy_streamed_media_window_fullscreen_hide_popup, self); } } static void -empathy_call_window_fullscreen_remove_popup_timeout ( - EmpathyCallWindowFullscreen *self) +empathy_streamed_media_window_fullscreen_remove_popup_timeout ( + EmpathyStreamedMediaWindowFullscreen *self) { - EmpathyCallWindowFullscreenPriv *priv = GET_PRIV (self); + EmpathyStreamedMediaWindowFullscreenPriv *priv = GET_PRIV (self); if (priv->popup_timeout != 0) { @@ -108,12 +108,12 @@ empathy_call_window_fullscreen_remove_popup_timeout ( } void -empathy_call_window_fullscreen_show_popup (EmpathyCallWindowFullscreen *self) +empathy_streamed_media_window_fullscreen_show_popup (EmpathyStreamedMediaWindowFullscreen *self) { gint leave_fullscreen_width, leave_fullscreen_height; GdkScreen *screen; GdkRectangle fullscreen_rect; - EmpathyCallWindowFullscreenPriv *priv = GET_PRIV (self); + EmpathyStreamedMediaWindowFullscreenPriv *priv = GET_PRIV (self); g_assert (self->is_fullscreen); @@ -127,7 +127,7 @@ empathy_call_window_fullscreen_show_popup (EmpathyCallWindowFullscreen *self) priv->popup_creation_in_progress = TRUE; - empathy_call_window_fullscreen_set_cursor_visible (self, TRUE); + empathy_streamed_media_window_fullscreen_set_cursor_visible (self, TRUE); /* Obtaining the screen rectangle */ screen = gtk_window_get_screen (GTK_WINDOW (priv->parent_window)); @@ -157,31 +157,31 @@ empathy_call_window_fullscreen_show_popup (EmpathyCallWindowFullscreen *self) } gtk_widget_show_all (priv->leave_fullscreen_popup); - empathy_call_window_fullscreen_add_popup_timeout (self); + empathy_streamed_media_window_fullscreen_add_popup_timeout (self); priv->popup_creation_in_progress = FALSE; } static gboolean -empathy_call_window_fullscreen_hide_popup (EmpathyCallWindowFullscreen *fs) +empathy_streamed_media_window_fullscreen_hide_popup (EmpathyStreamedMediaWindowFullscreen *fs) { - EmpathyCallWindowFullscreenPriv *priv = GET_PRIV (fs); + EmpathyStreamedMediaWindowFullscreenPriv *priv = GET_PRIV (fs); if (priv->video_widget == NULL || !fs->is_fullscreen) return TRUE; gtk_widget_hide (priv->leave_fullscreen_popup); - empathy_call_window_fullscreen_remove_popup_timeout (fs); + empathy_streamed_media_window_fullscreen_remove_popup_timeout (fs); - empathy_call_window_fullscreen_set_cursor_visible (fs, FALSE); + empathy_streamed_media_window_fullscreen_set_cursor_visible (fs, FALSE); return FALSE; } static void -empathy_call_window_fullscreen_init (EmpathyCallWindowFullscreen *self) +empathy_streamed_media_window_fullscreen_init (EmpathyStreamedMediaWindowFullscreen *self) { - EmpathyCallWindowFullscreenPriv *priv = GET_PRIV (self); + EmpathyStreamedMediaWindowFullscreenPriv *priv = GET_PRIV (self); GtkBuilder *gui; gchar *filename; @@ -198,22 +198,22 @@ empathy_call_window_fullscreen_init (EmpathyCallWindowFullscreen *self) } static void -empathy_call_window_fullscreen_class_init ( - EmpathyCallWindowFullscreenClass *klass) +empathy_streamed_media_window_fullscreen_class_init ( + EmpathyStreamedMediaWindowFullscreenClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); - g_type_class_add_private (klass, sizeof (EmpathyCallWindowFullscreenPriv)); + g_type_class_add_private (klass, sizeof (EmpathyStreamedMediaWindowFullscreenPriv)); - object_class->dispose = empathy_call_window_fullscreen_dispose; - object_class->finalize = empathy_call_window_fullscreen_finalize; + object_class->dispose = empathy_streamed_media_window_fullscreen_dispose; + object_class->finalize = empathy_streamed_media_window_fullscreen_finalize; } void -empathy_call_window_fullscreen_dispose (GObject *object) +empathy_streamed_media_window_fullscreen_dispose (GObject *object) { - EmpathyCallWindowFullscreen *self = EMPATHY_CALL_WINDOW_FULLSCREEN (object); - EmpathyCallWindowFullscreenPriv *priv = GET_PRIV (self); + EmpathyStreamedMediaWindowFullscreen *self = EMPATHY_STREAMED_MEDIA_WINDOW_FULLSCREEN (object); + EmpathyStreamedMediaWindowFullscreenPriv *priv = GET_PRIV (self); if (priv->dispose_has_run) return; @@ -224,29 +224,29 @@ empathy_call_window_fullscreen_dispose (GObject *object) gtk_widget_destroy (priv->leave_fullscreen_popup); priv->leave_fullscreen_popup = NULL; - if (G_OBJECT_CLASS (empathy_call_window_fullscreen_parent_class)->dispose) + if (G_OBJECT_CLASS (empathy_streamed_media_window_fullscreen_parent_class)->dispose) { G_OBJECT_CLASS ( - empathy_call_window_fullscreen_parent_class)->dispose (object); + empathy_streamed_media_window_fullscreen_parent_class)->dispose (object); } } void -empathy_call_window_fullscreen_finalize (GObject *object) +empathy_streamed_media_window_fullscreen_finalize (GObject *object) { - EmpathyCallWindowFullscreen *self = EMPATHY_CALL_WINDOW_FULLSCREEN (object); + EmpathyStreamedMediaWindowFullscreen *self = EMPATHY_STREAMED_MEDIA_WINDOW_FULLSCREEN (object); - empathy_call_window_fullscreen_remove_popup_timeout (self); + empathy_streamed_media_window_fullscreen_remove_popup_timeout (self); G_OBJECT_CLASS ( - empathy_call_window_fullscreen_parent_class)->finalize (object); + empathy_streamed_media_window_fullscreen_parent_class)->finalize (object); } static void -empathy_call_window_fullscreen_parent_window_notify (GtkWidget *parent_window, - GParamSpec *property, EmpathyCallWindowFullscreen *fs) +empathy_streamed_media_window_fullscreen_parent_window_notify (GtkWidget *parent_window, + GParamSpec *property, EmpathyStreamedMediaWindowFullscreen *fs) { - EmpathyCallWindowFullscreenPriv *priv = GET_PRIV (fs); + EmpathyStreamedMediaWindowFullscreenPriv *priv = GET_PRIV (fs); if (!fs->is_fullscreen) return; @@ -254,54 +254,54 @@ empathy_call_window_fullscreen_parent_window_notify (GtkWidget *parent_window, if (parent_window == GTK_WIDGET (priv->parent_window) && !gtk_window_is_active (GTK_WINDOW (parent_window))) { - empathy_call_window_fullscreen_hide_popup (fs); - empathy_call_window_fullscreen_set_cursor_visible (fs, TRUE); + empathy_streamed_media_window_fullscreen_hide_popup (fs); + empathy_streamed_media_window_fullscreen_set_cursor_visible (fs, TRUE); } } -EmpathyCallWindowFullscreen * -empathy_call_window_fullscreen_new (EmpathyStreamedMediaWindow *parent_window) +EmpathyStreamedMediaWindowFullscreen * +empathy_streamed_media_window_fullscreen_new (EmpathyStreamedMediaWindow *parent_window) { - EmpathyCallWindowFullscreen *self = EMPATHY_CALL_WINDOW_FULLSCREEN ( - g_object_new (EMPATHY_TYPE_CALL_WINDOW_FULLSCREEN, NULL)); - EmpathyCallWindowFullscreenPriv *priv = GET_PRIV (self); + EmpathyStreamedMediaWindowFullscreen *self = EMPATHY_STREAMED_MEDIA_WINDOW_FULLSCREEN ( + g_object_new (EMPATHY_TYPE_STREAMED_MEDIA_WINDOW_FULLSCREEN, NULL)); + EmpathyStreamedMediaWindowFullscreenPriv *priv = GET_PRIV (self); priv->parent_window = parent_window; g_signal_connect (G_OBJECT (priv->parent_window), "notify::is-active", - G_CALLBACK (empathy_call_window_fullscreen_parent_window_notify), self); + G_CALLBACK (empathy_streamed_media_window_fullscreen_parent_window_notify), self); return self; } void -empathy_call_window_fullscreen_set_fullscreen (EmpathyCallWindowFullscreen *fs, +empathy_streamed_media_window_fullscreen_set_fullscreen (EmpathyStreamedMediaWindowFullscreen *fs, gboolean set_fullscreen) { if (set_fullscreen) - empathy_call_window_fullscreen_remove_popup_timeout (fs); + empathy_streamed_media_window_fullscreen_remove_popup_timeout (fs); else - empathy_call_window_fullscreen_hide_popup (fs); + empathy_streamed_media_window_fullscreen_hide_popup (fs); - empathy_call_window_fullscreen_set_cursor_visible (fs, !set_fullscreen); + empathy_streamed_media_window_fullscreen_set_cursor_visible (fs, !set_fullscreen); fs->is_fullscreen = set_fullscreen; } static void video_widget_destroy_cb (GtkWidget *widget, - EmpathyCallWindowFullscreen *self) + EmpathyStreamedMediaWindowFullscreen *self) { - EmpathyCallWindowFullscreenPriv *priv = GET_PRIV (self); + EmpathyStreamedMediaWindowFullscreenPriv *priv = GET_PRIV (self); priv->video_widget = NULL; } void -empathy_call_window_fullscreen_set_video_widget ( - EmpathyCallWindowFullscreen *fs, +empathy_streamed_media_window_fullscreen_set_video_widget ( + EmpathyStreamedMediaWindowFullscreen *fs, GtkWidget *video_widget) { - EmpathyCallWindowFullscreenPriv *priv = GET_PRIV (fs); + EmpathyStreamedMediaWindowFullscreenPriv *priv = GET_PRIV (fs); priv->video_widget = video_widget; tp_g_signal_connect_object (video_widget, "destroy", diff --git a/src/empathy-streamed-media-window-fullscreen.h b/src/empathy-streamed-media-window-fullscreen.h new file mode 100644 index 000000000..bdb95fb0b --- /dev/null +++ b/src/empathy-streamed-media-window-fullscreen.h @@ -0,0 +1,77 @@ +/* + * empathy-streamed-media-window-fullscreen.h - Header for EmpathyStreamedMediaWindowFullscreen + * Copyright (C) 2009 Collabora Ltd. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef __EMPATHY_STREAMED_MEDIA_WINDOW_FULLSCREEN_H__ +#define __EMPATHY_STREAMED_MEDIA_WINDOW_FULLSCREEN_H__ + +#include <glib-object.h> +#include <gtk/gtk.h> + +#include "empathy-streamed-media-window.h" + +G_BEGIN_DECLS + +typedef struct _EmpathyStreamedMediaWindowFullscreen EmpathyStreamedMediaWindowFullscreen; +typedef struct _EmpathyStreamedMediaWindowFullscreenClass + EmpathyStreamedMediaWindowFullscreenClass; + +struct _EmpathyStreamedMediaWindowFullscreenClass { + GObjectClass parent_class; +}; + +struct _EmpathyStreamedMediaWindowFullscreen { + GObject parent; + gboolean is_fullscreen; + GtkWidget *leave_fullscreen_button; +}; + +GType empathy_streamed_media_window_fullscreen_get_type (void); + +/* TYPE MACROS */ +#define EMPATHY_TYPE_STREAMED_MEDIA_WINDOW_FULLSCREEN \ + (empathy_streamed_media_window_fullscreen_get_type ()) +#define EMPATHY_STREAMED_MEDIA_WINDOW_FULLSCREEN(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj), EMPATHY_TYPE_STREAMED_MEDIA_WINDOW_FULLSCREEN, \ + EmpathyStreamedMediaWindowFullscreen)) +#define EMPATHY_STREAMED_MEDIA_WINDOW_FULLSCREEN_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass), EMPATHY_TYPE_STREAMED_MEDIA_WINDOW_FULLSCREEN, \ + EmpathyStreamedMediaWindowClassFullscreen)) +#define EMPATHY_IS_STREAMED_MEDIA_WINDOW_FULLSCREEN(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj), EMPATHY_TYPE_STREAMED_MEDIA_WINDOW_FULLSCREEN)) +#define EMPATHY_IS_STREAMED_MEDIA_WINDOW_FULLSCREEN_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE((klass), EMPATHY_TYPE_STREAMED_MEDIA_WINDOW_FULLSCREEN)) +#define EMPATHY_STREAMED_MEDIA_WINDOW_FULLSCREEN_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS ((obj), EMPATHY_TYPE_STREAMED_MEDIA_WINDOW_FULLSCREEN, \ + EmpathyStreamedMediaWindowFullscreenClass)) + +EmpathyStreamedMediaWindowFullscreen *empathy_streamed_media_window_fullscreen_new ( + EmpathyStreamedMediaWindow *parent); + +void empathy_streamed_media_window_fullscreen_set_fullscreen ( + EmpathyStreamedMediaWindowFullscreen *fs, + gboolean set_fullscreen); +void empathy_streamed_media_window_fullscreen_set_video_widget ( + EmpathyStreamedMediaWindowFullscreen *fs, + GtkWidget *video_widget); +void empathy_streamed_media_window_fullscreen_show_popup ( + EmpathyStreamedMediaWindowFullscreen *fs); + +G_END_DECLS + +#endif /* #ifndef __EMPATHY_STREAMED_MEDIA_WINDOW_FULLSCREEN_H__*/ diff --git a/src/empathy-streamed-media-window.c b/src/empathy-streamed-media-window.c index 7ccca4c1d..c324d45c0 100644 --- a/src/empathy-streamed-media-window.c +++ b/src/empathy-streamed-media-window.c @@ -52,7 +52,7 @@ #include <libempathy/empathy-debug.h> #include "empathy-streamed-media-window.h" -#include "empathy-call-window-fullscreen.h" +#include "empathy-streamed-media-window-fullscreen.h" #include "ev-sidebar.h" #define BUTTON_ID "empathy-call-dtmf-button-id" @@ -207,7 +207,7 @@ struct _EmpathyStreamedMediaWindowPriv gboolean sending_video; CameraState camera_state; - EmpathyCallWindowFullscreen *fullscreen; + EmpathyStreamedMediaWindowFullscreen *fullscreen; gboolean is_fullscreen; /* Those fields represent the state of the window before it actually was in @@ -255,10 +255,10 @@ static void empathy_streamed_media_window_sidebar_shown_cb (EvSidebar *sidebar, static void empathy_streamed_media_window_hangup_cb (gpointer object, EmpathyStreamedMediaWindow *window); -static void empathy_call_window_fullscreen_cb (gpointer object, +static void empathy_streamed_media_window_fullscreen_cb (gpointer object, EmpathyStreamedMediaWindow *window); -static void empathy_call_window_fullscreen_toggle (EmpathyStreamedMediaWindow *window); +static void empathy_streamed_media_window_fullscreen_toggle (EmpathyStreamedMediaWindow *window); static gboolean empathy_streamed_media_window_video_button_press_cb ( GtkWidget *video_output, GdkEventButton *event, EmpathyStreamedMediaWindow *window); @@ -1078,7 +1078,7 @@ empathy_streamed_media_window_init (EmpathyStreamedMediaWindow *self) "menuredial", "activate", empathy_streamed_media_window_redial_cb, "redial", "clicked", empathy_streamed_media_window_redial_cb, "microphone", "toggled", empathy_streamed_media_window_mic_toggled_cb, - "menufullscreen", "activate", empathy_call_window_fullscreen_cb, + "menufullscreen", "activate", empathy_streamed_media_window_fullscreen_cb, "camera_off", "toggled", tool_button_camera_off_toggled_cb, "camera_preview", "toggled", tool_button_camera_preview_toggled_cb, "camera_on", "toggled", tool_button_camera_on_toggled_cb, @@ -1202,11 +1202,11 @@ empathy_streamed_media_window_init (EmpathyStreamedMediaWindow *self) gtk_widget_hide (priv->sidebar); - priv->fullscreen = empathy_call_window_fullscreen_new (self); - empathy_call_window_fullscreen_set_video_widget (priv->fullscreen, + priv->fullscreen = empathy_streamed_media_window_fullscreen_new (self); + empathy_streamed_media_window_fullscreen_set_video_widget (priv->fullscreen, priv->video_output); g_signal_connect (G_OBJECT (priv->fullscreen->leave_fullscreen_button), - "clicked", G_CALLBACK (empathy_call_window_fullscreen_cb), self); + "clicked", G_CALLBACK (empathy_streamed_media_window_fullscreen_cb), self); g_signal_connect (G_OBJECT (self), "realize", G_CALLBACK (empathy_streamed_media_window_realized_cb), self); @@ -2993,7 +2993,7 @@ empathy_streamed_media_window_state_event_cb (GtkWidget *widget, disconnect_video_output_motion_handler (window); } - empathy_call_window_fullscreen_set_fullscreen (priv->fullscreen, + empathy_streamed_media_window_fullscreen_set_fullscreen (priv->fullscreen, set_fullscreen); show_controls (window, set_fullscreen); show_borders (window, set_fullscreen); @@ -3181,14 +3181,14 @@ empathy_streamed_media_window_redial_cb (gpointer object, } static void -empathy_call_window_fullscreen_cb (gpointer object, +empathy_streamed_media_window_fullscreen_cb (gpointer object, EmpathyStreamedMediaWindow *window) { - empathy_call_window_fullscreen_toggle (window); + empathy_streamed_media_window_fullscreen_toggle (window); } static void -empathy_call_window_fullscreen_toggle (EmpathyStreamedMediaWindow *window) +empathy_streamed_media_window_fullscreen_toggle (EmpathyStreamedMediaWindow *window) { EmpathyStreamedMediaWindowPriv *priv = GET_PRIV (window); @@ -3221,7 +3221,7 @@ empathy_streamed_media_window_key_press_cb (GtkWidget *video_output, { /* Since we are in fullscreen mode, toggling will bring us back to normal mode. */ - empathy_call_window_fullscreen_toggle (window); + empathy_streamed_media_window_fullscreen_toggle (window); return TRUE; } @@ -3236,7 +3236,7 @@ empathy_streamed_media_window_video_output_motion_notify (GtkWidget *widget, if (priv->is_fullscreen) { - empathy_call_window_fullscreen_show_popup (priv->fullscreen); + empathy_streamed_media_window_fullscreen_show_popup (priv->fullscreen); return TRUE; } return FALSE; |