[gtk+] tests: Remove tests for icontheme properties
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] tests: Remove tests for icontheme properties
- Date: Sun, 29 Jun 2014 23:09:16 +0000 (UTC)
commit 62c6ef5a294b2cf473bc9768f6bdabbcead72234
Author: Benjamin Otte <otte redhat com>
Date: Sun Jun 29 19:52:37 2014 +0200
tests: Remove tests for icontheme properties
These properties have been removed and always return %NULL, so no need
to keep them.
tests/testicontheme.c | 28 ----------------------------
1 files changed, 0 insertions(+), 28 deletions(-)
---
diff --git a/tests/testicontheme.c b/tests/testicontheme.c
index 1b63b11..47c0e4b 100644
--- a/tests/testicontheme.c
+++ b/tests/testicontheme.c
@@ -62,16 +62,11 @@ main (int argc, char *argv[])
{
GtkIconTheme *icon_theme;
GtkIconInfo *icon_info;
- GdkRectangle embedded_rect;
- GdkPoint *attach_points;
- int n_attach_points;
- const gchar *display_name;
char *context;
char *themename;
GList *list;
int size = 48;
int scale = 1;
- int i;
gtk_init (&argc, &argv);
@@ -223,29 +218,6 @@ main (int argc, char *argv[])
g_object_unref (pixbuf);
}
- if (gtk_icon_info_get_embedded_rect (icon_info, &embedded_rect))
- {
- g_print ("Embedded rect: %d,%d %dx%d\n",
- embedded_rect.x, embedded_rect.y,
- embedded_rect.width, embedded_rect.height);
- }
-
- if (gtk_icon_info_get_attach_points (icon_info, &attach_points, &n_attach_points))
- {
- g_print ("Attach Points: ");
- for (i = 0; i < n_attach_points; i++)
- g_print ("%d, %d; ",
- attach_points[i].x,
- attach_points[i].y);
- g_free (attach_points);
- g_print ("\n");
- }
-
- display_name = gtk_icon_info_get_display_name (icon_info);
-
- if (display_name)
- g_print ("Display name: %s\n", display_name);
-
g_object_unref (icon_info);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]