summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--endless/eospagemanager.c4
-rw-r--r--test/test-page-manager.c16
2 files changed, 18 insertions, 2 deletions
diff --git a/endless/eospagemanager.c b/endless/eospagemanager.c
index b8d7c1e..f08aa60 100644
--- a/endless/eospagemanager.c
+++ b/endless/eospagemanager.c
@@ -1004,7 +1004,7 @@ eos_page_manager_set_page_custom_toolbox_widget (EosPageManager *self,
*
* Gets the URI for the background image of @page, which must previously have
* been added to the page manager.
- * See #EosPageManager:background for more information.
+ * See #EosPageManager:background_uri for more information.
*
* Returns: the background of @page, or the %NULL if @page does not have a
* background.
@@ -1031,7 +1031,7 @@ eos_page_manager_get_page_background (EosPageManager *self,
* Changes the background of @page, which must previously have been added to the
* page manager.
* Setting %NULL removes the background, using the window's default background.
- * See #EosPageManager:background for more information.
+ * See #EosPageManager:background_uri for more information.
*/
void
eos_page_manager_set_page_background (EosPageManager *self,
diff --git a/test/test-page-manager.c b/test/test-page-manager.c
index fa09736..4575259 100644
--- a/test/test-page-manager.c
+++ b/test/test-page-manager.c
@@ -361,6 +361,20 @@ test_pm_page_no_background (PageManagerFixture *fixture,
}
static void
+test_pm_page_change_background (PageManagerFixture *fixture,
+ gconstpointer unused)
+{
+ const gchar *background_get;
+ GtkWidget *new_page = gtk_label_new("new");
+ gtk_container_add (GTK_CONTAINER (fixture->pm), new_page);
+ eos_page_manager_set_page_background(GTK_CONTAINER (fixture->pm),
+ new_page,
+ EXPECTED_PAGE_BACKGROUND);
+ background_get = eos_page_manager_get_page_background (EOS_PAGE_MANAGER (fixture->pm), new_page);
+ g_assert_cmpstr (background_get, ==, EXPECTED_PAGE_BACKGROUND);
+}
+
+static void
test_pm_remove_page_behavior (PageManagerFixture *fixture,
gconstpointer unused)
{
@@ -500,6 +514,8 @@ add_page_manager_tests (void)
test_pm_set_page_no_name);
ADD_PAGE_MANAGER_TEST ("/page-manager/page-no-background",
test_pm_page_no_background);
+ ADD_PAGE_MANAGER_TEST ("/page-manager/page-set-background",
+ test_pm_page_change_background);
ADD_PAGE_MANAGER_TEST ("/page-manager/remove-page-by-name",
test_pm_remove_page_by_name);
ADD_PAGE_MANAGER_TEST ("/page-manager/duplicate-page-name",