summaryrefslogtreecommitdiff
path: root/src/plugins/properties
diff options
context:
space:
mode:
authorKrifa75 <yahiaoui.fakhri@gmail.com>2022-11-23 20:54:38 +0100
committerBastien Nocera <hadess@hadess.net>2022-11-23 21:21:23 +0100
commit165a9714d9a13476e21ef012fe0a4b0f0dd89094 (patch)
treecb131511d1463b6dd5f808f590d9bf9da8590243 /src/plugins/properties
parentda045f699ffe2ff13558db9270d242bebb037785 (diff)
downloadtotem-165a9714d9a13476e21ef012fe0a4b0f0dd89094.tar.gz
properties: Use HdyWindow instead of GtkDialog
GtkDialog has been deprecated in Gtk4 so we stop using it.
Diffstat (limited to 'src/plugins/properties')
-rw-r--r--src/plugins/properties/bacon-video-widget-properties.c4
-rw-r--r--src/plugins/properties/bacon-video-widget-properties.h2
-rw-r--r--src/plugins/properties/properties.ui12
3 files changed, 12 insertions, 6 deletions
diff --git a/src/plugins/properties/bacon-video-widget-properties.c b/src/plugins/properties/bacon-video-widget-properties.c
index 53e15d2d7..e29daff24 100644
--- a/src/plugins/properties/bacon-video-widget-properties.c
+++ b/src/plugins/properties/bacon-video-widget-properties.c
@@ -36,7 +36,7 @@ static void bacon_video_widget_properties_set_property (GObject *object,
static void bacon_video_widget_properties_set_label (GtkLabel *label, const char *text);
struct _BaconVideoWidgetProperties {
- GtkDialog parent;
+ HdyWindow parent;
/* General */
GtkLabel *title;
@@ -67,7 +67,7 @@ struct _BaconVideoWidgetProperties {
int time;
};
-G_DEFINE_TYPE (BaconVideoWidgetProperties, bacon_video_widget_properties, GTK_TYPE_DIALOG)
+G_DEFINE_TYPE (BaconVideoWidgetProperties, bacon_video_widget_properties, HDY_TYPE_WINDOW)
enum {
PROP_0,
diff --git a/src/plugins/properties/bacon-video-widget-properties.h b/src/plugins/properties/bacon-video-widget-properties.h
index 8abbac51e..a44c7417e 100644
--- a/src/plugins/properties/bacon-video-widget-properties.h
+++ b/src/plugins/properties/bacon-video-widget-properties.h
@@ -25,7 +25,7 @@
#include <handy.h>
#define BACON_TYPE_VIDEO_WIDGET_PROPERTIES (bacon_video_widget_properties_get_type ())
-G_DECLARE_FINAL_TYPE(BaconVideoWidgetProperties, bacon_video_widget_properties, BACON, VIDEO_WIDGET_PROPERTIES, GtkDialog)
+G_DECLARE_FINAL_TYPE(BaconVideoWidgetProperties, bacon_video_widget_properties, BACON, VIDEO_WIDGET_PROPERTIES, HdyWindow)
GType bacon_video_widget_properties_get_type (void);
GtkWidget *bacon_video_widget_properties_new (GtkWindow *transient_for);
diff --git a/src/plugins/properties/properties.ui b/src/plugins/properties/properties.ui
index 86387f451..6e77bad56 100644
--- a/src/plugins/properties/properties.ui
+++ b/src/plugins/properties/properties.ui
@@ -2,17 +2,23 @@
<!-- Generated with glade 3.20.0 -->
<interface>
<requires lib="gtk+" version="3.11"/>
- <template class="BaconVideoWidgetProperties" parent="GtkDialog">
+ <template class="BaconVideoWidgetProperties" parent="HdyWindow">
<property name="visible">False</property>
- <property name="title" translatable="yes">Properties</property>
<property name="destroy-with-parent">True</property>
<property name="modal">True</property>
- <child internal-child="vbox">
+ <child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<child>
+ <object class="HdyHeaderBar">
+ <property name="visible">True</property>
+ <property name="title" translatable="yes">Properties</property>
+ <property name="show-close-button">True</property>
+ </object>
+ </child>
+ <child>
<object class="GtkScrolledWindow" id="sw_properties">
<property name="visible">true</property>
<property name="vexpand">true</property>