[gtk/wip/otte/menu: 886/888] testgtk: Remove CSS loading
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/menu: 886/888] testgtk: Remove CSS loading
- Date: Wed, 29 May 2019 19:02:47 +0000 (UTC)
commit 52f5c7830c82d0bfa4bea984230352f1a84486fa
Author: Benjamin Otte <otte redhat com>
Date: Thu Apr 25 01:22:07 2019 +0200
testgtk: Remove CSS loading
The CSS is not fun.
And it doesn't work.
tests/testgtk.c | 18 +-----------------
tests/testgtk.css | 21 ---------------------
tests/testgtk2.css | 10 ----------
3 files changed, 1 insertion(+), 48 deletions(-)
---
diff --git a/tests/testgtk.c b/tests/testgtk.c
index 7f0e6a0e8d..0c17a66237 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -6597,7 +6597,7 @@ usage (void)
int
main (int argc, char *argv[])
{
- GtkCssProvider *provider, *memory_provider;
+ GtkCssProvider *memory_provider;
GdkDisplay *display;
GtkBindingSet *binding_set;
int i;
@@ -6615,24 +6615,8 @@ main (int argc, char *argv[])
gtk_init ();
- provider = gtk_css_provider_new ();
-
- /* Check to see if we are being run from the correct
- * directory.
- */
- if (file_exists ("testgtk.css"))
- gtk_css_provider_load_from_path (provider, "testgtk.css");
- else if (file_exists ("tests/testgtk.css"))
- gtk_css_provider_load_from_path (provider, "tests/testgtk.css");
- else
- g_warning ("Couldn't find file \"testgtk.css\".");
-
display = gdk_display_get_default ();
- gtk_style_context_add_provider_for_display (display, GTK_STYLE_PROVIDER (provider),
- GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
- g_object_unref (provider);
-
gtk_accelerator_set_default_mod_mask (GDK_SHIFT_MASK |
GDK_CONTROL_MASK |
GDK_MOD1_MASK |
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]