Skip to content

Commit 67bc34a

Browse files
committed
More minor syntax
1 parent 5286c44 commit 67bc34a

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/Dialog/ReceiverDialog.vala

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ public class ReceiverDialog : Granite.Dialog {
3232
notification = new GLib.Notification ("bluetooth");
3333
notification.set_priority (NotificationPriority.NORMAL);
3434

35-
var icon_image = new Gtk.Image.from_icon_name ("io.elementary.bluetooth", Gtk.IconSize.DIALOG) {
35+
var icon_image = new Gtk.Image.from_icon_name ("io.elementary.bluetooth") {
36+
pixel_size = 48,
3637
valign = END,
3738
halign = END
3839
};
@@ -54,7 +55,7 @@ public class ReceiverDialog : Granite.Dialog {
5455
wrap = true,
5556
xalign = 0
5657
};
57-
device_label.get_style_context ().add_class ("primary");
58+
device_label.add_css_class ("primary");
5859

5960
directory_label = new Gtk.Label (null) {
6061
max_width_chars = 45,
@@ -102,12 +103,12 @@ public class ReceiverDialog : Granite.Dialog {
102103
message_grid.attach (progressbar, 1, 4);
103104
message_grid.attach (progress_label, 1, 5);
104105

105-
get_content_area ().add (message_grid);
106+
get_content_area ().append (message_grid);
106107

107108
add_button (_("Close"), Gtk.ResponseType.CLOSE);
108109

109110
var suggested_button = add_button (_("Reject"), Gtk.ResponseType.ACCEPT);
110-
suggested_button.get_style_context ().add_class (Gtk.STYLE_CLASS_DESTRUCTIVE_ACTION);
111+
suggested_button.add_css_class (Granite.CssClass.DESTRUCTIVE);
111112

112113
response.connect ((response_id) => {
113114
if (response_id == Gtk.ResponseType.ACCEPT) {

0 commit comments

Comments
 (0)