Glib equivalent to std::set

2006-02-27 Thread Peter
I've been wanting to start an app in C++, but am leaning towards GLib partly because of its easy Python integration. My question is, what is the best way to get a std::set equivalent in GLib? For those of you who aren't big on the C++ Standard Template Library, a std::set is a type of container t

Re: Tr: Re: Save gtkliststore

2006-03-06 Thread Peter
Pascal Bellicano wrote: > I don't see exactly what you mean.. > > Iterate with which pointer ? Which struct is > concerned > ?? How have I to start and when to stop ? Why will > it > be diffrent to write than to read ? > > You speak about fileformat ? I only know 2 : binary > and text.. I thoug

Re: callbacks: doing i/o bound stuff in them

2006-03-14 Thread Peter
Vassilis Pandis wrote: >--- Peter <[EMAIL PROTECTED]> wrote: > > > >>Both gtk functions you called emit signals. Signals are processed in >>the main loop. sleep keeps you in the current handler, and the main >>loop doesn't get any say in the matter unt

event watcher

2005-06-04 Thread peter
Hi, I need to detect user actions in gedit like cliking in a menu entry. I want to be able to know for example that the user has clicked on "Copy" in the "Edit" menu. How can I do this. Many thanks Peter __ Yahoo!

Problem sending double with GDbus

2011-10-20 Thread Peter Jönsson
ion I get like (8.7357865410490269e-313,) when I print out the inparameters. If I change the introspect to "i" instead and sends a int all works fine. Any help I appreciated! Regards Peter ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.o

example in the gtkmm 3 docs is not working

2016-03-25 Thread Peter Wiehe
gtkmm and prerequisites today via "apt-get install libgtkmm-3.0-dev" Is it a mistake in the example or what can I do to solve this? Greetings Peter ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Gtk+ newb: Some basic infos

2016-04-14 Thread Peter Wiehe
.) Kind regards and happy coding Peter Wiehe ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Getting "button-press-event" on a ToolButton

2005-11-23 Thread Peter Daum
ny ideas? (I am using Perl, but the question should be language-independant) Regards, Peter Daum ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

How to disable text box popup on table?

2006-02-06 Thread Peter Butler
set to know what is causing this. However, any help with getting rid of this "feature" would be greatly appreciated. Cheers Peter Butler ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: How to disable text box popup on table?

2006-02-07 Thread Peter Butler
need to do is figure out how to disable this from SWT. I'll let you know if I have any luck. Cheers Peter ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

How to convert X Pixmap into GdkPixmap?

2006-02-27 Thread Peter Zhelezniakov
to draw to my Pixmap. How do i do that? I guess i need to convert X Display into a GdkDisplay first -- how? gdk_x11_lookup_xdisplay() gives me NULL -- is that correct? Thanks! Peter ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnom

Beginner's question: About dialog

2006-05-07 Thread Peter Robinson
o some example code to help me along my learning curve :-} Thanks a lot Peter my code (this gets called when the user clicks on the help/about menu): gint create_about_box (void) { GtkWidget *aboutdialog; const gchar *title ="BSPC"; const gchar *version = "0.

Re: Beginner's question: About dialog

2006-05-07 Thread Peter Robinson
>"version", version, >"website", website, > // all other properties > NULL); // end on NULL, for end of list > > If you want to construct your own dialog, do it as

Simple Help Window

2006-05-18 Thread Peter Robinson
widget to display some pages? How do the pro's on the list do this sort of thing? Thanks, Peter :-} ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Start Progress After User Has Entered Info/Data

2006-06-04 Thread Peter Robinson
_PROGRESS_BAR (pdata->pbar), "Input data"); gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (pdata->pbar), 0.9); ... What am I doing wrong? Sorry if these are dumb questions, it's my first GTK app... gruss, Peter ___ g

Strange Callback Behavior

