[Xfce4-commits] [apps/xfdashboard] 01/01: Implement a new actor in XfdashboardLiveWorkspace showing the workspace's name

noreply at xfce.org noreply at xfce.org
Mon Jan 18 14:04:57 CET 2016


This is an automated email from the git hooks/post-receive script.

nomad pushed a commit to branch master
in repository apps/xfdashboard.

commit bce77d52c007ebe304248baccabcf90a6da61b7a
Author: Stephan Haller <nomad at froevel.de>
Date:   Mon Jan 18 14:03:16 2016 +0100

    Implement a new actor in XfdashboardLiveWorkspace showing the workspace's name
    
    This new actor is hidden by default but can be turned on at a theme. The workspace name actor gets the class ".title" added so that the actor (a XfdashboardButton) can also be themed.
    
    This commit addresses issue GH #105
---
 data/themes/xfdashboard-auber/xfdashboard.css   |    9 ++
 data/themes/xfdashboard-blue/xfdashboard.css    |    9 ++
 data/themes/xfdashboard-dark/xfdashboard.css    |    9 ++
 data/themes/xfdashboard-mint/xfdashboard.css    |    9 ++
 data/themes/xfdashboard-moranga/xfdashboard.css |    9 ++
 data/themes/xfdashboard-wine/xfdashboard.css    |    9 ++
 data/themes/xfdashboard/xfdashboard.css         |    9 ++
 xfdashboard/live-window.c                       |    2 +-
 xfdashboard/live-workspace.c                    |  185 ++++++++++++++++++++++-
 xfdashboard/live-workspace.h                    |    6 +
 10 files changed, 251 insertions(+), 5 deletions(-)

diff --git a/data/themes/xfdashboard-auber/xfdashboard.css b/data/themes/xfdashboard-auber/xfdashboard.css
index babedc4..48746e3 100644
--- a/data/themes/xfdashboard-auber/xfdashboard.css
+++ b/data/themes/xfdashboard-auber/xfdashboard.css
@@ -186,6 +186,8 @@ XfdashboardLiveWorkspace
 	background-image-type: desktop;
 	outline-color: #404040ff;
 	outline-width: 1.0;
+	show-workspace-name: false;
+	workspace-name-padding: 4.0;
 }
 
 XfdashboardLiveWorkspace:active
@@ -195,6 +197,13 @@ XfdashboardLiveWorkspace:active
 	outline-width: 2.0;
 }
 
+XfdashboardLiveWorkspace .title
+{
+	button-style: text;
+	background-type: fill rounded-corners;
+	corner-radius: 4.0;
+}
+
 /* Scrollbars */
 XfdashboardScrollbar
 {
diff --git a/data/themes/xfdashboard-blue/xfdashboard.css b/data/themes/xfdashboard-blue/xfdashboard.css
index babedc4..48746e3 100644
--- a/data/themes/xfdashboard-blue/xfdashboard.css
+++ b/data/themes/xfdashboard-blue/xfdashboard.css
@@ -186,6 +186,8 @@ XfdashboardLiveWorkspace
 	background-image-type: desktop;
 	outline-color: #404040ff;
 	outline-width: 1.0;
+	show-workspace-name: false;
+	workspace-name-padding: 4.0;
 }
 
 XfdashboardLiveWorkspace:active
@@ -195,6 +197,13 @@ XfdashboardLiveWorkspace:active
 	outline-width: 2.0;
 }
 
+XfdashboardLiveWorkspace .title
+{
+	button-style: text;
+	background-type: fill rounded-corners;
+	corner-radius: 4.0;
+}
+
 /* Scrollbars */
 XfdashboardScrollbar
 {
diff --git a/data/themes/xfdashboard-dark/xfdashboard.css b/data/themes/xfdashboard-dark/xfdashboard.css
index babedc4..48746e3 100644
--- a/data/themes/xfdashboard-dark/xfdashboard.css
+++ b/data/themes/xfdashboard-dark/xfdashboard.css
@@ -186,6 +186,8 @@ XfdashboardLiveWorkspace
 	background-image-type: desktop;
 	outline-color: #404040ff;
 	outline-width: 1.0;
+	show-workspace-name: false;
+	workspace-name-padding: 4.0;
 }
 
 XfdashboardLiveWorkspace:active
@@ -195,6 +197,13 @@ XfdashboardLiveWorkspace:active
 	outline-width: 2.0;
 }
 
