Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate

#sugar-newbies, 2010-10-23

 « Previous day | Index | Today | Next day »     Channels | Search | Join

All times shown according to UTC.

Time Nick Message
00:14 shan has quit IRC
00:14 shan <shan!~cuil@> has joined #sugar-newbies
00:18 shan23 <shan23!73f0068d@gateway/web/freenode/ip.> has joined #sugar-newbies
00:32 cuil <cuil!73f00939@gateway/web/freenode/ip.> has joined #sugar-newbies
00:33 shan12 <shan12!~cuil@> has joined #sugar-newbies
00:34 shan has quit IRC
00:39 shan12 alsroot, there?
01:05 shan12 has quit IRC
01:17 timClicks <timClicks!~tim@219-89-80-120.adsl.xtra.co.nz> has joined #sugar-newbies
04:25 dfarning is now known as dfarning_afk
06:27 alsroot has quit IRC
06:29 alsroot <alsroot!~alsroot@> has joined #sugar-newbies
06:29 alsroot has quit IRC
06:29 alsroot <alsroot!~alsroot@pdpc/supporter/active/antilopa-gnu> has joined #sugar-newbies
07:50 silbe <silbe!~silbe@twin.sascha.silbe.org> has joined #sugar-newbies
11:41 timClicks has quit IRC
11:52 anubhav <anubhav!7ab163ca@gateway/web/freenode/ip.> has joined #sugar-newbies
11:53 anubhav alsroot: hi
11:53 alsroot anubhav: hi
11:53 anubhav alsroot: i was working on downgrade of activity (#2164)
11:54 alsroot: i the review you mentioned about removing static variables could you provide some pointers on how to implement it
11:55 alsroot: *in
11:55 alsroot: i created a new file http://paste.ubuntu.com/518601/
11:56 alsroot anubhav: I meant this one, http://pastebin.com/dpUB76qK
12:00 anubhav alsroot: this is returning a none type item when we tried this code . actually an instance of journal activity is created which is inheriring journal_window and second time when we call the function from the misc it again initiallizes itself to none as it is not static
12:00 alsroot: could you help on how to remove this error ? thanks
12:01 alsroot anubhav: I just missed "global" statement in that example
12:02 anubhav so we can use global variables actually in the v1 of the same bug everyone was against of using a global variable
12:03 alsroot anubhav: _journal_window is private to windowclass.py, "global" is just for assigning it from JournalWindow.__init__
12:04 anubhav alsroot: ok.. thanks.. let me try this ..
12:18 alsroot: could you also provide pointers on how o make force_to_downgrade ( argument passed to resume)  as it is called from the downgrade_alert_response_cb(based on whot the response is)
12:19 alsroot anubhav: you mean get rid of it?
12:19 ..how to
12:19 anubhav alsroot:..  * to make arg. passed to resume hidden as ..
12:19 alsroot: yes
12:21 alsroot anubhav: create new (private) function that will do the 2nd part(installing bundles), and call this function from resume() if there is not need in downgrade allert and from downgrade allert callback
12:21 anubhav alsroot: ok .. will rty it out
12:21 *try
13:03 manusheel is now known as manusheel_afk
14:23 dfarning_afk is now known as dfarning
14:39 ibansal_ <ibansal_!~ishan@> has joined #sugar-newbies
14:44 anuragc <anuragc!~anurag@> has joined #sugar-newbies
14:48 ibansal__ <ibansal__!~ishan@> has joined #sugar-newbies
14:49 ibansal_ has quit IRC
15:23 ibansal__ has quit IRC
15:26 ibansal_ <ibansal_!~ishan@> has joined #sugar-newbies
15:30 ibansal_ has quit IRC
15:41 anuragc alsroot: where can i fing the languagemodel module of python?
15:41 find*
15:43 alsroot anuragc: dunno what languagemodel is
15:44 anuragc alsroot: I found it imported in pippy_app.py in words.activity
15:51 alsroot anuragc: you can ask people who committed this code (see `git annotate`)
15:55 anuragc alsroot:sure
16:16 mukul_afk is now known as mukul
16:19 mukul alsroot: I got your msg you sent wherein you meant to introduce a mathematical and logical choice for the value of the maximum text length. But how to inter-relate pixels with no. of characters?
16:19 alsroot: Reply only if you are not busy :)
16:20 alsroot mukul: you mean issue w/ long text in clipboard palette?
16:21 mukul alsroot: Yes.
16:22 ibansal <ibansal!~ishan@> has joined #sugar-newbies
16:33 anubhav has quit IRC
16:34 anuragc has quit IRC
16:43 alsroot mukul: sorry, had to restart X... well can just use width of one 'W' symbol, or propose a patch to sugar-toolkit to call set_max_width_chars on setting palette caption
16:44 mukul: last option might be more useful, i.e., not only for clipboard usecase
16:45 at least /me likes more that way
16:48 though setting exact size-in-chars might be set by several iterations..
16:49 ibansal has quit IRC
16:49 ibansal <ibansal!~ishan@> has joined #sugar-newbies
16:57 alsroot mukul: at the end calculating exact size-in-char is impractical, you can either use one(eg 'W') symbol to calcualate max len in advance or patch sugar-toolkit code to use max width in pixels not in chars
17:00 mukul alsroot: I didn't get you completely.
17:00 alsroot mukul: see Palette sources how it uses text_maxlen
17:01 mukul alsroot: Do you mean to say that getting width in pixels and then dividing it by pixels taken by a character....
17:03 alsroot: It uses pango and elipsize property.
17:03 alsroot mukul: text_maxlen = (<screen_width> - <gap>) / <width_of_W>
17:04 mukul 'W' symbol width?
17:05 alsroot mukul: yup
17:06 mukul alsroot: Ok
17:06 alsroot but it is only one option, another option is switching Palette from maxwidth-in-chars to in-pixels (that would be more useful)
17:06 ..I think
17:08 mukul alsroot: I agree that will be more useful as it can be used not just for characters. But I think it will be more difficult to implement.
17:09 alsroot: Won't it be changing the existing properties .ie using pango and elipsize?
17:09 alsroot: I'm sorry if I don't make much sense.
17:11 alsroot mukul: if you disable elipsize, it will try take all space
17:12 mukul alsroot: And what does pango do?
17:13 alsroot mukul: text rendering
17:24 tabs <tabs!~olpc@sfs-wifi-aruba-dhcp-130-212-145-20.sfsu.edu> has joined #sugar-newbies
18:02 ibansal has quit IRC
18:02 ibansal_ <ibansal_!~ishan@> has joined #sugar-newbies
18:08 ibansal_ has quit IRC
18:08 ibansal_ <ibansal_!~ishan@> has joined #sugar-newbies
18:13 ibansal_ has quit IRC
19:01 spoonerB <spoonerB!~Lloyd@5adeabb3.bb.sky.com> has joined #sugar-newbies
19:04 spoonerB has quit IRC
19:52 tabs has quit IRC
19:56 mukul is now known as mukul_afk
20:06 manusheel_afk is now known as manusheel
21:55 SMParrish has quit IRC
21:55 SMParrish <SMParrish!smparrish@fedora/SMParrish> has joined #sugar-newbies
22:43 tabs <tabs!~olpc@sfs-wifi-aruba-dhcp-130-212-145-20.sfsu.edu> has joined #sugar-newbies
22:53 tabs has quit IRC
22:54 tabs <tabs!~olpc@sfs-wifi-aruba-dhcp-130-212-145-20.sfsu.edu> has joined #sugar-newbies
23:30 tabs has quit IRC

 « Previous day | Index | Today | Next day »     Channels | Search | Join

Powered by ilbot/Modified.