2006-06-05 Thread Peter Robinson
ilew is 0x813c010 In opendatafile, ptr (gpointer)of_context->fs is 0x813c010 In opendatafile, ptr (gpointer)of_context->label is 0x8094828 In CALLBACK pointer for callback is 0x810caf8 In CALLBACK pointer for callback->fs is 0x636e6143 In CALLBACK pointer fo

Send file to system browser

2006-06-16 Thread Peter Robinson
be simpler just to send an output file to the system browser. I was wondering if anyone could give me a tip on how to do this or better yet share some example code. Thanks, take care, Peter ___ gtk-app-devel-list mailing list gtk-app-devel-list

File Selector Filter, directory only

2006-06-28 Thread Peter Robinson
dialog such that a user can select or create a directory, rather than a file. Is there a way of doing this with GTK? Thanks a lot, Peter ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel

Re: File Selector Filter, directory only

2006-06-29 Thread Peter Robinson
CREATE_FOLDER); => (bspc:5768): Gtk-CRITICAL **: gtk_file_chooser_set_action: assertion `GTK_IS_FILE_CHOOSER (chooser)' failed Why then are there two widgets that do (almost) the same thing? Or what am I missing here? Thanks Peter ___ gtk-app-dev

Re: File Selector Filter, directory only

2006-06-30 Thread Peter Robinson
doesnt seem to be any reason for people starting off with Gtk not to use the file chooser? take care, Peter On Fri, Jun 30, 2006 at 01:55:44PM +0530, Santhosh wrote: > > > > filew = gtk_file_selection_new ("Open File"); > > > > I didn't know tha

polling sockets using glib

2006-10-09 Thread Peter Robinson
. What is the recommended way of doing this? Peter Robinson ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: polling sockets using glib

2006-10-10 Thread Peter Robinson
[EMAIL PROTECTED] wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Mon, Oct 09, 2006 at 09:20:59AM +1000, Peter Robinson wrote: > >> Hi, >> I am writing a server application (using glib) in which I want to be >> able to (frequently) turn pol

Rendering bug after GTK+2.10.1 with GtkTreeViewCellRenderer

2006-10-17 Thread Peter Clifton
rsor = 0} Since I'm not particularly familiar with the (perhaps necessarily) complicated way which GTK handles widget allocation, I'm not sure exactly what is going on here. Any thoughts? Is it a bug in GTK, or simply a new "feature" which needs working around since bug #335012 wa

Re: GtkLayout and Pango

2006-11-03 Thread Peter Lund
o drawing something that isn't visible anyway. See also: http://lists.freedesktop.org/archives/cairo/2006-May/006993.html Best of luck :) -Peter ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Autocompletion with GtkComboBoxEntry

2006-11-04 Thread Peter Clifton
t explicitly. Would gtk_bin_get_child( GTK_BIN( combo_box_entry_pointer ) return the entry widget? Any help or advice on how to auto-complete with a GtkComboBoxEntry would be much appreciated. Regards, -- Peter Clifton Electrical Engineering Division, Engineering Department, University of Cambridge,

Re: Checking if cell is the currently selected in a treeview list

2006-11-04 Thread Peter Lund
n in your GtkCellRenderer-derived class? Check if the flags parameter has the GTK_CELL_RENDERER_SELECTED and GTK_CELL_RENDERER_FOCUSED bits set. -Peter ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Autocompletion with GtkComboBoxEntry

2006-11-05 Thread Peter Clifton
On Sun, 2006-11-05 at 00:03 -0500, David Hampton wrote: > On Sun, 2006-11-05 at 02:52 +0000, Peter Clifton wrote: > > Hi, > > > > I have been browsing the docs (and Google) to see if I can use an > > GtkEntryCompletion with a GtkComboBoxEntry widget. So far, it l

canvas, cairo and/or pixbufs? (was Re: Application Approach)

2006-11-05 Thread Peter Lund
o use cairo AND you create your own widget AND you want to implement scrolling, please call for help on the list again. There are some non-obvious things to handle there. Actually, scrolling involves a lot of non-intuitive stuff in GTK+ in any case, unless you are just using prebuilt widgets. -Pe

Re: canvas, cairo and/or pixbufs? (was Re: Application Approach)

2006-11-05 Thread Peter Lund
ure that the pixbuf is in a Cairo-friendly format (ARGB32 or RGB24). In order to make Cairo and your own drawing code coexist nicely, you will need to tell Cairo when it owns the pixbuf data and when it doesn't: cairo_surface_mark_dirty() cairo_surface_mark_dirty_rec

Re: canvas, cairo and/or pixbufs? (was Re: Application Approach)

2006-11-05 Thread Peter Lund
rom GtkContainer, which has the methods foreach() and get_children(). I think option 1 is the better one -- you need a high-level data structure anyway, right? -Peter ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mail

Re: socket question

2006-11-06 Thread Peter Lund
On Sun, 2006-11-05 at 19:08 -0500, Chris Cole wrote: > Is there anything like this for python? Did you set the socket to non-blocking mode? (man fcntl, look for O_NONBLOCK) -Peter ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org h

Re: GtkStatusIcon and popup menu

2006-11-06 Thread Peter Lund
llback. Any idea to make this menu > go away normally? Thanks. The program I wrote earlier this year just uses the "button-press-event" signal. In the handler I create a menu and connect a deactivation function to its "deactive" signal. Seems to work fine. -Peter static v

Re: GtkStatusIcon and popup menu

2006-11-09 Thread Peter Lund
On Tue, 2006-11-07 at 02:27 +0100, Chris tophe wrote: > Because GtkStatusIcon is not a widget. Ah. I use the EggTrayIcon code because I used (and still use) GTK+ 2.8. -Peter ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org h

Re: Mutex or atomic operations for multithread app?

2006-11-12 Thread Peter Lund
ng all the safety shields on your high powered saw. -Peter ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: How to keep UTF-8 characters, but escape non-UTF-8 byte sequence to hex codes in ASCII

2006-12-01 Thread Peter Lund
_unichar(tmp, ch); idx += g_unichar_to_utf8(ch, NULL); } else { g_string_append_c(tmp, '%'); g_string_append_printf(tmp, "%02X", ); i

Re: How to keep UTF-8 characters, but escape non-UTF-8 byte sequence to hex codes in ASCII

2006-12-01 Thread Peter Lund
> it) and choke!??! What if you double the percent signs? -Peter ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: How to keep UTF-8 characters, but escape non-UTF-8 byte sequence to hex codes in ASCII

2006-12-05 Thread Peter Lund
On Mon, 2006-12-04 at 18:22 -0800, Daniel Yek wrote: > At 07:29 AM 12/1/2006, Peter Lund wrote: > >On Thu, 2006-11-30 at 15:46 -0800, Daniel Yek wrote: > > > > > Well, with g_utf8_validate(), it is trivial to implement a function that > > > escape non-UTF-8 bytes

Re: spec for accelerator string

2007-02-16 Thread Peter Clifton
nable to parse accelerator '=' for action > 'MenuItem139' > (pcb:4288): Gtk-WARNING **: Unable to parse accelerator '/' for action > 'MenuItem187' > (pcb:4288): Gtk-WARNING **: Unable to parse accelerator '[' for action > 'MenuItem188' > (pcb:4288): Gtk-WARNING **:

Vector screen capture with Cairo

2007-04-02 Thread Peter Clifton
ed to ensure the program starts up and displays its-self as intended for the screen shot, then exits. I realise this isn't "easy", but does any one have any suggestions how it might be possible to proceed? Regards, -- Peter Clifton Electrical Engineering Division, Engineering De

Window receiving button-release-event

2007-05-30 Thread Peter Daum
ance", so I hoped it should work even when there is another signal handler installed. Any ideas how to get this right? Regards, Peter Daum ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Window receiving button-release-event

2007-05-30 Thread Peter Daum
ance", so I hoped it should work even when there is another signal handler installed. Any ideas how to get this right? Regards, Peter Daum ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Not show selection of a tree view column

2007-07-26 Thread Peter Clifton
On Thu, 2007-07-26 at 15:06 +0100, Dave Howorth wrote: > Peter Clifton wrote: > > I think a brand new widget might be needed - one which has a more > > "table" like rendering model. > > I presume a GtkTable isn't table-like enough :) GtkTable is a containe

Re: Not show selection of a tree view column

2007-07-26 Thread Peter Clifton
I think a brand new widget might be needed - one which has a more "table" like rendering model. It might be possible to start from GtkTreeView's code - but its a scary "C" file, and I quickly realised I didn't have the time / knowledge to write the new widget myself. Re

GtkTextView insensitive color?

2007-07-27 Thread Peter Clifton
normal text color, however when the widget is made insensitive, it stays red. Is this behaviour intentional? If so, what is the cleanest way to override it and get a "standard" (theme dependent) insensitive color. -- Peter Clifton Electrical Engineering Division, Engineering D

Re: Creating object based on GObject

2007-08-13 Thread Peter Clifton
ct method of GObject, In your construct function: 1. Chain up to the parent (GObject) class's construct method 2. Act upon your construct properties. Regards, -- Peter Clifton Electrical Engineering Division, Engineering Department, University of Cambridge, 9, JJ Thomson Avenue, Cambrid

Re: dynamic gtk_list_store

2007-08-21 Thread Peter Clifton
ent locally if you have the appropriate -doc packages installed for your distribution. Regards, -- Peter Clifton Electrical Engineering Division, Engineering Department, University of Cambridge, 9, JJ Thomson Avenue, Cambridge CB3 0FA Tel: +44 (0)7729 980173 - (No signal in the lab!) ___

Re: Gobject constructor question

2007-09-04 Thread Peter Clifton
ULL; And you'll have saved the parent class in the class init function: myobject_parent_class = g_type_class_peek_parent (klass); -- Peter Clifton Electrical Engineering Division, Engineering Department, University of Cambridge, 9, JJ Thomson Avenue, Cambridge CB3 0FA Tel: +44 (0)77

GtkAssistant ending with a custom button

2007-09-09 Thread Peter Clifton
pplication I'm working on is in Pygtk, so is this an issue of incomplete binding, is it impossible in general, or have I missed how to do it? Kind regards, -- Peter Clifton Electrical Engineering Division, Engineering Department, University of Cambridge, 9, JJ Thomson Avenue, Cam

Re: Theory of good signal/event API design?

2007-09-25 Thread Peter Clifton
hen write API which facilitates that. The tricky thing is getting this right - especially if your ABI / API has to be set in stone (like that for released versions of GTK + GLib). I'm sure there are many things which would be changed in GTK if they were written again now without the re

Re: Switch contents in the same window

2007-10-01 Thread Peter Clifton
suite I'm writing for has to build on GTK 2.4+ (accepting some features may be degraded / absented with #ifdef). Regards, Peter Clifton ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Switch contents in the same window

2007-10-01 Thread Peter Clifton
vance, Take a look at using a GtkNotebook for your "pages", and hide the tabs. You should then be able to introduce buttons at the bottom of your dialog to pragmatically switch between the pages. This has been a common way to implement GtkAssistant like interfaces before the

Function to list all windows opened by the current process?

2007-12-05 Thread Peter Hildebrandt
. So I am about to write my own book keeping, but I'd like to make sure that I am not duplicating some functionality already present in GTK. Thanks for your help, Peter ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: Function to list all windows opened by the current process?

2007-12-08 Thread Peter Hildebrandt
g/archives/gtk-list/1999-February/msg00552.html > The answer is to use gtk_quit_add_destroy(1, window) to get your > toplevels destroyed when the mainloop exits. > Ed Ed, thanks for your reply. Works like a charm. Peter ___ gtk-app-devel-list maili

OpenGL interface

2008-01-03 Thread Peter Hildebrandt
different solution out there? I am working on linux (Ubuntu 7.10, GTK 2.20). Thanks in advance, Peter [1] http://linux.maruhn.com/sec/gtkglarea.html [2] http://www.k-3d.org/gtkglext/Main_Page -- Using Opera's revolutionary e-mail client: http://www

Re: OpenGL interface

2008-01-04 Thread Peter Hildebrandt
reate my own bindings). Clutter seems to be too complex for that right now, but I might look into it in the future. Again, thanks for pointing this out. Peter > > Regards, > > Vivien -- Using Opera's revolutionary e-mail clie

Re: Keep window on top?

2008-01-11 Thread Peter Clifton
indow.html#gtk-window-set-transient-for -- Peter Clifton Electrical Engineering Division, Engineering Department, University of Cambridge, 9, JJ Thomson Avenue, Cambridge CB3 0FA Tel: +44 (0)7729 980173 - (No signal in the lab!) ___ gtk-app-devel-l

Re: Best practices for laying out controls

2008-05-13 Thread Peter Clifton
aid I'm not so current on GTK stuff that I can offer a more detailed explanation. Best regards, -- Peter Clifton Electrical Engineering Division, Engineering Department, University of Cambridge, 9, JJ Thomson Avenue, Cambridge CB3 0FA Tel: +44 (0)7729 980173 - (No signal in the lab!) __

Scroll wheel events not working under WindowsXP

2008-11-21 Thread Peter Clifton
on WinXP? Does anyone have any working example-code which shows scroll events working on Win32? Can you think of any GTK using applications on Win32, which definitely do have working scroll wheel handling? Best regards, -- Peter Clifton Electrical Engineering Division, Engineering Department

Re: Scroll wheel events not working under WindowsXP

2008-11-21 Thread Peter Clifton
Uncanny,.. its almost the same model laptop as in the bug report. Thanks! > -- Peter Clifton Electrical Engineering Division, Engineering Department, University of Cambridge, 9, JJ Thomson Avenue, Cambridge CB3 0FA Tel: +44 (0)7729 980173 - (No signal in the lab!)

Re: Scroll wheel events not working under WindowsXP

2008-11-23 Thread Peter Clifton
On Sun, 2008-11-23 at 08:02 +0100, Giuseppe Torelli wrote: > On Fri, Nov 21, 2008 at 9:10 PM, Peter Clifton <[EMAIL PROTECTED]> wrote: > > On Linux, and built for Win32, tested under wine, scrolling works. > > Hi, > I want to develop an application both under Linux and

Menu bar items without icon indent

2008-12-24 Thread Peter Clifton
ustom subclass again, right?) -- Peter Clifton Electrical Engineering Division, Engineering Department, University of Cambridge, 9, JJ Thomson Avenue, Cambridge CB3 0FA Tel: +44 (0)7729 980173 - (No signal in the lab!) ___ gtk-app-devel-list mailin

Re: Menu bar items without icon indent

2008-12-31 Thread Peter Clifton
el as the child of the bin in the creation method. > > You may also need to override size_allocate and size_request method. Thanks! I've been away, but I will try to see if there is any interest in getting additional flexibility in the stock GtkMenuItems, along the lines of Tristan Van

Getting/Setting "reasonable" default size for a widget

2009-09-11 Thread Peter Daum
what size it needs: When I set the scrolling policy to "never", everything would get the "right" size, provided the data is small enough (if not, I end up with a window several square miles in size ;-) Any suggestions? Regards, Peter

How to remove MenuItem from Menu?

2009-10-21 Thread Peter Daum
...) Regards, Peter ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: How to remove MenuItem from Menu?

2009-10-21 Thread Peter Daum
jcup...@gmail.com wrote: 2009/10/21 Peter Daum : (I tried some strange things like calling item->destroy and was not surprised that it didn't work ...) You can just use gtk_widget_destroy(item), I believe. Though I generally just destroy and rebuild the whole menu for safety. oop

Can g_file_monitor_file () report events from before it was created?

2011-09-05 Thread Peter Clifton
what I might be doing wrong here? (PS. I got the feeling GLib / GIO is using polling, not anything clever like inotify to spot changes - is this correct?) Best regards, -- Peter Clifton Electrical Engineering Division, Engineering Department, University of Cambridge, 9, JJ Thomson Avenue, Ca

Re: Can g_file_monitor_file () report events from before it was created?

2011-09-06 Thread Peter Clifton
On Tue, 2011-09-06 at 01:42 +0100, Peter Clifton wrote: > --=-1PQvPQuhjpa09GLvybFI > Content-Type: text/plain; charset="UTF-8" > Content-Transfer-Encoding: quoted-printable > > Hi, > > I'm working on some code to monitor for file changes in our applicatio

Re: Can g_file_monitor_file () report events from before it was created?

2011-09-07 Thread Peter Clifton
On Wed, 2011-09-07 at 03:18 +0100, Peter Clifton wrote: > --=-RBhkyZn6RRXPH6Tyg7fR > Content-Type: text/plain; charset="UTF-8" > Content-Transfer-Encoding: quoted-printable > > On Tue, 2011-09-06 at 01:42 +0100, Peter Clifton wrote: > > --=3D-1PQvPQuhjpa09GLvyb

Re: compare entry with list

2005-01-25 Thread Peter Bloomfield
27;re deallocating non-allocated memory? Peter ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

File chooser

2005-02-03 Thread Peter Bloomfield
x27; entry with gtk_file_chooser_set_current_name(), but it's treated as if the user had just typed it in, and a completion list is popped up when the dialog first appears. Is there some reason the basename isn't shown by default? And is there some way to get it into the `Name' entry without popping up th

