[totem/wip/hadess/bvw-template] backend: Fix declaration in the middle of a function
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/wip/hadess/bvw-template] backend: Fix declaration in the middle of a function
- Date: Wed, 9 Feb 2022 16:48:21 +0000 (UTC)
commit 9663d27fa21fd9f48bd88e4b38e7962472f581ac
Author: Bastien Nocera <hadess hadess net>
Date: Wed Feb 9 16:42:03 2022 +0100
backend: Fix declaration in the middle of a function
src/backend/bacon-video-widget.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/backend/bacon-video-widget.c b/src/backend/bacon-video-widget.c
index ff2d2d555..08bbab0ce 100644
--- a/src/backend/bacon-video-widget.c
+++ b/src/backend/bacon-video-widget.c
@@ -548,6 +548,7 @@ bacon_video_widget_class_init (BaconVideoWidgetClass * klass)
{
GObjectClass *object_class;
GtkWidgetClass *widget_class;
+ GtkIconTheme *default_theme;
object_class = (GObjectClass *) klass;
widget_class = (GtkWidgetClass *) klass;
@@ -925,9 +926,10 @@ bacon_video_widget_class_init (BaconVideoWidgetClass * klass)
g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
g_resources_register (_bvw_get_resource ());
- GtkIconTheme *default_theme;
+
default_theme = gtk_icon_theme_get_default ();
gtk_icon_theme_add_resource_path (default_theme, "/org/gnome/totem/bvw");
+
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/totem/bvw/bacon-video-widget.ui");
gtk_widget_class_bind_template_child (widget_class, BaconVideoWidget, stack);
gtk_widget_class_bind_template_child (widget_class, BaconVideoWidget, audio_only);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]