[gtk/present-toplevel-2: 33/70] surface: Implement more toplevel interface
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/present-toplevel-2: 33/70] surface: Implement more toplevel interface
- Date: Wed, 4 Mar 2020 00:08:15 +0000 (UTC)
commit d50e94690c8e5f742b51dc20901ae8a415dbca97
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Mar 1 12:13:13 2020 -0500
surface: Implement more toplevel interface
gdk/gdksurface.c | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
---
diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c
index 3d3d8b62f0..d7cc2089ca 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -641,6 +641,22 @@ gdk_surface_set_property (GObject *object,
surface->autohide = g_value_get_boolean (value);
break;
+ case LAST_PROP + GDK_POPUP_NUM_PROPERTIES + GDK_TOPLEVEL_PROP_TITLE:
+ gdk_surface_set_title (surface, g_value_get_string (value));
+ break;
+
+ case LAST_PROP + GDK_POPUP_NUM_PROPERTIES + GDK_TOPLEVEL_PROP_STARTUP_ID:
+ gdk_surface_set_startup_id (surface, g_value_get_string (value));
+ break;
+
+ case LAST_PROP + GDK_POPUP_NUM_PROPERTIES + GDK_TOPLEVEL_PROP_TRANSIENT_FOR:
+ gdk_surface_set_transient_for (surface, g_value_get_object (value));
+ break;
+
+ case LAST_PROP + GDK_POPUP_NUM_PROPERTIES + GDK_TOPLEVEL_PROP_ICON_LIST:
+ gdk_surface_set_icon_list (surface, g_value_get_object (value));
+ break;
+
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
@@ -689,6 +705,22 @@ gdk_surface_get_property (GObject *object,
g_value_set_flags (value, surface->state);
break;
+ case LAST_PROP + GDK_POPUP_NUM_PROPERTIES + GDK_TOPLEVEL_PROP_TITLE:
+ g_value_set_string (value, ""); // FIXME
+ break;
+
+ case LAST_PROP + GDK_POPUP_NUM_PROPERTIES + GDK_TOPLEVEL_PROP_STARTUP_ID:
+ g_value_set_string (value, ""); // FIXME
+ break;
+
+ case LAST_PROP + GDK_POPUP_NUM_PROPERTIES + GDK_TOPLEVEL_PROP_TRANSIENT_FOR:
+ g_value_set_object (value, NULL); // FIXME
+ break;
+
+ case LAST_PROP + GDK_POPUP_NUM_PROPERTIES + GDK_TOPLEVEL_PROP_ICON_LIST:
+ g_value_set_pointer (value, NULL); // FIXME
+ break;
+
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
@@ -2694,6 +2726,8 @@ gdk_surface_set_startup_id (GdkSurface *surface,
const gchar *startup_id)
{
GDK_SURFACE_GET_CLASS (surface)->set_startup_id (surface, startup_id);
+
+ g_object_notify (G_OBJECT (surface), "startup-id");
}
/**
@@ -2716,6 +2750,8 @@ gdk_surface_set_transient_for (GdkSurface *surface,
surface->transient_for = parent;
GDK_SURFACE_GET_CLASS (surface)->set_transient_for (surface, parent);
+
+ g_object_notify (G_OBJECT (surface), "transient-for");
}
/**
@@ -2778,6 +2814,8 @@ gdk_surface_set_icon_list (GdkSurface *surface,
GList *textures)
{
GDK_SURFACE_GET_CLASS (surface)->set_icon_list (surface, textures);
+
+ g_object_notify (G_OBJECT (surface), "icon-list");
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]