Re: Stock GTK Icons

2009-03-03 Thread Markku Vire
Hi, Builtin stock icons were disabled on purpose in Maemo, so you won't get any images. Stock item texts are displayed normally. You can google for some old discussions if interested. Cheers, -Markku- Nick Nobody wrote: > How come the following short pygtk program doesn't display it's stock >

Re: Gtk widget background, gradient, or image possible ?

2008-12-04 Thread Markku Vire
Hi, The background of the toolbar itself can be changed, since GtkToolbar calls the theme engine to paint the background. So, everything good at this point. The bad thing is that Maemo environment usually embeds the toolbar into HildonWindow and the toolbar borders that you can see are part of t

Re: No column titles in list store on Maemo

2008-11-21 Thread Markku Vire
Hi, You're right, this is one of the incompatibles with maemo-gtk and normal gtk. You can check the source from https://stage.maemo.org/svn/maemo/projects/haf/trunk/gtk+/gtk/gtktreeview.c in gtk_tree_view_init function. If you use the same code for both maemo environment and desktop environmen

Re: Problems with larger buttons in HButtonBox

2008-06-06 Thread Markku Vire
Hi, In Maemo environment the buttons inside GtkHButtonBox have special style attached to them. You can search the following kind of line from gtkrc: widget_class "*.GtkHButtonBox.GtkButton" style "osso-dialogbutton" All these buttons have this kind of border defined: border = { 20, 20, 0

Re: Fwd: Multithreaded program for N800..

2008-03-17 Thread Markku Vire
Hi, Yes it does. Actually most applications that belong to OS2008 are multithreaded. This is because they use gnome-vfs, which uses threads to implement async file operations. You can use GThread module from glib to write threaded applications. -Markku- nisha jain wrote: > Does OS2008 supports

Re: how to add filter to HildonFileChooserDialog

2008-03-06 Thread Markku Vire
et_filter(GtkFileChooser > *chooser, > GtkFileFilter > > *filter); > > The first param, what should I provide. > I try to use HildonFileChooserDialog > But it doesn't seem to work. > > Thanks. > > > > On Thu, Mar 6, 2008 at 4:42 PM, Markku Vi

Re: how to add filter to HildonFileChooserDialog

2008-03-06 Thread Markku Vire
Hi, Use normal gtk_file_chooser_set_filter In order to setup the filter matching image files, you can use gtk_file_filter_add_pixbuf_formats Hope this helps, -Markku- Yuan Jiang wrote: > anyone can tell me how to add file type filter to HildonFileChooserDialog. > > I just want to show

Re: Assertion failed unexpectedly

2008-02-25 Thread Markku Vire
Hi, The problem behind "changing parameters" is that you are attaching wrong type of singal handler to signal (i.e. the number/type of parameters don't match). I didn't actually try your code, but at least you cannot connect "callback_do_test" (3 parameters) to "clicked" signal (2 parameters). T

Re: Differences between scratchbox and real OS2008 tablets

2008-02-12 Thread Markku Vire
Hi, Alsa on N800 is configured to use DSP-chip, which doesn't exist on your pc (and inside scratchbox). However, it should be enough to change your alsa configuration to use your host system's sound hw instead (application doesn't need to know if the sound is routed through dsp or not). Take a lo

Re: C - Hildon - Memory usage

2008-02-11 Thread Markku Vire
Hi, HildonFileChooser can temporarily allocate large amounts of memory. This goes away after all references to the chooser are removed. However, the heap can shrink only when the topmost allocation is free'd. This means that XXX.Y the last allocation (Y) is preventing th

Re: HildonCalendar

2008-01-15 Thread Markku Vire
Hi, As your option two describes: Previous versions of Hildon contained a patch for GtkCalendar that made it fit better to the environment. Now this custom implementation is known as HildonCalendar. Other (non-hildon) environments can continue to use GtkCalendar as earlier. Too bad that this cus

Re: How to replace HildonGrid and HildonGridItem

2007-11-30 Thread Markku Vire
Hi, Try using GtkIconView. -Markku- Fred wrote: > Hi, > > I try to compile pwsafe for OS2008 and those 2 have disappeared. > What is the best replacement (GTK I suppose) for HildonGrid and > HildonGridItem) ? > > Thanks > > Fred > ___ > maemo-deve

Re:

2007-11-23 Thread Markku Vire
Hi, Maemo version of GtkTreeView doesn't send "row-activated" signal when the model used is hierarchial :( It looks like the upcoming Maemo 4.0 has fixed this (changed back to normal gtk behaviour). If you need to get this working with older versions of maemo, try using "force-list-kludge" ;) -

Re: using gstreamer in a hildon control panel applet

2007-10-05 Thread Markku Vire
s, and sizes than they would if they were > spawned in the library. > > -Original Message- > From: Markku Vire [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 03, 2007 12:44 AM > To: Brandt, Todd E > Cc: maemo-developers@maemo.org > Subject: Re: using gstrea

Re: using gstreamer in a hildon control panel applet

2007-10-03 Thread Markku Vire
Hi, Many Maemo applications are actually multi-threaded, since async operations within GnomeVFS use threads internally. Anyway, using GStreamer in control panel applet sounds dangerous. This is because gstreamer cannot be unloaded cleanly (when execute-function returns, your module is unloaded a

Re: Finding the mmc cards

2007-08-30 Thread Markku Vire
Hi, MMC_MOUNTPOINT variable was present on 770 already and the device had one (external) mmc slot only. N800 added a second memory card slot (the internal one) and respective variable... -Markku- David Hazel wrote: >> You can also use the environment variables MMC_MOUNTPOINT and >> INTERNAL_MMC

Re: Make file open browse root tree?

2007-08-07 Thread Markku Vire
Hi, Tony Maro wrote: > Is there a way to make the file open dialog browse the entire tree, > either by specifying something in sourcecode, or a secret trick to get > the existing dialog to show everything? Try defining MYDOCSDIR environment variable in the context of desired process. See /etc/

Re: Error in ui

2007-06-21 Thread Markku Vire
Hi, You seem to have problems with Sapwood theme engine: It has either not started of has crashed for some reason? Sapwood should paint all the themed UI components, but if it's not running, you'll see the background only. -Markku- Jose Antonio Vacas Martinez wrote: > In the first place, sorr

Re: pygtk: hildon.FileChooserDialog and device selection

2007-05-29 Thread Markku Vire
Hi, "Create folder" mode doesn't allow you to change the location any more. The idea is that you use "select folder" to pick the parent directory for the new folder and then launch the "new folder" to create it (this happens automatically). If you need to use "create folder" dialog directly,

Re: Image format supported in maemo

2007-05-23 Thread Markku Vire
Hi, The svg loader is at least on the device (libsvg_loader.so is located in the loader directory). However, my sbox installation didn't include it by default, but one can always install it manually. -Markku- anurag swarnkar wrote: > one more doubt > i have just checked all the loaders fi

Re: Image format supported in maemo

2007-05-23 Thread Markku Vire
Hi, GdkPixbuf provides easy-to-use image loading capabilities. You can check the capabilities from: /usr/lib/gtk-2.0/2.4.0/loaders/ There is a plugin for each supported image format. -Markku- anurag swarnkar wrote: > Hi, > > Just want to know what all image formats are supported in maemo

Re: Xsp pixel-doubling solutions for Nokia 770?

2007-05-03 Thread Markku Vire
Hi, Eero Tamminen wrote: Hi, ext Matthew Allum wrote: ...clip... I really think using xrandr for this wont buy you much though (in fact you'll probably loose) as you really only want the single topped app to notice the display has shrunk not everything server wide (as randr is intended).

Re: Continuous reboot problem with the N770 hacker edition

2007-04-27 Thread Markku Vire
Hi, There is a convenient way to achieve this "write temporary and rename" behaviour, at least for small configuration files: g_file_set_contents does this for you! Yeah, I know that it's blocking operation and don't use GnomeVFS (so, no notifications in maemo env), but I think that's good f

Re: Continuous reboot problem with the N770 hacker edition

2007-04-25 Thread Markku Vire
Hi, Hacker edition is based on same software than the _original_ N800 release. The first update for N800 is likely to contain many updated packages. RSS applet was not modified for "hacker edition", so if it's causing problems, you might be able to replace the old binary by new one just by

Re: X-terminial lauching problem

2007-04-23 Thread Markku Vire
Hi, I remember I have experienced a similar situation couple of times in the past. The reason appeared to be that X-terminal contains some libraries statically compiled in (ugly but true). When a dynamic copy of the same library is loaded (as a dependency for some libtool library, for exampl

Re: IT2007 Hacker Edition - First impression

2007-04-10 Thread Markku Vire
Hi, Krischan Keitsch wrote: Or is it possible to upgrade the hacker edition via apt-get? Has anyone tried to merge the hacker edition with the latest n800 firmware? Most likely attempting to apt-get upgrade will break everything :( Well, those packages that doesn't contain anything N800 depen

Re: maemo-mapper crashes on os2007 hacker edition

2007-04-10 Thread Markku Vire
Hi, Rainer Dorsch wrote: Am Freitag, 6. April 2007 17:28 schrieben Sie: thanks for the quick reply. I tried removing and recreating the cache dir. No change. Did you try to start mm from the command line? If yes, did you get an "illegal instruction"? Are you on the 770 hacker edition of os20

Re: Getting the device name from the 'Device' CP applet

2007-03-22 Thread Markku Vire
Hi, There is a dbus-service for this purpose. You can check how hildon-fm does this form maemo svn (hildon-file-system-settings.c). Note that the dbus interface has changed between versions and the service in question is not available within scratchbox. So, you'll only see that working on you

Re: [maemo-developers] Problem with Home plugin

2007-03-07 Thread Markku Vire
Hi, I wonder if the Home is already using GTypePlugin interface and dynamic types to handle the types registered by the plugins. That would be the right (tm) way to handle this in the scope of GObject... In the case of register_static one can newer unload the modules. -Markku- Johan Bilien

Re: OS 2007 / 770 hacker edition with sound and video

2007-03-07 Thread Markku Vire
Hi, I have not tried this particular combination, but the following ones seem to work at least: 770 => N800 770 => Hacker 770 However, I don't see why this one couldn't work as well... -Markku- Alessandro Pasotti wrote: I'm trying the hacker edition and it's really nice, just a question:

Re: [maemo-developers] hildon_file_chooser_dialog_set_safe_folder() ?

2006-10-24 Thread Markku Vire
Hi, Murray Cumming wrote: The documentation for hildon_file_chooser_dialog_set_safe_folder(): http://www.maemo.org/platform/docs/api/hildon-docs/fm-html/hildon-fm-HildonFileChooserDialog.html#hildon-file-chooser-dialog-set-safe-folder says "Sets a safe folder that is used as a fallback in a cas

Re: [maemo-developers] no file icon in context panel and navigation panel when using hildon-fm lib

2006-08-03 Thread Markku Vire
Hi, HildonFileSystemModel needs a widget pointer in order to provide icons for upper layers (that model you use when creating file selection). So, you need to do something like: model = g_object_new(HILDON_TYPE_FILE_SYSTEM_MODEL, "ref-widget", some_widget, NULL); fsel = hildon_file_se

Re: [maemo-developers] gtk_image_new_from_file returns wrong type of GtkImage

2006-06-09 Thread Markku Vire
Hi, Corentin BARON wrote: I'd like to load some images as menu icons in a GtkComboBox. So I load my images in a GtkImage and then build the ListStore with pixbufs extracted from the gtkimages. This works well on PC, but on the 770 it doesn't want to extract the pixbufs arguing that the Gtk

Re: [maemo-developers] Too much sensibilities in my application

2006-06-07 Thread Markku Vire
Hi, Sorry about bit misleading information. "notify::value" is not working on maemo 1.x series, since value is not a property! (as you can see from af svn repository). This issue is fixed in later versions... -Markku- ___ maemo-developers mailing l

Re: [maemo-developers] Too much sensibilities in my application

2006-06-07 Thread Markku Vire
Hi, "notify::value" is just a signal like "changed". The difference is just that it sends you an additional parameter, so you need to change your callback signature a bit: g_signal_connect(spin_button, "notify::value", G_CALLBACK(on_value_changed), NULL); ... void on_value_changed(GtkWidg

Re: [maemo-developers] add a dynamic node in hildon-selection widget

2006-04-25 Thread Markku Vire
Hi, The only way to define what root nodes are shown on the left side is to provide a custom root path, but this also hides MMC and gateway devices. So, there is currently no way to "just add a new toplevel node". -Markku- Kimmo Hämäläinen wrote: On Tue, 2006-04-25 at 09:18, ext 程波 程 wrote:

Re: [maemo-developers] Playing wav sounds using hildon

2006-03-08 Thread Markku Vire
Hi, Steven Hill wrote: I am using hildon sounds to play sounds through: hildon_play_system_sound("ui-key_press.wav"); You probably would like to use absolute path here. when this line is executed I get the following errors: Audio File Library: could not open file 'ui-key_press.wav' [error

Re: [maemo-developers] Identifiers instead of English strings

2006-02-17 Thread Markku Vire
Hi, Murray Cumming wrote: Is there some explanation somewhere about the use of these strange identifiers instead of English strings in the maemo source code. What is the advantage? As far as I know the motivation was that this quaranteed that no ambiguity is present. Same words could mean dif

Re: [maemo-developers] HildonFileChooserDialog

2006-02-10 Thread Markku Vire
Hi, Luca Donaggio wrote: Is there any way I can modify the default widget title with something more descriptive (for example "Save game into:')? Since the widget is a window, you can use normal gtk_window_set_title to change the title. The only thing to keep in mind is that save dialog can p

Re: [maemo-developers] No gtk-config in Maemo 1.1 RC5 ?

2005-11-17 Thread Markku Vire
Hi, gtk-config is old configure system for gtk 1.2. For gtk2 you certainly want to use pkg-config. Older gtk version is not supported. Markku Vire Movial Luca Donaggio wrote: I'm trying to port some gtk stuff to maemo, but I was stucked to configure not being able to find gtk-confi

Re: [maemo-developers] Why "hildon-lgpl"

2005-11-11 Thread Markku Vire
Hi, Murray Cumming wrote: Why does hildon-lgpl have the license in the name? Why isn't is part of hildon-libs? Yeah, historical reasons. At some point it was unclear whether all the widgets would be open or not. It can happen that they'll be merged some day. M