+XfdashboardLiveWorkspace .title
+{
+	button-style: text;
+	background-type: fill rounded-corners;
+	corner-radius: 4.0;
+}
+
 /* Scrollbars */
 XfdashboardScrollbar
 {
diff --git a/data/themes/xfdashboard-mint/xfdashboard.css b/data/themes/xfdashboard-mint/xfdashboard.css
index babedc4..48746e3 100644
--- a/data/themes/xfdashboard-mint/xfdashboard.css
+++ b/data/themes/xfdashboard-mint/xfdashboard.css
@@ -186,6 +186,8 @@ XfdashboardLiveWorkspace
 	background-image-type: desktop;
 	outline-color: #404040ff;
 	outline-width: 1.0;
+	show-workspace-name: false;
+	workspace-name-padding: 4.0;
 }
 
 XfdashboardLiveWorkspace:active
@@ -195,6 +197,13 @@ XfdashboardLiveWorkspace:active
 	outline-width: 2.0;
 }
 
+XfdashboardLiveWorkspace .title
+{
+	button-style: text;
+	background-type: fill rounded-corners;
+	corner-radius: 4.0;
+}
+
 /* Scrollbars */
 XfdashboardScrollbar
 {
diff --git a/data/themes/xfdashboard-moranga/xfdashboard.css b/data/themes/xfdashboard-moranga/xfdashboard.css
index babedc4..48746e3 100644
--- a/data/themes/xfdashboard-moranga/xfdashboard.css
+++ b/data/themes/xfdashboard-moranga/xfdashboard.css
@@ -186,6 +186,8 @@ XfdashboardLiveWorkspace
 	background-image-type: desktop;
 	outline-color: #404040ff;
 	outline-width: 1.0;
+	show-workspace-name: false;
+	workspace-name-padding: 4.0;
 }
 
 XfdashboardLiveWorkspace:active
@@ -195,6 +197,13 @@ XfdashboardLiveWorkspace:active
 	outline-width: 2.0;
 }
 
+XfdashboardLiveWorkspace .title
+{
+	button-style: text;
+	background-type: fill rounded-corners;
+	corner-radius: 4.0;
+}
+
 /* Scrollbars */
 XfdashboardScrollbar
 {
diff --git a/data/themes/xfdashboard-wine/xfdashboard.css b/data/themes/xfdashboard-wine/xfdashboard.css
index babedc4..48746e3 100644
--- a/data/themes/xfdashboard-wine/xfdashboard.css
+++ b/data/themes/xfdashboard-wine/xfdashboard.css
@@ -186,6 +186,8 @@ XfdashboardLiveWorkspace
 	background-image-type: desktop;
 	outline-color: #404040ff;
 	outline-width: 1.0;
+	show-workspace-name: false;
+	workspace-name-padding: 4.0;
 }
 
 XfdashboardLiveWorkspace:active
@@ -195,6 +197,13 @@ XfdashboardLiveWorkspace:active
 	outline-width: 2.0;
 }
 
+XfdashboardLiveWorkspace .title
+{
+	button-style: text;
+	background-type: fill rounded-corners;
+	corner-radius: 4.0;
+}
+
 /* Scrollbars */
 XfdashboardScrollbar
 {
diff --git a/data/themes/xfdashboard/xfdashboard.css b/data/themes/xfdashboard/xfdashboard.css
index babedc4..48746e3 100644
--- a/data/themes/xfdashboard/xfdashboard.css
+++ b/data/themes/xfdashboard/xfdashboard.css
@@ -186,6 +186,8 @@ XfdashboardLiveWorkspace
 	background-image-type: desktop;
 	outline-color: #404040ff;
 	outline-width: 1.0;
+	show-workspace-name: false;
+	workspace-name-padding: 4.0;
 }
 
 XfdashboardLiveWorkspace:active
@@ -195,6 +197,13 @@ XfdashboardLiveWorkspace:active
 	outline-width: 2.0;
 }
 
