You guys know Sisyphus? Today I fought with a strange problem – I wasn’t able to style widgets in gtkrc files for user interfaces built by Glade. The names given in the UI were set which resulted in „id“ attributes for the object-elements in the glade XML. For testing purposes I added a property with the attribute name=“name“ and the text node containing the name of the widget to one of the objects and guess what…
I didn’t find any hint about that behavior on the internet. Problem was that editing and saving the files in Glade stripped all those properties again. So finally I wrote a short python script which crawls through all our glade files adding/updating the objects name properties depending on the „id“ attribute of the objects element itself.
The screenshots show the actual state. No widgets at all by now but the pure GTK stuff is progressing. Finally we got rid of the pixmap engine.
This article was published
Freitag,, 27. März 2015 @ 04:31.
You may want to subscribe to the comments via RSS 2.0 feed.
Post a comment, or create a trackback on your page.
Write a comment / Schreibe einen Kommentar (Guitarix: Some Progress)
Please note that comments are moderated and don't appear immediately. If you're reporting a problem or a bug I'll publish them when I started processing your request.
Bitte beachte: Kommentare sind moderiert und erscheinen nicht sofort. Ich veröffentliche Bugreports und Hilferequests erst, sobald ich mich eines Problems oder Bugs angenommen habe.
Thank you very much!! You're doing an essential job for the development of open source software! The following points aren't meant as dogmas but as a clue, decide for yourself what you think could be useful in troubleshooting.
- Please...
- ...state name and version of your operating system / desktop environment
- ...state the version of the program you're using
- ...be detailed in what is happening and what you expected to happen
- ...try to provide some deeper information (like xplanetFX logs or the output of the program when started in a terminal window)
- ...speak to me as a human being, don't think I'm a bot.
Herzlichen Dank!! Fehlerberichte sind essentiell für die Entwicklung von Open-Source-Software! Die folgenden Punkte sind keine Dogmen, sondern sollen eher Anhaltspunkte darstellen; entscheide selbst, ob sie für die Fehlersuche hilfreich sein könnten.
- Bitte...
- ...nenne den Namen und die Version Deines Betriebssystems / Deiner Desktopumgebung
- ...nenne die Version des von Dir benutzten Programms
- ...beschreibe möglichst genau, was passiert und was Du erwartest, was passieren sollte
- ...stelle möglichst tiefergehende Informationen zur Verfügung (xplanetFX Logs oder die Ausgabe des Programms im Terminalfenster)
- ...sprich mit mir, wie mit einem Menschen, ich bin kein Automat.