|
|
Home » Community » U++ community news and announcements » Upp 2007.1beta2 released
|
|
|
|
Re: Upp 2007.1beta2 released [message #7823 is a reply to message #7822] |
Wed, 24 January 2007 22:40   |
guido
Messages: 169 Registered: April 2006
|
Experienced Member |
|
|
Quote: | In specific theme or for all themes?
|
With clearlooks and xfce4.
Quote: | Do not quite understand this. What is "xfce4 theme-engine"?
Does this mean a bug in U++?
|
No, sorry. xfce4 desktop comes with a gtk theme-engine of its own. Wanted to highlight, the problem with menu color looks more and more like a bug in clearlooks theme-engine.
Quote: |
Main configuration? (There is no "GUI MT SHARED" in build method).
|
Yeah, used the wrong name.
The main configuration forgets newly created configs immediately after the dialog is closed. The toolbar textbox is then empty. When pressing the build button, it falls back to "GUI".
I can launch theide-605 and then it works again. I successfully built theide-2007-b2 with it.
My guess is that it tries to write to a file under /usr/local and silently fails, when it can't due to file permissions. But just a guess.
Quote: | BTW, some more info about your setup?
|
Debian unstable, no GNOME desktop or KDE desktop or control-center installed, only the libraries to run the productivity apps.
Where does upp get the text color, and why would it default to grey instead of black?
Guido
|
|
|
Re: Upp 2007.1beta2 released [message #7824 is a reply to message #7821] |
Wed, 24 January 2007 22:56   |
fallingdutch
Messages: 258 Registered: July 2006
|
Experienced Member |
|
|
guido wrote on Wed, 24 January 2007 18:10 |
- the debian package doesn't ever work on debian, so please include "ubuntu" in the package name, to save people from wasting time
|
sounds strange to me ... what does not work?
does theide run?
are the sources copied to the right place (/usr/share/upp)? Please check the /usr/share/upp/uppsrc/ide/version.h file if it states "2007.1beta2" it is the current one
what arch are you running on i386 or amd64 or anything else?
Bas
[Updated on: Wed, 24 January 2007 23:49] Report message to a moderator
|
|
|
Re: Upp 2007.1beta2 released [message #7825 is a reply to message #7824] |
Wed, 24 January 2007 23:56   |
guido
Messages: 169 Registered: April 2006
|
Experienced Member |
|
|
fallingdutch wrote on Wed, 24 January 2007 22:56 |
guido wrote on Wed, 24 January 2007 18:10 |
- the debian package doesn't ever work on debian, so please include "ubuntu" in the package name, to save people from wasting time
|
sounds strange to me ... what does not work? does theide run?
Bas
|
ubuntu uses glibc-2.4, debian unstable glibc-2.3.6.
any new version of glibc adds new symbols, which binaries come to depend on, when compiled against. binaries compiled with older glibc work on newer glibc, the other way around: not. There are tricks around it employed by apbuild from the autopackage project. Or the LSB sandbox. Of course this is all Linux style let's break ABIs twice a day before breakfast bollocks, proper Unices do not suffer from.
Guido
|
|
|
|
Re: Upp 2007.1beta2 released [message #7827 is a reply to message #7823] |
Thu, 25 January 2007 00:20   |
 |
mirek
Messages: 14255 Registered: November 2005
|
Ultimate Member |
|
|
Quote: |
Quote: |
Main configuration? (There is no "GUI MT SHARED" in build method).
|
Yeah, used the wrong name.
The main configuration forgets newly created configs immediately after the dialog is closed. The toolbar textbox is then empty. When pressing the build button, it falls back to "GUI".
I can launch theide-605 and then it works again. I successfully built theide-2007-b2 with it.
My guess is that it tries to write to a file under /usr/local and silently fails, when it can't due to file permissions. But just a guess.
|
Well, that sounds reasonable explanation. It gets stored to the "package description" file which is inside package directory.
So if you have tried to modify main config of some package inside /usr/local, it had to fail.
Quote: |
Where does upp get the text color, and why would it default to grey instead of black?
|
Unfortunately, I am afraid I have a clue...
The problem is that there is no function available to get that individual color in Gtk API - you have to retrieve the pointer to the whole structure. Current U++ is designed to avoid including any Gtk headers, so we have to recreate the structure (see CtrlLib/ChGtk.cpp, beginning of file... ). If layout changes between Gtk versions, we are in trouble...
Apparent solution is to start including gtk headers. But I wanted to try first....
|
|
|
|
|
|
|
|
|
|
Re: Upp 2007.1beta2 released [message #7837 is a reply to message #7827] |
Thu, 25 January 2007 12:10   |
guido
Messages: 169 Registered: April 2006
|
Experienced Member |
|
|
Quote: | The problem is that there is no function available to get that individual color in Gtk API - you have to retrieve the pointer to the whole structure. Current U++ is designed to avoid including any Gtk headers, so we have to recreate the structure (see CtrlLib/ChGtk.cpp, beginning of file... Sad ). If layout changes between Gtk versions, we are in trouble...
|
Tried to get the hang of it last night.
So I started to replace some pointer arithmetics with proper data structures, to make things a bit less obfuscated.
Didn't understand how you calculated the style offset, as the data we are interested in starts right at offset 0.
'Twas late at night. For lack of familiarity with the upp::Draw properties and chameleon properties (paper,face ...) I didn't get farther than this:
struct G_color { dword _; word r, g, b; };
enum { G_STATE_NORMAL, G_STATE_ACTIVE, G_STATE_PRELIGHT, G_STATE_SELECTED, G_STATE_INSENSITIVE };
// G_STATE_NORMAL -> CTRL_NORMAL
// G_STATE_PRELIGHT -> CTRL_HOT
// G_STATE_ACTIVE -> CTRL_PRESSED
// G_STATE_SELECTED -> ??
// G_STATE_INSENSITIVE -> CTRL_DISABLED
struct G_style {
G_Color fg[5];
G_Color bg[5];
G_Color light[5];
G_Color dark[5];
G_Color mid[5];
G_Color text[5];
G_Color base[5];
G_Color text_aa[5]; /* Halfway between text/base */
G_Color black;
G_Color white;
};
I concluded, if I knew how things mapped to upp, I could have done it. But I must have overlooked something, if you couldn't get it done, I suppose.
Guido
|
|
|
|
|
|
Goto Forum:
Current Time: Sat Apr 26 14:17:28 CEST 2025
Total time taken to generate the page: 0.02988 seconds
|
|
|