+XfdashboardLiveWorkspace .title
+{
+	button-style: text;
+	background-type: fill rounded-corners;
+	corner-radius: 4.0;
+}
+
 /* Scrollbars */
 XfdashboardScrollbar
 {
diff --git a/xfdashboard/live-window.c b/xfdashboard/live-window.c
index 38756af..a7b4dab 100644
--- a/xfdashboard/live-window.c
+++ b/xfdashboard/live-window.c
@@ -244,7 +244,7 @@ static void _xfdashboard_live_window_on_name_changed(XfdashboardLiveWindow *self
 	/* Check if signal is for this window */
 	if(inWindow!=priv->window) return;
 
-	/* Set new icon in title actor */
+	/* Set new name in title actor */
 	windowName=g_markup_printf_escaped("%s", xfdashboard_window_tracker_window_get_title(inWindow));
 	xfdashboard_button_set_text(XFDASHBOARD_BUTTON(priv->actorTitle), windowName);
 	g_free(windowName);
diff --git a/xfdashboard/live-workspace.c b/xfdashboard/live-workspace.c
index 65239e4..93c3d2e 100644
--- a/xfdashboard/live-workspace.c
+++ b/xfdashboard/live-workspace.c
@@ -40,6 +40,7 @@
 #include "window-content.h"
 #include "image-content.h"
 #include "enums.h"
+#include "stylable.h"
 
 /* Define this class in GObject system */
 G_DEFINE_TYPE(XfdashboardLiveWorkspace,
@@ -57,10 +58,13 @@ struct _XfdashboardLiveWorkspacePrivate
 	XfdashboardWindowTrackerMonitor			*monitor;
 	gboolean								showWindowContent;
 	XfdashboardStageBackgroundImageType		backgroundType;
+	gboolean								showWorkspaceName;
+	gfloat									workspaceNamePadding;
 
 	/* Instance related */
 	XfdashboardWindowTracker				*windowTracker;
 	ClutterActor							*backgroundImageLayer;
+	ClutterActor							*actorTitle;
 };
 
 /* Properties */
@@ -72,6 +76,8 @@ enum
 	PROP_MONITOR,
 	PROP_SHOW_WINDOW_CONTENT,
 	PROP_BACKGROUND_IMAGE_TYPE,
+	PROP_SHOW_WORKSPACE_NAME,
+	PROP_WORKSPACE_NAME_PADDING,
 
 	PROP_LAST
 };
@@ -187,7 +193,8 @@ static ClutterActor* _xfdashboard_live_workspace_create_and_add_window_actor(Xfd
 		/* Move existing window actor to new stacking position */
 		g_object_ref(actor);
 		clutter_actor_remove_child(CLUTTER_ACTOR(self), actor);
-		clutter_actor_insert_child_above(CLUTTER_ACTOR(self), actor, lastWindowActor);
+		if(lastWindowActor) clutter_actor_insert_child_above(CLUTTER_ACTOR(self), actor, lastWindowActor);
+			else clutter_actor_insert_child_below(CLUTTER_ACTOR(self), actor, priv->actorTitle);
 		g_object_unref(actor);
 	}
 		else
@@ -207,7 +214,8 @@ static ClutterActor* _xfdashboard_live_workspace_create_and_add_window_actor(Xfd
 			g_object_unref(content);
 
 			/* Add new actor at right stacking position */
-			clutter_actor_insert_child_above(CLUTTER_ACTOR(self), actor, lastWindowActor);
+			if(lastWindowActor) clutter_actor_insert_child_above(CLUTTER_ACTOR(self), actor, lastWindowActor);
+				else clutter_actor_insert_child_below(CLUTTER_ACTOR(self), actor, priv->actorTitle);
 		}
 
 	return(actor);
@@ -295,7 +303,7 @@ static void _xfdashboard_live_workspace_on_window_stacking_changed(XfdashboardLi
 		/* If we get here the window actor was found so move to bottom */
 		g_object_ref(actor);
 		clutter_actor_remove_child(CLUTTER_ACTOR(self), actor);
-		clutter_actor_insert_child_above(CLUTTER_ACTOR(self), actor, NULL);
+		clutter_actor_insert_child_below(CLUTTER_ACTOR(self), actor, priv->actorTitle);
 		g_object_unref(actor);
 	}
 }
@@ -379,6 +387,28 @@ static void _xfdashboard_live_workspace_on_monitor_geometry_changed(XfdashboardL
 	clutter_actor_queue_relayout(CLUTTER_ACTOR(self));
 }
 