Re: file_chooser's parent: is NULL OK?

2005-02-03 Thread Peter Bloomfield
if I pass NULL for parent, focus seems to return to the previously focused window when the chooser is closed, which is fine. I just wanted to check if passing NULL in this context is "officially OK", or if it invokes undefined behavior. Iirc, NULL = unparented, so the wm just

Re: gdk_threads_enter/leave() in threaded and non threaded situation

2005-02-10 Thread Peter Bloomfield
subthread is always unlocked, which might be true now but jump up and bite you later. Safer is to use gdk_threads_set_lock_functions to replace the standard self-blocking lock with a sensible recursive lock, and forget about which thread it is! Peter

Re: GtkTreeModelFilter question

2005-02-13 Thread Peter Bloomfield
FALSE. So no rows should be shown... But compile and run it, and you'll see the tree view showing the row! Could anyone explain me where am I wrong? You created the view from the real store instead of the filtered model. Peter ___ gtk-app-devel-li

Custom Drawables?

2005-02-15 Thread Peter Zhelezniakov
ledge will be helpful. Thanks! -- Peter peterz at rin dot ru ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: rubberbanding with GTK1* and GTK2* again

2005-02-27 Thread Peter Bloomfield
On 02/26/2005 07:12:35 AM, kees wrote: Hello folks, Thanks everybody for trying to help me!! Since you're using the x[] and y[] arrays to remember a location between calls to drawareacb(), they need to be declared static. I've no idea how this worked under Gt

