summaryrefslogtreecommitdiff
path: root/plugins/time
diff options
context:
space:
mode:
authormbkma <[email protected]>2021-02-12 11:31:23 +0100
committerraveit65 <[email protected]>2021-03-04 22:00:30 +0100
commitf4ed7690bff4021051f11fbe851b604d69caef2f (patch)
tree77d5d439779373c08cc10dcb668460437d42732d /plugins/time
parent0d91cd7289dfc1e59658ea4a946a843a576496c8 (diff)
downloadpluma-f4ed7690bff4021051f11fbe851b604d69caef2f.tar.bz2
pluma-f4ed7690bff4021051f11fbe851b604d69caef2f.tar.xz
port plugins to use the window-construct property.
pluma-file-browser-plugin.c: rename "data" to "priv".
Diffstat (limited to 'plugins/time')
-rw-r--r--plugins/time/pluma-time-plugin.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/plugins/time/pluma-time-plugin.c b/plugins/time/pluma-time-plugin.c
index b0f3e2b5..7f734d9f 100644
--- a/plugins/time/pluma-time-plugin.c
+++ b/plugins/time/pluma-time-plugin.c
@@ -39,9 +39,9 @@
#include <glib.h>
#include <gmodule.h>
#include <gio/gio.h>
-#include <libpeas/peas-activatable.h>
#include <libpeas-gtk/peas-gtk-configurable.h>
+#include <pluma/pluma-window-activatable.h>
#include <pluma/pluma-window.h>
#include <pluma/pluma-debug.h>
#include <pluma/pluma-utils.h>
@@ -147,7 +147,7 @@ typedef enum
struct _PlumaTimePluginPrivate
{
- GtkWidget *window;
+ PlumaWindow *window;
GSettings *settings;
@@ -157,10 +157,10 @@ struct _PlumaTimePluginPrivate
enum {
PROP_0,
- PROP_OBJECT
+ PROP_WINDOW
};
-static void peas_activatable_iface_init (PeasActivatableInterface *iface);
+static void pluma_window_activatable_iface_init (PlumaWindowActivatableInterface *iface);
static void peas_gtk_configurable_iface_init (PeasGtkConfigurableInterface *iface);
G_DEFINE_DYNAMIC_TYPE_EXTENDED (PlumaTimePlugin,
@@ -168,8 +168,8 @@ G_DEFINE_DYNAMIC_TYPE_EXTENDED (PlumaTimePlugin,
PEAS_TYPE_EXTENSION_BASE,
0,
G_ADD_PRIVATE_DYNAMIC (PlumaTimePlugin)
- G_IMPLEMENT_INTERFACE_DYNAMIC (PEAS_TYPE_ACTIVATABLE,
- peas_activatable_iface_init)
+ G_IMPLEMENT_INTERFACE_DYNAMIC (PLUMA_TYPE_WINDOW_ACTIVATABLE,
+ pluma_window_activatable_iface_init)
G_IMPLEMENT_INTERFACE_DYNAMIC (PEAS_GTK_TYPE_CONFIGURABLE,
peas_gtk_configurable_iface_init))
@@ -253,7 +253,7 @@ update_ui (PlumaTimePluginPrivate *data)
}
static void
-pluma_time_plugin_activate (PeasActivatable *activatable)
+pluma_time_plugin_activate (PlumaWindowActivatable *activatable)
{
PlumaTimePlugin *plugin;
PlumaTimePluginPrivate *data;
@@ -292,7 +292,7 @@ pluma_time_plugin_activate (PeasActivatable *activatable)
}
static void
-pluma_time_plugin_deactivate (PeasActivatable *activatable)
+pluma_time_plugin_deactivate (PlumaWindowActivatable *activatable)
{
PlumaTimePluginPrivate *data;
PlumaWindow *window;
@@ -310,7 +310,7 @@ pluma_time_plugin_deactivate (PeasActivatable *activatable)
}
static void
-pluma_time_plugin_update_state (PeasActivatable *activatable)
+pluma_time_plugin_update_state (PlumaWindowActivatable *activatable)
{
pluma_debug (DEBUG_PLUGINS);
@@ -1111,8 +1111,8 @@ pluma_time_plugin_set_property (GObject *object,
switch (prop_id)
{
- case PROP_OBJECT:
- plugin->priv->window = GTK_WIDGET (g_value_dup_object (value));
+ case PROP_WINDOW:
+ plugin->priv->window = PLUMA_WINDOW (g_value_dup_object (value));
break;
default:
@@ -1131,7 +1131,7 @@ pluma_time_plugin_get_property (GObject *object,
switch (prop_id)
{
- case PROP_OBJECT:
+ case PROP_WINDOW:
g_value_set_object (value, plugin->priv->window);
break;
@@ -1151,7 +1151,7 @@ pluma_time_plugin_class_init (PlumaTimePluginClass *klass)
object_class->set_property = pluma_time_plugin_set_property;
object_class->get_property = pluma_time_plugin_get_property;
- g_object_class_override_property (object_class, PROP_OBJECT, "object");
+ g_object_class_override_property (object_class, PROP_WINDOW, "window");
}
static void
@@ -1161,7 +1161,7 @@ pluma_time_plugin_class_finalize (PlumaTimePluginClass *klass)
}
static void
-peas_activatable_iface_init (PeasActivatableInterface *iface)
+pluma_window_activatable_iface_init (PlumaWindowActivatableInterface *iface)
{
iface->activate = pluma_time_plugin_activate;
iface->deactivate = pluma_time_plugin_deactivate;
@@ -1180,7 +1180,7 @@ peas_register_types (PeasObjectModule *module)
pluma_time_plugin_register_type (G_TYPE_MODULE (module));
peas_object_module_register_extension_type (module,
- PEAS_TYPE_ACTIVATABLE,
+ PLUMA_TYPE_WINDOW_ACTIVATABLE,
PLUMA_TYPE_TIME_PLUGIN);
peas_object_module_register_extension_type (module,