[gnome-applets] charpick: don't use deprecated style properties
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-applets] charpick: don't use deprecated style properties
- Date: Sat, 8 Oct 2016 15:28:19 +0000 (UTC)
commit 89e5eb9216e3b341145925cd58b578fd981be77e
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sat Oct 8 17:56:52 2016 +0300
charpick: don't use deprecated style properties
charpick/src/charpick.c | 22 ----------------------
1 files changed, 0 insertions(+), 22 deletions(-)
---
diff --git a/charpick/src/charpick.c b/charpick/src/charpick.c
index d19823d..6e790db 100644
--- a/charpick/src/charpick.c
+++ b/charpick/src/charpick.c
@@ -368,28 +368,6 @@ chooser_button_clicked (GtkButton *button, charpick_data *curr_data)
static inline void force_no_focus_padding (GtkWidget *widget)
{
- gboolean first_time = TRUE;
- GtkCssProvider *provider;
-
- if (first_time) {
- provider = gtk_css_provider_new ();
-
- gtk_css_provider_load_from_data (provider,
- "#charpick-applet-button {\n"
- "-GtkWidget-focus-line-width: 0px;\n"
- "-GtkWidget-focus-padding: 0px;\n"
- "}",
- -1,
- NULL);
- gtk_style_context_add_provider (gtk_widget_get_style_context (widget),
- GTK_STYLE_PROVIDER (provider),
- GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
-
- g_object_unref (provider);
-
- first_time = FALSE;
- }
-
gtk_widget_set_name (widget, "charpick-applet-button");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]