+/* A workspace's name has changed */
+static void _xfdashboard_live_workspace_on_workspace_name_changed(XfdashboardLiveWorkspace *self,
+																	XfdashboardWindowTrackerWorkspace *inWorkspace,
+																	gpointer inUserData)
+{
+	XfdashboardLiveWorkspacePrivate		*priv;
+	gchar								*workspaceName;
+
+	g_return_if_fail(XFDASHBOARD_IS_LIVE_WORKSPACE(self));
+	g_return_if_fail(XFDASHBOARD_IS_WINDOW_TRACKER_WORKSPACE(inWorkspace));
+
+	priv=self->priv;
+
+	/* Check if signal is for this workspace */
+	if(inWorkspace!=priv->workspace) return;
+
+	/* Set new name in title actor */
+	workspaceName=g_markup_printf_escaped("%s", xfdashboard_window_tracker_workspace_get_name(inWorkspace));
+	xfdashboard_button_set_text(XFDASHBOARD_BUTTON(priv->actorTitle), workspaceName);
+	g_free(workspaceName);
+}
+
 /* A window was created
  * Check if window opened is desktop background window
  */
@@ -577,6 +607,36 @@ static void _xfdashboard_live_workspace_allocate(ClutterActor *self,
 	_xfdashboard_live_workspace_transform_allocation(&childAllocation, &workspaceArea, &visibleArea, inBox);
 	clutter_actor_allocate(priv->backgroundImageLayer, &childAllocation, inFlags);
 
+	/* Set allocation of title actor */
+	if(priv->actorTitle)
+	{
+		gfloat							left, right, top, bottom;
+		gfloat							titleWidth, titleHeight;
+		gfloat							maxWidth;
+
+		clutter_actor_get_preferred_size(priv->actorTitle,
+											NULL, NULL,
+											&titleWidth, &titleHeight);
+
+		maxWidth=clutter_actor_box_get_width(inBox)-(2*priv->workspaceNamePadding);
+		if(titleWidth>maxWidth) titleWidth=maxWidth;
+
+		left=(clutter_actor_box_get_width(inBox)-titleWidth)/2.0f;
+		right=left+titleWidth;
+		bottom=clutter_actor_box_get_height(inBox)-priv->workspaceNamePadding;
+		top=bottom-titleHeight;
+		if(left>right) left=right-1.0f;
+
+		right=MAX(left, right);
+		bottom=MAX(top, bottom);
+
+		childAllocation.x1=floor(left);
+		childAllocation.y1=floor(top);
+		childAllocation.x2=floor(right);
+		childAllocation.y2=floor(bottom);
+		clutter_actor_allocate(priv->actorTitle, &childAllocation, inFlags);
+	}
+
 	/* If we handle no workspace to not set allocation of children */
 	if(!priv->workspace) return;
 
@@ -633,6 +693,12 @@ static void _xfdashboard_live_workspace_dispose(GObject *inObject)
 	/* Dispose allocated resources */
 	g_object_set_data(inObject, WINDOW_DATA_KEY, NULL);
 
+	if(priv->actorTitle)
+	{
+		clutter_actor_destroy(priv->actorTitle);
+		priv->actorTitle=NULL;
+	}
+
 	if(priv->backgroundImageLayer)
 	{
 		clutter_actor_destroy(priv->backgroundImageLayer);
@@ -688,6 +754,14 @@ static void _xfdashboard_live_workspace_set_property(GObject *inObject,
 			xfdashboard_live_workspace_set_background_image_type(self, g_value_get_enum(inValue));
 			break;
 
+		case PROP_SHOW_WORKSPACE_NAME:
+			xfdashboard_live_workspace_set_show_workspace_name(self, g_value_get_boolean(inValue));
+			break;
+
+		case PROP_WORKSPACE_NAME_PADDING:
+			xfdashboard_live_workspace_set_workspace_name_padding(self, g_value_get_float(inValue));
+			break;
+
 		default:
 			G_OBJECT_WARN_INVALID_PROPERTY_ID(inObject, inPropID, inSpec);
 			break;
@@ -719,6 +793,14 @@ static void _xfdashboard_live_workspace_get_property(GObject *inObject,
 			g_value_set_enum(outValue, self->priv->backgroundType);
 			break;
 
+		case PROP_SHOW_WORKSPACE_NAME:
+			g_value_set_boolean(outValue, self->priv->showWorkspaceName);
+			break;
+
+		case PROP_WORKSPACE_NAME_PADDING:
+			g_value_set_float(outValue, self->priv->workspaceNamePadding);
+			break;
+
 		default:
 			G_OBJECT_WARN_INVALID_PROPERTY_ID(inObject, inPropID, inSpec);
 			break;
@@ -764,7 +846,7 @@ static void xfdashboard_live_workspace_class_init(XfdashboardLiveWorkspaceClass
 
 	XfdashboardLiveWorkspaceProperties[PROP_SHOW_WINDOW_CONTENT]=
 		g_param_spec_boolean("show-window-content",
-								_("show-window-content"),
+								_("Show window content"),
 								_("If TRUE the window content should be shown otherwise the window's icon will be shown"),
 								TRUE,
 								G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
@@ -777,11 +859,28 @@ static void xfdashboard_live_workspace_class_init(XfdashboardLiveWorkspaceClass
 							XFDASHBOARD_STAGE_BACKGROUND_IMAGE_TYPE_NONE,
 							G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
 
+	XfdashboardLiveWorkspaceProperties[PROP_SHOW_WORKSPACE_NAME]=
+		g_param_spec_boolean("show-workspace-name",
+								_("Show workspace name"),
+								_("If TRUE the name of workspace should be shown"),
+								FALSE,
+								G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
+
+	XfdashboardLiveWorkspaceProperties[PROP_WORKSPACE_NAME_PADDING]=
+		g_param_spec_float("workspace-name-padding",
+							_("Workspace name padding"),
+							_("Padding of workspace name actor in pixels"),
+							0.0f, G_MAXFLOAT,
+							0.0f,
+							G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
+
 	g_object_class_install_properties(gobjectClass, PROP_LAST, XfdashboardLiveWorkspaceProperties);
 
 	/* Define stylable properties */
 	xfdashboard_actor_install_stylable_property(actorClass, XfdashboardLiveWorkspaceProperties[PROP_SHOW_WINDOW_CONTENT]);
 	xfdashboard_actor_install_stylable_property(actorClass, XfdashboardLiveWorkspaceProperties[PROP_BACKGROUND_IMAGE_TYPE]);
+	xfdashboard_actor_install_stylable_property(actorClass, XfdashboardLiveWorkspaceProperties[PROP_SHOW_WORKSPACE_NAME]);
+	xfdashboard_actor_install_stylable_property(actorClass, XfdashboardLiveWorkspaceProperties[PROP_WORKSPACE_NAME_PADDING]);
 
 	/* Define signals */
 	XfdashboardLiveWorkspaceSignals[SIGNAL_CLICKED]=
@@ -812,6 +911,8 @@ static void xfdashboard_live_workspace_init(XfdashboardLiveWorkspace *self)
 	priv->showWindowContent=TRUE;
 	priv->backgroundType=XFDASHBOARD_STAGE_BACKGROUND_IMAGE_TYPE_NONE;
 	priv->monitor=NULL;
+	priv->showWorkspaceName=FALSE;
+	priv->workspaceNamePadding=0.0f;
 
 	/* Set up this actor */
 	clutter_actor_set_reactive(CLUTTER_ACTOR(self), TRUE);
@@ -826,6 +927,13 @@ static void xfdashboard_live_workspace_init(XfdashboardLiveWorkspace *self)
 	clutter_actor_hide(priv->backgroundImageLayer);
 	clutter_actor_add_child(CLUTTER_ACTOR(self), priv->backgroundImageLayer);
 
+	/* Create title actor */
+	priv->actorTitle=xfdashboard_button_new();
+	xfdashboard_stylable_add_class(XFDASHBOARD_STYLABLE(priv->actorTitle), "title");
+	clutter_actor_set_reactive(priv->actorTitle, FALSE);
+	clutter_actor_hide(priv->actorTitle);
+	clutter_actor_add_child(CLUTTER_ACTOR(self), priv->actorTitle);
+
 	/* Connect signals to window tracker */
 	g_signal_connect_swapped(priv->windowTracker,
 								"window-opened",
@@ -851,6 +959,10 @@ static void xfdashboard_live_workspace_init(XfdashboardLiveWorkspace *self)
 								"window-stacking-changed",
 								G_CALLBACK(_xfdashboard_live_workspace_on_window_stacking_changed),
 								self);
+	g_signal_connect_swapped(priv->windowTracker,
+								"workspace-name-changed",
+								G_CALLBACK(_xfdashboard_live_workspace_on_workspace_name_changed),
+								self);
 }
 
 /* IMPLEMENTATION: Public API */
@@ -936,6 +1048,9 @@ void xfdashboard_live_workspace_set_workspace(XfdashboardLiveWorkspace *self, Xf
 		_xfdashboard_live_workspace_create_and_add_window_actor(self, window);
 	}
 
+	/* Set name of workspace at title actor */
+	_xfdashboard_live_workspace_on_workspace_name_changed(self, inWorkspace, NULL);
+
 	/* Notify about property change */
 	g_object_notify_by_pspec(G_OBJECT(self), XfdashboardLiveWorkspaceProperties[PROP_WORKSPACE]);
 }
@@ -1110,3 +1225,65 @@ void xfdashboard_live_workspace_set_background_image_type(XfdashboardLiveWorkspa
 		g_object_notify_by_pspec(G_OBJECT(self), XfdashboardLiveWorkspaceProperties[PROP_BACKGROUND_IMAGE_TYPE]);
 	}
 }
+
+/* Get/set if workspace's name should be shown */
+gboolean xfdashboard_live_workspace_get_show_workspace_name(XfdashboardLiveWorkspace *self)
+{
+	g_return_val_if_fail(XFDASHBOARD_IS_LIVE_WORKSPACE(self), TRUE);
+
+	return(self->priv->showWorkspaceName);
+}
+
+void xfdashboard_live_workspace_set_show_workspace_name(XfdashboardLiveWorkspace *self, gboolean inIsVisible)
+{
+	XfdashboardLiveWorkspacePrivate		*priv;
+
+	g_return_if_fail(XFDASHBOARD_IS_LIVE_WORKSPACE(self));
+
+	priv=self->priv;
+
+	/* Set value if changed */
+	if(priv->showWorkspaceName!=inIsVisible)
+	{
+		/* Set value */
+		priv->showWorkspaceName=inIsVisible;
+
+		/* Depending on value show or hide workspace name actor */
+		if(priv->showWorkspaceName) clutter_actor_show(priv->actorTitle);
+			else clutter_actor_hide(priv->actorTitle);
+
+		/* Notify about property change */
+		g_object_notify_by_pspec(G_OBJECT(self), XfdashboardLiveWorkspaceProperties[PROP_SHOW_WORKSPACE_NAME]);
+	}
+}
+
+/* Get/set padding of close button actor */
+gfloat xfdashboard_live_workspace_get_workspace_name_padding(XfdashboardLiveWorkspace *self)
+{
+	g_return_val_if_fail(XFDASHBOARD_IS_LIVE_WORKSPACE(self), 0.0f);
+
+	return(self->priv->workspaceNamePadding);
+}
+
+void xfdashboard_live_workspace_set_workspace_name_padding(XfdashboardLiveWorkspace *self, gfloat inPadding)
+{
+	XfdashboardLiveWorkspacePrivate		*priv;
+
+	g_return_if_fail(XFDASHBOARD_IS_LIVE_WORKSPACE(self));
+	g_return_if_fail(inPadding>=0.0f);
+
+	priv=self->priv;
+
+	/* Set value if changed */
+	if(priv->workspaceNamePadding!=inPadding)
+	{
+		/* Set value */
+		priv->workspaceNamePadding=inPadding;
+
+		/* Enfore a reallocation of this actor */
+		clutter_actor_queue_relayout(CLUTTER_ACTOR(self));
+
+		/* Notify about property change */
+		g_object_notify_by_pspec(G_OBJECT(self), XfdashboardLiveWorkspaceProperties[PROP_WORKSPACE_NAME_PADDING]);
+	}
+}
diff --git a/xfdashboard/live-workspace.h b/xfdashboard/live-workspace.h
index 91e4a96..30203e1 100644
--- a/xfdashboard/live-workspace.h
+++ b/xfdashboard/live-workspace.h
@@ -82,6 +82,12 @@ void xfdashboard_live_workspace_set_show_window_content(XfdashboardLiveWorkspace
 XfdashboardStageBackgroundImageType xfdashboard_live_workspace_get_background_image_type(XfdashboardLiveWorkspace *self);
 void xfdashboard_live_workspace_set_background_image_type(XfdashboardLiveWorkspace *self, XfdashboardStageBackgroundImageType inType);
 
+gboolean xfdashboard_live_workspace_get_show_workspace_name(XfdashboardLiveWorkspace *self);
+void xfdashboard_live_workspace_set_show_workspace_name(XfdashboardLiveWorkspace *self, gboolean inIsVisible);
+
+gfloat xfdashboard_live_workspace_get_workspace_name_padding(XfdashboardLiveWorkspace *self);
+void xfdashboard_live_workspace_set_workspace_name_padding(XfdashboardLiveWorkspace *self, gfloat inPadding);
+
 G_END_DECLS
 
 #endif	/* __XFOVERVIEW_LIVE_WORKSPACE__ */

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list