Pixmaps & transparency

2005-03-17 Thread Peter Zhelezniakov
er. Could anyone please comment on this, or come up with better ideas? Thanks! -- Peter peterz at rin dot ru ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: int problems on amd64

2005-03-29 Thread Peter Bloomfield
On 03/29/2005 10:06:59 AM, Roland Smith wrote: [ snip ] I'm using GTK+ on FreeBSD 5.3 amd64 without problems. Any program casting int to void* is b0rken. ...which is why glib provides these: <http://developer.gnome.org/doc/API/2.0/glib/glib-Type-Conversion-Macros.htm

Re: help regarding the combobox

2005-04-08 Thread Peter Bloomfield
On 04/08/2005 01:40:02 AM, poonam chokshi wrote: hello, I am using the combobox in the heirarchy as shown -Main window -secframe -secfixed -seccmb Now i am trying to add some data to the the combo box usingthe g_list_append() function in my own callba

Re: Callbacks from an idle function

2005-04-08 Thread Peter Bloomfield
On 04/08/2005 10:22:59 AM, Vivien Malerba wrote: [ snip ] However, still from the same function, I then destroy the custom widget, and the whole application locks. A backtrace from gdb attached to the locked application gives: (gdb) bt #0 0x00ad37a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2

Re: Callbacks from an idle function

2005-04-08 Thread Peter Bloomfield
On 04/08/2005 11:41:57 AM, Vivien Malerba wrote: On Apr 8, 2005 5:26 PM, Peter Bloomfield <[EMAIL PROTECTED]> wrote: [ snip ] Perhaps you're trying to use gdk_threads_enter recursively? Instant lock... I did not use gdk_threads_enter()/gdk_threads_leave() when I posted the messag

How to get to the current theme ?

2005-04-14 Thread Peter Zhelezniakov
eme has changed "update_theme_for_all_widgets" (window); Thanks! -- Peter peterz at rin dot ru ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Transparent drawing in GDK

2005-04-14 Thread Peter Zhelezniakov
. Should i turn on some option, or recompile the server, or... ? Thanks! -- Peter peterz at rin dot ru ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: TreeView multiple selection

2005-04-15 Thread Peter Bloomfield
On 04/14/2005 11:01:01 AM, [EMAIL PROTECTED] wrote: Hi all, I'm trying to transfer a selection between to treeviews : on is an iconview the other is a treeview, both of them uses the same model. If you have a similar on_treeview_selection_changed callback, they're probably getting in each oth

Re: problems to make the datas appear in a TREE ...

2005-04-18 Thread Peter Bloomfield
On 04/18/2005 04:57:27 PM, Antonio Gomes wrote: Hi every one, I'm getting some troubles to make datas appear in a gtk tree store ... i'm pasting the piece of code in my app that is resposible to create and populate the tree [ code snipped ] after all this code, there is no segfaults but nothin

Re: printing HtmlView (from libgtkhtml)

2005-04-20 Thread Peter Bloomfield
the graphic. If you have the option, try gtkhtml3. Peter ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: problems to make the datas appear in a TREE ...

2005-04-21 Thread Peter Bloomfield
On 04/21/2005 02:22:44 AM, Santhosh wrote: Hi, Sorry for the late reply. I haven't checked my mails... > Now , I did what you say (populate the thee in the same level), and > every thing is working fine, except when I click in a element showed > -> I get a SEGFAULT !! It's probably bad data in the

Re: connecting entry to button

2005-04-24 Thread Peter Bloomfield
On 04/24/2005 12:24:36 PM, Yucehan Kutlu wrote: Hi when press okay the title on the entry will be write on console but i cannot connect enter function to okay button program compile normaly but hiting okay it gives this error (iler:5219): GLib-GObject-WARNING **: invalid cast from `GParamBoo

Compilation on Solaris

2005-04-25 Thread Peter Zhelezniakov
have this problem? Thanks! -- Peter peterz at rin dot ru ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: GNOME Indentation Style

2005-04-29 Thread Peter Bloomfield
On 04/29/2005 07:50:13 AM, John (J5) Palmieri wrote: [ snip ] You should use whatever the project has chosen. If you are starting a new project the majority of GNOME programs are coded using the 8 space tab "kernel" indentation style. What is important is not the coding style used but that

Re: GTK window and thread

2005-05-02 Thread Peter Bloomfield
On 05/02/2005 09:50:55 AM, Frederic Beck wrote: Hello Here's my problem : i have a daemon running in the background, and i want it to show popups after some events. I'm new in using GTK, so i took a look at the tutorial, and i managed to create the window and show it. The popup window is clo

Re: GList

2005-05-03 Thread Peter Bloomfield
On 05/02/2005 01:13:49 PM, ÐÐÑÑÐÐ Ñ wrote: i think that the result of next code must be 3. but i have 0 ...because l is still NULL, and g_list_length(NULL) is 0. g_list_append returns the address of the first item in the list with its appended item, so you should use: if uncomment "l=

Re: g_signal_connect

2005-05-03 Thread Peter Bloomfield
On 05/03/2005 09:14:35 AM, Tomaz Canabrava wrote: Little trouble here =) the g_signal_connect works like what? g_signal_connect(GTK_WIDGET(widget), signal("clicked"), G_CALLBACK(Function), (gpointer) "Data"); but the callbacks functions have the GtkWidget *Widget as a 1st parameter, and... well, i

Re: GtkTreeView SIGNALS

2005-05-03 Thread Peter Bloomfield
On 05/03/2005 10:34:02 AM, John Coppens wrote: On Tue, 3 May 2005 10:11:49 -0400 André Pedralho <[EMAIL PROTECTED]> wrote: I'm trying to use the single click on a GtkTreeView. Is there a way for me? The row-activated signal is activated with a double click... I'm needind one that is launched wi

Re: gtk_tree_model_get() --> when to free results???

2005-05-10 Thread Peter Bloomfield
On 05/10/2005 09:40:04 AM, Olivier Sessink wrote: Hi all, in the documentation from gtk_tree_model_get() at http://developer.gnome.org/doc/API/2.0/gtk/ GtkTreeModel.html#gtk-tree-model-get I read: "If appropriate, the returned values have to be freed or unreferenced." my question is: when is

Re: launching web browser

2005-05-21 Thread Peter Bloomfield
On 05/21/2005 03:15:48 AM, Gyözö Both wrote: hi, is there a good (and easy) way to launch the system's default web browser with a given url from my gtk program? See . __

Re: launching web-browser

2005-05-21 Thread Peter Bloomfield
On 05/21/2005 08:51:05 AM, Gyözö Both wrote: thanks for your answers. if possible, i'd like to have a solution that only uses gtk/glib, i wouldn't want to have a gnome-dependency in my app. is there a way? gyözö So would I--if you find one, please be sure to post

Re: gtk_combo_box_get_active_text not defined

2005-05-22 Thread Peter Bloomfield
On 05/22/2005 07:46:05 AM, y g wrote: hi gtk_combo_box_get_active_text is not defined (and trully is as i looked on the source code of gtkcombobox.h, which probably means i am using an older version of gtk2 gtk_combo_box_get_active_text is "Since 2.6"... so the question is how can i

Re: signal passing

2005-05-24 Thread Peter Bloomfield
On 05/24/2005 05:12:57 AM, srinivas wrote: [ snip ] if (strlen(s)>0) Better: if (s[0] != '\0') [ snip ] and in "on_button_next_clicked" callback i just added the one u given. void on_button_next_clicked (GtkButton *button, gpointer user_d

Re: signal passing

2005-05-24 Thread Peter Bloomfield
On 05/24/2005 07:24:17 AM, Peter Bloomfield wrote: [ snip ] Why go through the whole process of emitting a signal? Put the output code in a handler ^^^ I meant in a helper! ___ gtk-app-devel-list mailing list gtk-app-devel

Re: signal passing

2005-05-25 Thread Peter Bloomfield
On 05/25/2005 06:36:00 AM, srinivas wrote: hi ; thanks for reply; from on_text_entry_activate i can call the out put handler, but from on_button_next how to call output handler. i am not getting how to get the entry object from interface.c to callbacks.c. in on_text_entry_activate, due to

  1   2   >