Hello,
While trying operator overloading in Rust, I see some unexepected behaviour of Geany. For a structure called ComplexNumber, the implementation of Add and Mul require separate implementation blocks. I expected that Add and Mul would be listed together with print and magnitude. If I try operator overloading in a similar way in C++, the member functions get nicely grouped below the name of the structure, even if they are defined in separate blocks. See the picture and the attached Rust example.
![implementationsrust](https://cloud.githubusercontent.com/assets/7198614/10871318/e51a5f5a-80e3-11e5-987f-4e2fc4c16615.png)
use std::ops::{Add,Mul};
#[derive(Debug,Copy,Clone)]
pub struct ComplexNumber {
r : f64,
j : f64
}
impl Add for ComplexNumber{
type Output = ComplexNumber;
fn add(self, rhs: ComplexNumber) -> ComplexNumber {
ComplexNumber {r: self.r+rhs.r, j: self.j+rhs.j}
}
}
impl Mul for ComplexNumber{
type Output = ComplexNumber;
fn mul(self, rhs: ComplexNumber) -> ComplexNumber {
ComplexNumber {r: self.r*rhs.r-self.j*rhs.j, j: self.r*rhs.j+self.j*rhs.r}
}
}
impl ComplexNumber {
fn print(& self) {
print!("{}+{}i ",self.r,self.j);
}
fn magnitude(& self) -> f64 {
(self.r.powi(2)+self.j.powi(2)).sqrt()
}
}
fn main()
{
let a = ComplexNumber {r: 1.0, j: 0.0};
let b = ComplexNumber {r: 0.0, j: 1.0};
let c = a + b;
let d = a * b;
let e = c + d;
c.print();
d.print();
e.print();
print!("{} ", e.magnitude());
}
---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/728
![wordcompletiontruncated](https://cloud.githubusercontent.com/assets/7548378/10593532/7e9e5334-76bc-11e5-949e-f04a742b1cd7.png)
When I push the text size up to the limit using <b>control+mouse wheel</b> and then do a word completion, the choice seem to be truncated.
---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/702
When drag-drop text inside Chrome (i.e. NOT leaving Chrome! Not really dragging into Geany), the text actually ends up in Geany at a random position. It happens silently, so my source code sometimes unnoticed gets into a company Git repository.
In fact I have `pref_editor_disable_dnd=true`
Steps to reproduce:
1. Open a file in Geany
2. Open Chrome
3. Select any piece of text in Chrome
4. Start dragging this text
5. Stop dragging few millimeters or an inch away fromt he starting point
6. Switch to Geany and get scared, the selected text is already inserted at the random position.
This only happens if Geany window was the previous active window prior to swtich to Chrome window.
Please see the screenshot, this is drastic.
![Screenshot][Screenshot]
[Screenshot]: https://s16.postimg.org/ddp04pkmd/geany_issue.jpg
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1413
![snippetcompletion](https://cloud.githubusercontent.com/assets/7548378/10855448/826d9aee-7f39-11e5-9b70-bf23d18eec33.png)
Please consider adding snippets to word completions so that when I want <b>lambda</b> acted on as a snippet, I would be able to type <b>lam</b>, choose from the possible completions, and then if I chose <b>lambda</b> from the list with the <b>tab</b> character, the snippet would be completed to get <b>𝝺</b>
Thanks for your consideration of this matter.
---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/717
The following crash happened recently several times without noticeable reason:
![capture_20151210_135758](https://cloud.githubusercontent.com/assets/6795665/11715986/c413480e-9f46-11e5-9b4b-b63b0875a392.jpg)
It's Geany 1.25 on Windows, Java 1.7
---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/795
I'm on Windows, but I see reports on the internet for Ubuntu too, they are 2012-2015, but perhaps still actual.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1368
See individual commits. Needs more testing.
You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany/pull/1382
-- Commit Summary --
* Improve GTK+3 theme loading
* Add initial documentation for GTK+ CSS theming
* Add geany.css file to the `Tools->Configuration Files` menu
* Allow customizing message window using GTK+ themes
* Improve GTK+3 CSS docs a bit
-- File Changes --
M data/Makefile.am (1)
D data/geany-3.0.css (10)
M data/geany-3.20.css (2)
M data/geany.css (20)
M data/geany.gtkrc (17)
M doc/geany.txt (21)
M src/msgwindow.c (53)
M src/ui_utils.c (84)
-- Patch Links --
https://github.com/geany/geany/pull/1382.patchhttps://github.com/geany/geany/pull/1382.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/1382
The ubuntu ppa for dev given in help pages, https://launchpad.net/~geany-dev/+archive/ubuntu/ppa, contains only old versions <= 1.27.
I have already tried to follow the installation with make, etc. but it doesn't work (probably my misunderstanding...).
So I still use 1.27 where I want to use 1.29 :-)
Is there a way to help (with my unknowledge of C, I use geany for web development) updating the ppa?
Thanks for that great product indeed!
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1338