Skip to content

Posts 

Crash through D-Bus calls

Friday, 6 April 2012  | Dominik Haumann | Tags:  planet
Years ago, there was a blog on the planet with the title “How to crash (almost) every Qt/KDE Application and how to fix it“. In short, if you are showing a dialog, KWin prevents you from closing the application by clicking on the close button in the window decoration. However, through D-Bus, you can still quit the application. A solution was also provided: Use a guarded pointer to create the dialog.While this fixes the issue, it looks like fixing the blame, and not the real issue. Stricktly speaking, even the Qt documentation would be wrong then. Read More

On Removing an Element from a List

Saturday, 17 March 2012  | Dominik Haumann | Tags:  planet

Recently, there was a very good blog about The Importance of Mentoring. It was mentioned that the 3200 slocs of the gsoc projects could be cut down to 500 slocs, doing exactly the same thing.

While hunting some crashes in the new code folding code from the last gsoc project, I obviously had a closer look on how things are implemented. The code folding uses a simple tree structure. Nodes can be added, removed or moved around. So I stumbled over the following code:

Read More

Append Newline at End of File

Monday, 12 March 2012  | Dominik Haumann | Tags:  planet

In KDE SC 4.9, Kate Part will have an option in the Open/Save config tab called

[ ] Append newline at end of file on save

By default (and Kate tradition), this option is off. You can also use the document variable (modeline) newline-at-eof [bool], either in the file itself, in a .kateconfig file, or in the “Modes & Filetypes” config page. If a newline was added, it is visible only after reloading the document. This finally fixes wish #256134.

Read More

Some Kate Color Schemas

Wednesday, 7 March 2012  | Dominik Haumann | Tags:  planet
As already mentioned, Kate Part much better chooses colors from the default KDE color palette configured in System Settings in upcoming KDE SC 4.9. As teaser, here are some examples – hope you like it.

Default “Oxygen” Color Schema
Read More

Yet another update for the Colors tab

Thursday, 1 March 2012  | Dominik Haumann | Tags:  planet

Now, the categories in the “Colors” tab are painted like in System Settings (top: new, bottom: old):

Thanks to Rafael Fernández López for relicensing the code of SystemSettings’ CategoryDrawer under LGPLv{2,3}.

Read More

Color Settings

Thursday, 1 March 2012  | Dominik Haumann | Tags:  planet

This week, Kate Part received an update of the “Colors” tab in the settings dialog, available in KDE 4.9. The major features include

  • configurable colors: search highlight, replace highlight and modified line colors – finally :-)
  • possibility to always use colors from the KDE color scheme.
  • the implementation works in a way that at some point, the host application (KDevelop, Kile, …) can put items into this list.

Here are screenshots of the new (top) and the old (bottom) color tab:

Read More

Akademy 2012 – We are on the way! (soon)

Sunday, 26 February 2012  | Christoph Cullmann

Perhaps a bit early, but typical german, me and Dominik booked our flights to Tallinn.

Lets hope we will have a lot fun there and meet old and new friends ;)

See you all, at Tallinn.

Disable Line Modification Indicators

Sunday, 26 February 2012  | Dominik Haumann

On KDE 4.8.0, there is no way to disable the line modification markers.

In KDE >= 4.8.1, you can disable them as follows by first closing Kate and then typing

kwriteconfig --file katerc --group "Kate View Defaults" --key "Line Modification" --type bool false

To enable it again, close Kate and run

kwriteconfig --file katerc --group "Kate View Defaults" --key "Line Modification" --type bool trueRead More
                
              

Scripting in Kate

Saturday, 21 January 2012  | Dominik Haumann | Tags:  planet

Since several releases, Kate Part has scripting support through javascript. So far, it seems it is not much used by users. Still, I stumbled over two extensions:

If you have more user defined scripts, it would be nice if you let us know! For KDE5, we plan to extend this, so applications like Kile or KDevelop can reuse Kate’s internal code.

Read More

Highlighting Search & Replace Matches

Thursday, 22 December 2011  | Dominik Haumann | Tags:  planet