Commit 089b001e authored by Julian Sparber's avatar Julian Sparber

headerbar: remove avatar form the headerbar

https://gitlab.gnome.org/World/fractal/issues/19
parent 20c9ebd4
......@@ -390,18 +390,7 @@ impl AppOp {
};
}
pub fn set_current_room_avatar(&self, _avatar: Option<String>, size: i32) {
let image = self.ui.builder
.get_object::<gtk::Box>("room_image")
.expect("Can't find room_image in ui file.");
for ch in image.get_children() {
image.remove(&ch);
}
download_to_cache(self.backend.clone(), self.uid.clone().unwrap_or_default());
let w = widgets::Avatar::avatar_new(Some(size));
w.circle(self.uid.clone().unwrap_or_default(), self.username.clone(), size);
image.add(&w);
pub fn set_current_room_avatar(&self, _avatar: Option<String>, _size: i32) {
}
pub fn filter_rooms(&self, term: Option<String>) {
......
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