[Xfce4-commits] [apps/xfdashboard] 06/13: Also use new XfdashboardDynamicTableLayout in search view
noreply at xfce.org
noreply at xfce.org
Tue Mar 24 10:25:04 CET 2015
This is an automated email from the git hooks/post-receive script.
nomad pushed a commit to annotated tag 0.2.1
in repository apps/xfdashboard.
commit ce8d291c5cb94b2f30bb765c6ab67da54755bdd4
Author: Stephan Haller <nomad at froevel.de>
Date: Fri Jun 27 14:02:38 2014 +0200
Also use new XfdashboardDynamicTableLayout in search view
---
src/applications-view.c | 2 +-
src/search-result-container.c | 10 ++++------
2 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/src/applications-view.c b/src/applications-view.c
index 6e0c94b..3ee648b 100644
--- a/src/applications-view.c
+++ b/src/applications-view.c
@@ -1042,7 +1042,7 @@ void xfdashboard_applications_view_set_spacing(XfdashboardApplicationsView *self
break;
case XFDASHBOARD_VIEW_MODE_ICON:
- xfdashboard_dynamic_table_layout_set_spacing(CLUTTER_FLOW_LAYOUT(priv->layout), priv->spacing);
+ xfdashboard_dynamic_table_layout_set_spacing(XFDASHBOARD_DYNAMIC_TABLE_LAYOUT(priv->layout), priv->spacing);
break;
default:
diff --git a/src/search-result-container.c b/src/search-result-container.c
index e624030..a6ac0de 100644
--- a/src/search-result-container.c
+++ b/src/search-result-container.c
@@ -35,6 +35,7 @@
#include "enums.h"
#include "text-box.h"
#include "stylable.h"
+#include "dynamic-table-layout.h"
/* Define this class in GObject system */
G_DEFINE_TYPE(XfdashboardSearchResultContainer,
@@ -719,10 +720,8 @@ void xfdashboard_search_result_container_set_view_mode(XfdashboardSearchResultCo
break;
case XFDASHBOARD_VIEW_MODE_ICON:
- priv->layout=clutter_flow_layout_new(CLUTTER_FLOW_HORIZONTAL);
- clutter_flow_layout_set_column_spacing(CLUTTER_FLOW_LAYOUT(priv->layout), priv->spacing);
- clutter_flow_layout_set_row_spacing(CLUTTER_FLOW_LAYOUT(priv->layout), priv->spacing);
- clutter_flow_layout_set_homogeneous(CLUTTER_FLOW_LAYOUT(priv->layout), TRUE);
+ priv->layout=xfdashboard_dynamic_table_layout_new();
+ xfdashboard_dynamic_table_layout_set_spacing(XFDASHBOARD_DYNAMIC_TABLE_LAYOUT(priv->layout), priv->spacing);
clutter_actor_set_layout_manager(CLUTTER_ACTOR(priv->itemsContainer), priv->layout);
removeClass="view-mode-list";
@@ -779,8 +778,7 @@ void xfdashboard_search_result_container_set_spacing(XfdashboardSearchResultCont
break;
case XFDASHBOARD_VIEW_MODE_ICON:
- clutter_flow_layout_set_column_spacing(CLUTTER_FLOW_LAYOUT(priv->layout), priv->spacing);
- clutter_flow_layout_set_row_spacing(CLUTTER_FLOW_LAYOUT(priv->layout), priv->spacing);
+ xfdashboard_dynamic_table_layout_set_spacing(XFDASHBOARD_DYNAMIC_TABLE_LAYOUT(priv->layout), priv->spacing);
break;
default:
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list