Avoid use of deprecated Gtk.Button.set_focus_on_click (#22)
This commit is contained in:
parent
42869ffe0a
commit
4a36e4154e
|
@ -42,7 +42,7 @@ public class Tootle.PostDialog : Gtk.Dialog {
|
|||
visibility.get_style_context ().add_class (Gtk.STYLE_CLASS_FLAT);
|
||||
visibility.get_style_context ().remove_class ("image-button");
|
||||
visibility.can_default = false;
|
||||
visibility.set_focus_on_click (false);
|
||||
(visibility as Gtk.Widget).set_focus_on_click (false);
|
||||
|
||||
attach = new Gtk.Button.from_icon_name ("mail-attachment-symbolic");
|
||||
attach.tooltip_text = _("Add Media");
|
||||
|
@ -50,7 +50,7 @@ public class Tootle.PostDialog : Gtk.Dialog {
|
|||
attach.get_style_context ().add_class (Gtk.STYLE_CLASS_FLAT);
|
||||
attach.get_style_context ().remove_class ("image-button");
|
||||
attach.can_default = false;
|
||||
attach.set_focus_on_click (false);
|
||||
(attach as Gtk.Widget).set_focus_on_click (false);
|
||||
attach.clicked.connect (() => attachments.select ());
|
||||
|
||||
spoiler = new ImageToggleButton ("image-red-eye-symbolic");
|
||||
|
|
|
@ -94,7 +94,7 @@ public class Tootle.AccountView : TimelineView {
|
|||
button_menu.image = new Gtk.Image.from_icon_name ("view-more-symbolic", Gtk.IconSize.LARGE_TOOLBAR);
|
||||
button_menu.tooltip_text = _("More Actions");
|
||||
button_menu.get_style_context ().add_class (Gtk.STYLE_CLASS_FLAT);
|
||||
button_menu.set_focus_on_click (false);
|
||||
(button_menu as Gtk.Widget).set_focus_on_click (false);
|
||||
button_menu.can_default = false;
|
||||
button_menu.can_focus = false;
|
||||
button_menu.popup = menu;
|
||||
|
@ -197,7 +197,7 @@ public class Tootle.AccountView : TimelineView {
|
|||
btn = new Gtk.Button.from_icon_name (name, Gtk.IconSize.LARGE_TOOLBAR);
|
||||
|
||||
btn.get_style_context ().add_class (Gtk.STYLE_CLASS_FLAT);
|
||||
btn.set_focus_on_click (false);
|
||||
(btn as Gtk.Widget).set_focus_on_click (false);
|
||||
btn.can_default = false;
|
||||
btn.can_focus = false;
|
||||
|
||||
|
|
Loading…
Reference in New Issue