Commit 792a24a2 authored by Kai Willadsen's avatar Kai Willadsen

ui.notebooklabel: Remove now-unnecessary CSS that's causing warnings

parent 52529905
......@@ -25,16 +25,6 @@ from meld.conf import _
class NotebookLabel(Gtk.HBox):
__gtype_name__ = "NotebookLabel"
css = """
* {
-GtkButton-default-border : 0;
-GtkButton-default-outside-border : 0;
-GtkButton-inner-border: 0;
-GtkWidget-focus-line-width : 0;
-GtkWidget-focus-padding : 0;
padding : 0;
}
"""
tab_width_in_chars = 30
def __init__(self, iconname, text, onclose):
......@@ -72,14 +62,8 @@ class NotebookLabel(Gtk.HBox):
image = Gtk.Image.new_from_gicon(icon, Gtk.IconSize.MENU)
image.set_tooltip_text(_("Close tab"))
button.add(image)
button.set_name("meld-tab-close-button")
button.connect("clicked", onclose)
context = button.get_style_context()
provider = Gtk.CssProvider()
provider.load_from_data(self.css)
context.add_provider(provider, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION)
icon = Gtk.Image.new_from_icon_name(iconname, Gtk.IconSize.MENU)
label_box = Gtk.EventBox()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment