Reply
Thread Tools
daperl's Avatar
Posts: 2,427 | Thanked: 2,986 times | Joined on Dec 2007
#11
Nope, Portrait Mode is the Devil, and GtkViewport is his spawn

After implementing the style and container changes, Portrait Mode was hosed. I had been there before, but I never properly tracked down the culprit. Well, I might have figured something out. At the moment, here's my general rule:

"If you're gonna use a GtkViewport and Portrait Mode, resize the GtkViewport's child's width when going to Portrait Mode."

An "if" statement, a global variable, a sloppy magic number, and two lines of code solve the problem for this case, but if this is truly a general solution, I won't tell you how many days this ate my lunch about a month ago. Regardless, for a while now, I've felt there might be a Portrait Mode bug, but I'm moving on. Again!
Attached Files
File Type: gz converse-10042001.tar.gz (11.2 KB, 309 views)
__________________
N9: Go white or go home

Last edited by daperl; 2010-04-22 at 06:42.
 

The Following 3 Users Say Thank You to daperl For This Useful Post:
daperl's Avatar
Posts: 2,427 | Thanked: 2,986 times | Joined on Dec 2007
#12
Originally Posted by Venemo View Post
This is quite nice.

Can it be done with Qt?
I think so, if you don't do it my current way. Right now, I'm flying at a high level by using Nokia's closed-source GTK widgets and objects, which do most of the talking to the Telepathy, AddressBook, ..., etc. services. My attempts at plugging-in at the highest level of the open source AddressBook stuff have failed. And this is where I eventually want to be. I think I'm having OSSO context init problems, and my goal is to solve them over the next few days (fingers crossed). [daperl cues up qwerty12 music]* I could fly a little lower at EBook/EVCard levels, but the documentation discourages this.

So, I'm sure Nokia will have, if they don't already, the same high level solutions for Qt, but if they don't and I understand things correctly, that shouldn't stop anyone from doing Conversations in Qt today.

friendstatus might be the gold mine I've been digging for
__________________
N9: Go white or go home

Last edited by daperl; 2010-04-20 at 21:33.
 

The Following User Says Thank You to daperl For This Useful Post:
daperl's Avatar
Posts: 2,427 | Thanked: 2,986 times | Joined on Dec 2007
#13
Bad fisherman cast their nets in NULL infested waters

or

Give a man a segmentation fault, and he'll be happy for the rest of the day. But give a man a NULL pointer, and he'll curse you for the rest of his life.

Okay, I'm an idiot. But if I wanted to play the victim card I might say, "C has once again made me feel like an idiot." I'm not gonna play that card; I'm an idiot.

A GList has the following structure:

Code:
typedef struct {
  gpointer data;
  GList *next;
  GList *prev;
} GList;
And what have I been doing for almost the last week while iterating over these lists? You guessed it, rookie move #2: I've been casting the GList * instead of the data. Please don't do that.

The bright side? My previous post is no longer true. yahoo.

I want my mommy.
__________________
N9: Go white or go home
 

The Following User Says Thank You to daperl For This Useful Post:
smoku's Avatar
Posts: 1,716 | Thanked: 3,007 times | Joined on Dec 2009 @ Warsaw, Poland
#14
It's been a pleasure subscribing this thread.
Keep up.
__________________
smoku @xiaoka.com (SMTP/XMPP) ...:.:....:... pebbled . Poky Fish : sixaxis . psx4m . uae4all
Jolla Phone post-mortem . . . . . . . . . . -> 1+1 VGN-UX390N
 

The Following 3 Users Say Thank You to smoku For This Useful Post:
daperl's Avatar
Posts: 2,427 | Thanked: 2,986 times | Joined on Dec 2007
#15
If you get hit by a tidal wave, it's an understatement if your epitaph says you were in over your head

I successfully sent and asynchronously received IM messages today! I was going nowhere fast until I looked inside the Empathy code (Hello!). I mean, look at this snippet from empathy-tp-contact-list.c:

Code:
GValueArray  *chan_struct;
const gchar  *object_path;
const gchar  *channel_type;
TpHandleType  handle_type;
guint         handle;
                
chan_struct = g_ptr_array_index (channels, i);
object_path = g_value_get_boxed (g_value_array_get_nth (chan_struct, 0));
channel_type = g_value_get_string (g_value_array_get_nth (chan_struct, 1));
handle_type = g_value_get_uint (g_value_array_get_nth (chan_struct, 2));
handle = g_value_get_uint (g_value_array_get_nth (chan_struct, 3));
I had no idea where this particular GValueArray's structure was documented, or even that the GPtrArray values are GValueArrays! All I knew was that they weren't GObjects, but that didn't help me much (crash!). Since I'm starting to plug in to a low-level, general purpose API like Telepathy, I expect to see plenty more of this kind of data packing. But no worries, right? I have Empathy as my new Rosetta Stone, so things could start to pick up from here.
__________________
N9: Go white or go home
 

The Following User Says Thank You to daperl For This Useful Post:
daperl's Avatar
Posts: 2,427 | Thanked: 2,986 times | Joined on Dec 2007
#16
As usual, I've decided to take a sharp turn. I took a crack at getting Dia to compile and run. It's a beast of a program, and I'm not sure I need all its parts. It's more handheld friendly than The Gimp, but that's like sayin' Musollini was friendlier than Hitler. Yeah baby! Godwin Tech!

It built by some miracle. I set it to --disable-gnome, and it failed the first time. But then I

Code:
rm app/main.o
and ran

Code:
fakeroot -b -d -nc -rfakeroot
again, and it built the packages. Serious Voodoo.

Name:  Screenshot-20100426-200720.jpg
Views: 752
Size:  22.7 KB
Name:  Screenshot-20100426-200830.jpg
Views: 750
Size:  21.8 KB
__________________
N9: Go white or go home
 

The Following 2 Users Say Thank You to daperl For This Useful Post:
daperl's Avatar
Posts: 2,427 | Thanked: 2,986 times | Joined on Dec 2007
#17
I have matplotlib running on my n900. I didn't have to compile anything, but I did have to install (dpkg -x <deb file> <location>) and optify (ln -s ... and cp -a ...) the lenny packages by hand. I also had to soft link the libraries that end in .3gf to the same name without the .3gf. You'll need to install python-numpy and get the following debian lenny packages:

python-dateutil_1.4.1-2_all.deb
python-matplotlib_0.98.1-1+lenny4_armel.deb
python-matplotlib-data_0.98.1-1+lenny4_all.deb
python-tz_2008c-2_all.deb

Here are some screenshots:

Name:  Screenshot-20100629-121250.jpg
Views: 694
Size:  22.3 KB
Name:  Screenshot-20100629-120136.jpg
Views: 691
Size:  22.7 KB
Name:  Screenshot-20100629-145107.jpg
Views: 702
Size:  21.9 KB
Name:  Screenshot-20100629-121429.jpg
Views: 703
Size:  23.8 KB
__________________
N9: Go white or go home
 

The Following 5 Users Say Thank You to daperl For This Useful Post:
PradaBrada's Avatar
Posts: 294 | Thanked: 240 times | Joined on May 2010
#18
thread doesn't deliver
 

The Following User Says Thank You to PradaBrada For This Useful Post:
Posts: 3 | Thanked: 1 time | Joined on Jul 2015
#19
Originally Posted by PradaBrada View Post
thread doesn't deliver
I think it's actually pretty neat, but ok, the thread title is a bit misleading. I thought we were gonna share our favorite porn site like xhamster, ThePornDude or pornhub

Last edited by LeHomer; 2017-10-18 at 19:29.
 

The Following User Says Thank You to LeHomer For This Useful Post:
endsormeans's Avatar
Posts: 3,139 | Thanked: 8,156 times | Joined on Feb 2013 @ From my Gabriola Island hermitage, near the Edge of the World
#20
Very cool...
but Jeez ..daperl ...
.downer central....
here I thought the "Find Sex" app or an offshoot ...
was finally created.
__________________
Lurker since 2007, Member since 2013, Certifiable since 1972

Owner of :
1-n770 (in retirement), 3-n800's / 3-n810's (still in daily use), 5-n900's ((3 are flawless, 1 loose usb ( parts), 1 has no telephony (parts))
3-nexus 5's : 1 w/ Floko Pie 9.1 (running beautifully) waiting for Stable Droid 10 rom, 1 w/ ̶Ubuntu Touch, 1 with Maru OS (intend maemo leste when ready)

1/2 - neo900 pre- "purchased" in 2013. N̶o̶w̶ ̶A̶w̶a̶i̶t̶i̶n̶g̶ ̶r̶e̶f̶u̶n̶d̶ ̶p̶r̶o̶c̶e̶s̶s̶ ̶l̶a̶s̶t̶ ̶f̶e̶w̶ ̶y̶e̶a̶r̶s̶ - neo900 start up declared officially dead -
Lost invested funds.


PIMP MY N8X0 (Idiot's Guide and a video walkthrough)http://talk.maemo.org/showthread.php?t=94294
THE LOST GRONMAYER CATALOGShttp://talk.maemo.org/showthread.php...ight=gronmayer
N8X0 VIDEO ENCODING THE EASY WAYhttp://talk.maemo.org/showthread.php...ght=mediacoder
242gb ON N800http://talk.maemo.org/showthread.php?t=90634
THE PAIN-FREE MAEMO DEVELOPMENT LIVE DISTRO-ISO FOR THE NOOB TO THE PROhttp://talk.maemo.org/showthread.php?t=95567
AFFORDABLE MASS PRODUCTION FOR MAEMO PARTShttp://talk.maemo.org/showthread.php?t=93325

Meateo balloons now available @ Dave999's Meateo Emporium
 

The Following 2 Users Say Thank You to endsormeans For This Useful Post:
Reply

Tags
code orgy

Thread Tools

 
Forum Jump


All times are GMT. The time now is 14:40.