Re: Cross platform development

2017-03-18 Thread Tomas Hlavaty
"pelzflorian (Florian Pelz)" writes: > On 03/18/2017 08:41 AM, Tomas Hlavaty wrote: >> nixos already supports cross-compilation using mingw out-of-the box. > I did not know. Sounds interesting. It also creates an $out directory with bin dir and symlinks for all dependenci

questions about introspection

2015-08-25 Thread Tomas Hlavaty
hich does this "splitting" into namespace and introspection class? Thank you, Tomas ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: GTK deadlock in gtk_main

2010-08-03 Thread Tomas Soltys
All right, so at the end it was my bug :) Thank you all for your explanations. Cheers, Tomas > Hi. > >> So what you suggest is to have gdk_threads_enter and gdk_threads_leave >> at >> the beginning and at the end of the idle function? >> >> Is this really i

Re: GTK deadlock in gtk_main

2010-08-03 Thread Tomas Soltys
Hi, So what you suggest is to have gdk_threads_enter and gdk_threads_leave at the beginning and at the end of the idle function? Is this really intended? Anyway, thanks for your help. Regards, Tomas > Hi. > > You're having troubles because gtk_main_iteration_do() does it'

GTK deadlock in gtk_main

2010-08-03 Thread Tomas Soltys
n". Thanks for your help in advance, Tomas #include #include #include #include static GStaticMutex customMutex = G_STATIC_MUTEX_INIT; static void custom_enter (void) { g_print ("LOCK\n");

GdkPixbuf animation

2010-02-02 Thread Tomas Soltys
Hi all, I have noticed that there is a way to load an animation using gdk_pixbuf_animation_new_from_file. But is there a way to save already loaded/created animation to a file? For example GdkPixbuf has a method gdk_pixbuf_save Thanks in advance, Tomas Soltys

setting the attachment point when adding one container to another

2009-10-28 Thread Tomas R
Hi, First here is a small excerpt from my code: http://pastebin.com/m31e6a3c8 The problem is that when text is set, the beginning of the text is hidden instead of the ending. Here is a screen: http://img39.imageshack.us/img39/4592/screenshot1tm.png In this case I want that it would show "Power O

Re: setlocale & gtk

2009-08-31 Thread Tomas Soltys
I forgot to write that this behaviour apply only on Windows not on Linux. Cheers Tomas Soltys > Hi all, > > Recently I have ran into a problem with locale settings. > > 1. I need my application to have disabled locale settings. This is mainly > for the number representati

setlocale & gtk

2009-08-31 Thread Tomas Soltys
way how to get around this? Thanks Tomas Soltys ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Embed theme with a gtk app?

2009-01-29 Thread Tomas Soltys
Yes there is a way. Here is how I have done it. gchar *rc_files[] = { "path to your rc file", NULL}; gtk_rc_set_default_files (rc_files); Regards, Tomas Soltys > Is there any way to either embed or make a gtk program load a theme > that comes with the program, without th

Re: An 'oldie' question... GtkCList anyone?

2009-01-27 Thread Tomas Soltys
Hi, try to declare str as: char *str[4]; Regards, Tomas > Hello people. > > In the process of converting an old program from mSQL to MySQL, I found a > couple of potential traps and optimized a couple of functions. I now have > a problem with adding lines into a

Re: An 'oldie' question... GtkCList anyone?

2009-01-27 Thread Tomas Soltys
Hi, try to declare str as: char *str[4]; Regards, Tomas > Hello people. > > In the process of converting an old program from mSQL to MySQL, I found a > couple of potential traps and optimized a couple of functions. I now have > a problem with adding lines into a

WIN32: Spawning a command-line process

2009-01-27 Thread Tomas Soltys
ne. Stdout is lost. So -mswindows is not an option. Does anybody have an idea how to solve this problem? Thanks. Tomas Soltys ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

GtkFileChooserDialog position

2008-10-16 Thread Tomas Soltys
_widget_destroy (dialog); --- Result is that the dialog is moved towards the lower left corner. It seems to me that the size of the window is not correct. Could it be? Can someone explain me why is this happening. Regard

GLib - Spawning Processes

2008-09-09 Thread Tomas Soltys
Hi all, I have spent some time trying to create an application that would use GLib to spawn a process. The function I want to use is "g_spawn_async_with_pipes". The following code is just simplified version of the real one, but the behavior is the same. On Linux it works but on the Windows it

Re: How to set the font's size of the GtkLabel?

2008-08-28 Thread Tomas Carnecky
Dov Grobgeld wrote: > Hi Lazy (great name), > > The way to do it is to set the name of the label through: > > gtk_widget_set_name(label, "foo"); > > and then define a style for the name "foo", that includes a font > specification: > > gtk_rc_parse_string("style \"foo\" {\n" >

Re: returning a string to d-bus

2008-08-06 Thread Tomas Carnecky
Luka Napotnik wrote: Hello. I have a D-BUS listener with a GObject method which should send a string back to D-BUS. My d-bus listener method is: gboolean some_object_get_name(GObject *object, gchar *str, GError **error) { str = g_strdup("Hello"); return TRUE; } But when the cli

Re: Finding a widget in a Glade interface

2008-07-30 Thread Tomas Carnecky
dhk wrote: Tristan Van Berkom wrote: On Wed, Jul 30, 2008 at 3:40 PM, Tristan Van Berkom <[EMAIL PROTECTED]> wrote: for future reference, this could easily have been pulled out of the docs/header files: glade_xml_get_widget() type libglade and "feel lucky" its right there. oops, I obviously

Re: Callback Parameters are Switched

2008-07-21 Thread Tomas Carnecky
dhk wrote: Tomas Carnecky wrote: dhk wrote: I'm using glade for a front end which has a button that when clicked passes a notebook as the user_data to the callback. I'm using the gdb debugger to look at the two parameters in the callback and they are switched. The first para

Re: Callback Parameters are Switched

2008-07-21 Thread Tomas Carnecky
dhk wrote: I'm using glade for a front end which has a button that when clicked passes a notebook as the user_data to the callback. I'm using the gdb debugger to look at the two parameters in the callback and they are switched. The first parameter, the button, is the notebook object and the

Re: Profiler for GTK+

2008-07-21 Thread Tomas Carnecky
Vinod Alat wrote: Can anyone suggest me a profiler that shows the CPU time used by functions in code accumulating the time used in the functions that it calls (from GTK+ or application), which will help determine what functions of code take the most time to fulfill, I want to see what functions o

Re: newbie Question

2008-07-16 Thread Tomas Carnecky
wrote: how to list available wireless networks and create a custom widget? --- On Tue, 7/15/08, Tomas Carnecky <[EMAIL PROTECTED]> wrote: From: Tomas Carnecky <[EMAIL PROTECTED]> Subject: Re: newbie Question To: [EMAIL PROTECTED] Cc: gtk-app-devel-list@gnome.org Date: Tuesday, Ju

Re: newbie Question

2008-07-15 Thread Tomas Carnecky
Craig Petty wrote: How would i make a gtk+ for a wireless networking? First read gtk tutorials. Then compile, run and modify some gtk samples, just so you get into how gtk works. Then you can read the sourcecode of other gtk applications to understand how a 'big' application is structured. A

Re: font size gtk_*_new_with_label

2008-07-13 Thread Tomas Carnecky
Luis Ariel Lecca wrote: Hi All ! I will appreciate very much any help :) I'm using gtk_widget_modify_font() and style = gtk_rc_style_new(); pango_font_description_free( style->font_desc ); style->font_desc = pfont; gtk_widget_modify_style( widget, style ); to change the font size of my la

Re: glib and Xlib

2008-06-06 Thread Tomas Carnecky
jaafar EL GONNOUNI wrote: > Hello; > > What is *glib *adding that the GTK + compared to *Xlib *? > > All what is possible with glib with Xlib is feasible, then why create a new > library. From http://library.gnome.org/devel/glib/stable/glib.html : GLib is a general-purpose utility library, whi

Re: The core of GTK++

2008-05-29 Thread Tomas Carnecky
jaafar EL GONNOUNI wrote: > Good morning; > > What are the source files that formed the *core *of GTK++ ? How do you define the core? What belongs to your 'core'? > > *According to my research I found the following files : > > * gtkobject.c / gtkobject.h > gtkwidget.c / gtkwidget.h > gtkc

Re: How to put widget in CUSTOM GtkContainer

2008-04-29 Thread Tomas Carnecky
AlannY wrote: > Tomas Carnecky wrote: >> here you have to set GtkContainerClass->add, remove, forall and >> child_type. See >> http://svn.gnome.org/viewvc/gtk%2B/trunk/gtk/gtkbin.c?revision=19491&view=markup >> as an example of a widget that derives from

Re: How to put widget in CUSTOM GtkContainer

2008-04-29 Thread Tomas Carnecky
AlannY wrote: > Tomas Carnecky wrote: >> AlannY wrote: >> That still isn't the whole code! What does grid_class_init() do? Attach >> both the whole grid header and source file to the email. > > /* ** */ > > st

Re: How to put widget in CUSTOM GtkContainer

2008-04-29 Thread Tomas Carnecky
AlannY wrote: > Hi there, my name is Alan and I have some troubles with GtkContainer. > > It's about 2 days, I already have spent trying to solve it, but I (i > guess) can't. > > I'm writing a program, which looks like: > +-+ > | Main Window (GtkWindow) | > | +---

Re: GtkContainer problems

2008-04-29 Thread Tomas Carnecky
AlannY wrote: > Hello. > > I'm writing a custom widget. It's inherits from GtkContainer. So: > > typedef struct _MyWidgetMyWidget; > typedef struct _MyWidgetClass MyWidgetClass; > > struct _MyWidget > { >GtkContainer parent; > }; > > struct _MyWidgetClass > { >GtkConta

Re: Simple Questions.

2008-04-19 Thread Tomas Carnecky
Schumi Imor wrote: > I'm thinking of using GTK+ for one of my projects and I'm really impressed > with the level of support and example code out there. But what I haven't > been able to find is how to create an application without a frame (no name, > no close, no maximize, no edges). Any help or ex

Re: How can I find out what is the gtk development version?

2008-04-10 Thread Tomas Carnecky
ying lcs wrote: > On Thu, Apr 10, 2008 at 11:12 AM, Kevin DeKorte <[EMAIL PROTECTED]> wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> >> ying lcs wrote: >> | Hi, >> | >> | How can I find out what is the gtk development version that I am using >> on linux? >> >> >> ~ pkg-conf

Re: How can I find out what is the gtk development version?

2008-04-10 Thread Tomas Carnecky
ying lcs wrote: > On Thu, Apr 10, 2008 at 11:12 AM, Kevin DeKorte <[EMAIL PROTECTED]> wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> >> ying lcs wrote: >> | Hi, >> | >> | How can I find out what is the gtk development version that I am using >> on linux? >> >> >> ~ pkg-conf

Re: GTK app to change pic on click

2008-03-18 Thread Tomas Carnecky
Midhun A wrote: > Hi All, > > I am very new to GTK+ (started out yesterday). I am writing a simple > application which will show pictures one by one on button click. > Although I am able to get my first picture, the picture does not > change on click of the button (next or previous). The full co

Re: Locale definitions, dots and commas

2008-03-11 Thread Tomas Carnecky
Carlos Pereira wrote: > Hi, > I received a message (see below) complaining about using dots instead of > commas in decimal numbers. What are the best solutions for this, from the gtk > point of view? > >> What happens is that in my French locale, the decimal >symbol is ',' not '.' >> ! >> Have

Re: Does libX11 use shared memory between several clients?

2008-01-29 Thread Tomas Carnecky
Bin Chen wrote: > Currently I am looking at libX11's source code, I am curios many > libX11 doesn't send the message to the server but only modify some > structure in the local memory, such as: This is the gtk-app-devel list, not the place where you'd discuss libX11 issues! You'll have more luck

widgets in cell renderer

2008-01-25 Thread Tomas Carnecky
I'm working on a fairly complex cell renderer, with text, progress bars, buttons, etc. Since th cell renderer is not a widget, but only a simple renderer, I have to paint it all by myself, using gtk_paint_box(), gdk_draw_pixbuf(), gtk_paint_layout() etc. Now it's getting ugly and I thought abou

Re: XF86AudioNext

2008-01-03 Thread Tomas Carnecky
Kevin DeKorte wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi, > > I'm trying to capture the keypress when a user hits a key like XF86AudioNext > > I have a keyboard handler for my window and I get events for keys like > F10 and 'a' and the Ctrl-x keys, but keys like XF86AudioNex

Re: gtk.image

2007-12-25 Thread Tomas Carnecky
ygtk expert, but that's what I could find out from the link I gave you and my experience with gtk+. > > On Dec 25, 2007 1:03 PM, Tomas Carnecky <[EMAIL PROTECTED]> wrote: >> brad smith wrote: >>> thanks for the reply, I tried everything I can think of, but sti

Re: gtk.image

2007-12-25 Thread Tomas Carnecky
to use another function. > On Dec 25, 2007 11:33 AM, Tomas Carnecky <[EMAIL PROTECTED]> wrote: >> brad smith wrote: >>> Hello everyone, >>> >>> I am using gtk.Image() and filling it with set_from_file with a random >> I assume you're using the py

Re: gtk.image

2007-12-25 Thread Tomas Carnecky
brad smith wrote: > Hello everyone, > > I am using gtk.Image() and filling it with set_from_file with a random I assume you're using the python bindings.. > image in a directory. I am trying to use gtk.get_image() to get the > name of the image currently being displayed but I get: > gImage = sel

Re: Button Callbacks

2007-12-19 Thread Tomas Carnecky
Vroni wrote: > Hi guys, > > I have this really dumb problem, but I can´t get my head around it. My > program should do the following: > > - When a button is pressed, a specific playlist[m3u]-file should be > opened in the media player. > > Sure, the first part is to add a callback for the butt

Re: Multi-threaded UI Freezes on GDK Call

2007-12-18 Thread Tomas Carnecky
Michael McCann wrote: > Michael R. Head wrote: >> On Tue, 2007-12-18 at 17:14 -0500, Michael R. Head wrote: >> >>> I assume you meant >>> >>> g_threads_init(); >>> gdk_threads_init(); >>> gtk_init(); >>> >>> gdk_threads_enter(); >>> gtk_main(); >>> gdk_threads_leave(

Re: [n00b] what's a smooth_draw_box?

2007-12-18 Thread Tomas Carnecky
Daniel Fetchinson wrote: > Hi list, > > I've just started with GTK and been going through the tutorial and > examples. My first small application is working all right but the > following (I guess) warning keeps being written to the console: > > CRITICAL **: smooth_draw_box: assertion `width >= -1

Re: I can't understand the difference output of only a line differ

2007-12-06 Thread Tomas Carnecky
Binary Chen wrote: > You don't know my situation. I am writing a media player which need to > copy the decoded bitmap into screen. > I am using gdk_draw_image to draw a GdkImage to the drawing area. > g_timeout_add is too slow because it need to update the screen > 20 > times/sec. > So I need to u

Re: C vs C++ for GTK

2007-11-25 Thread Tomas Carnecky
Tomas Carnecky wrote: > Allin Cottrell wrote: >> One reason for going with C is that the great bulk of free >> software is in C, including GLib and GTK. The main exception >> is Qt, the basis for KDE. So if you might want to get into KDE >> programming, maybe l

Re: C vs C++ for GTK

2007-11-25 Thread Tomas Carnecky
Allin Cottrell wrote: > One reason for going with C is that the great bulk of free > software is in C, including GLib and GTK. The main exception > is Qt, the basis for KDE. So if you might want to get into KDE > programming, maybe learning C++ would be better. You can use gtk in C++, there's

Re: C vs C++ for GTK

2007-11-24 Thread Tomas Carnecky
Patrick wrote: > is C++ to complicated? C++ is more complex than C, and thus harder to fully understand. > Is C going out of date? No, it's still being used for lots of projects. > Am I limited with C? No, there are very few features in C++ that are hard/impossible to imitate in C, but you usual

Re: exec application in windows

2007-11-20 Thread Tomas Carnecky
Michael Lamothe wrote: > > gboolean ii=g_spawn_comand_line_async ("C:/Archivos de > programa/GlobalMapper8/global_mapper8.exe",&error); > >> gboolean ii=g_spawn_comand_line_async ("C:/""Archivos de >> programa""/GlobalMapper8/global_mapper8.exe",&error); >> The two are exactly the same, C (pre

Re: How to get stuff out of a GValue?

2007-11-19 Thread Tomas Carnecky
Dan H wrote: > OK, I've got something in the form of a GValue (in this case, integer numeric > data > obtained with gtk_container_child_get()), and I'd like to get access to the > actual number inside. How is this done? I've looked into GValue's > documentation, but all I see is stuff that deals

Re: How can I access to main loop in GTK+ apps?

2007-10-31 Thread Tomas Carnecky
Tomasz Jankowski wrote: > I'm searching through API references for GLib and GTK+, for functions which > let me to attach new GSource to programs's main loop. I have no idea how to > get a pointer to main loop run with gtk_main_init. Can someone help me with > it? > I found this a few days ago: ht

embedding widgets

2007-10-24 Thread Tomas Carnecky
I have created a modification to transmission that changes the look: http://dbservice.com/ftpdir/tom/screenshot19.png each line is one custom widget, with a few pango text layouts and the progressbar in the background. That was quite easy, but how would I go about embedding for example a whole Gt

Re: integrating Gtk with Artoolkit

2007-03-01 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, Mar 01, 2007 at 10:02:04AM -0800, lucks wrote: > > hi.sorry i sent an incomplete message.it was an error.well, am trying to > build a gui that will interact with ARtoolkit which also uses C as language > and contain OpenGl libraries as well.i`

Re: combobox internal padding

2007-03-01 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, Feb 28, 2007 at 10:56:28AM -0600, Medora Schauer wrote: > [...] The problem I'm having > is that the rendering is resulting in a widget that is much bigger than > the font it is required to display. Using a Sans 8 font the amount of > "dead"

Re: keeping track of specific characters in a GtkTextBuffer

2007-02-21 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, Feb 21, 2007 at 04:44:27PM +, Adam Tertial wrote: > Hi, > > I need to be able to keep track of the location of > specific characters in a GtkTextBuffer, and I was > wondering what the most efficient way of doing that > was. Is it possible

Re: libglade frustration

2007-02-17 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, Feb 15, 2007 at 08:15:13AM +0100, David Nečas (Yeti) wrote: [...] > Definitely, but I'd put only snippets and smaller examples > to the manual itself. I hope we agree it makes no sense to > put the source of gtk-demo-like programs to the manua

Re: libglade frustration

2007-02-14 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, Feb 15, 2007 at 12:00:37AM +0100, David Nečas (Yeti) wrote: > On Wed, Feb 14, 2007 at 02:44:21PM -0800, [EMAIL PROTECTED] wrote: [...] > libglade developers do not produce any binary packages. > > Their product does come with examples. > > Re

Re: GObject docs improvements

2007-02-13 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, Feb 12, 2007 at 09:49:46PM +0100, David Nečas (Yeti) wrote: > On Mon, Feb 12, 2007 at 02:05:27PM -0600, Shixin Zeng wrote: [...] > > 2)How its intefaces handled, when a class is derived? Will the child > > classes possess the same interfaces,

Re: how to make an animation ;)

2007-02-10 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Feb 09, 2007 at 01:39:17PM +0100, Enrico Sardi wrote: > [EMAIL PROTECTED] pronuncio' le seguenti parole il 09/02/2007 10:19: > > Hi Tomas! [...] > > Even better: pixbufs know about animations and do it for

Re: how to make an animation ;)

2007-02-09 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Feb 09, 2007 at 01:02:20AM +0100, Olivier Ramare wrote: > Enrico Sardi wrote: > > Hi all! > > > > I want to make a simple animation in gtk with a pixbuf that rotates, how > > can I make it? > > > For every change of state of my application,

Re: scrolledview

2007-02-07 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, Feb 07, 2007 at 08:32:26PM +0100, Mehmet YASAR wrote: > [EMAIL PROTECTED] a écrit : [...] > >> how can I know that all the widget have done their size negotiations ? > >> I can't rely on the "realized" signal since the gtkvbox is already > >>

Re: scrolledview

2007-02-07 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, Feb 07, 2007 at 10:06:26AM +0100, [EMAIL PROTECTED] wrote: > Selon James Scott Jr <[EMAIL PROTECTED]>: > > > If you have caused the GtkVBox to be Realized, meaning all the widget > > have done their size negotiations > > OK, so I just need to

Re: GdkWindow's position

2007-02-04 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sun, Feb 04, 2007 at 08:58:33PM -0700, Michael Torrie wrote: > On Sun, 2007-02-04 at 03:25 -0300, Matí­as Alejandro Torres wrote: [...] > > Is there a way to get a widget's GdkWindow before it is drawn? > > I don't believe so. Because the window

Re: instal gtk on windows

2007-02-03 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sat, Feb 03, 2007 at 01:40:28PM +0100, nostradamo wrote: > I installed gtk2 on windows. I want > compile with gcc. but compiler can not find the hedaer files. > > For example gtk.h > > Ich i make a include with > "dir direkt to gtk.h" a list of

Re: gtk_text_buffer_insert() problem character code transfer

2007-02-03 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Feb 02, 2007 at 05:03:20PM +0800, 杨宇 wrote: > hi everyone, > > I have a GtkTextView to display the data in the buffer *buffer. > > The buffer i received from a socket consists of English and Chinese > Characters. > > How to display this C

Re: delete-event of GtkWidget

2007-01-21 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sat, Jan 20, 2007 at 03:52:24PM +0100, Enrico Tröger wrote: > On Sat, 20 Jan 2007 05:34:27 +, [EMAIL PROTECTED] wrote: > > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > > On Fri, Jan 19, 2007 at 06:52:03PM +0100, Enrico Tröger wrote

Re: delete-event of GtkWidget

2007-01-19 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Jan 19, 2007 at 06:52:03PM +0100, Enrico Tröger wrote: > Hi all, > > when I write big dialogs, I create it only once, keep the pointer to > the dialog and show it everytime I need it. In the response callback I > just use gtk_widget_hide to le

Re: question on gdkpixbuf

2007-01-19 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Jan 19, 2007 at 07:46:01PM +0530, Sudharshan S wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi everyone, [...] > the image is not persistent. Any idea as to why this is happening? > To draw the pixbuf, i use > gdk_draw_pixbuf(

Re: SOLVED: Re: Need to restore a window to last size/position on restart

2007-01-16 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, Jan 16, 2007 at 10:31:16AM -0800, Russell Markus wrote: > Thanks for the help. I was trying to get the window size and position after > the user clicked the X in the upper right corner, but I guess the window was > already destroyed before my

Re: move cursor with keyboard in a window

2007-01-15 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, Jan 15, 2007 at 08:41:35AM +0100, [EMAIL PROTECTED] wrote: > Thanks a lot!! > but...i this is my problem: > I need to plot points in an x_y plot,and then i'd like to move only in this > points, not in all the window. > Is it possible?? Ferri,

Re: move cursor with keyboard in a window

2007-01-13 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Jan 12, 2007 at 10:52:41AM -0800, Micah Carrick wrote: > [EMAIL PROTECTED] wrote: [...] > Here is example code using C/GTK+ (and GDK): > http://www.gtkforums.com/viewtopic.php?p=462 Nice. So I don't have to cook up an example now :-) Micah -

Re: How to capture mouse movements independend of a Window?

2007-01-11 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, Jan 11, 2007 at 09:45:49AM +0100, [EMAIL PROTECTED] wrote: > > > Thanks a lot!! > it seems good...but...can you tell me about where to find examples of using > it?? I'd like to cook up something, but it'll take a while. At the mopment I'm a

Re: Button -> Launch context menu? ^^

2007-01-10 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, Jan 09, 2007 at 10:33:34AM -0800, briansteffens wrote: > > Hi everyone.. I'm just getting my feet wet developing with Gtk+, a recent > convert from Win32/.NET. I'm developing on Debian Etch + Xorg + Gnome in > C++. I'm having trouble finding m

Re: Do we have a date control widget in gtk??

2007-01-08 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, Jan 08, 2007 at 03:33:09PM +0530, Sarath Potharaju wrote: > Hi ALL, > > I am relatively new and learning GTK, i am looking for a date control widget > which can do the following functionality, > > The date control will provide an indication o

Re: Information required

2007-01-08 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, Jan 08, 2007 at 03:27:09PM +0530, Sarath Potharaju wrote: > Hi Michael, > > Sorry for the delayed Response, the field widget is some thing "which allows > the user information into a form.The field widget allows for entering a > single line of

Re: How to capture mouse movements independend of a Window?

2007-01-08 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sun, Jan 07, 2007 at 10:56:48PM +0100, Andreas Stricker wrote: > [EMAIL PROTECTED] wrote: [fourth argument] > I should have RTFM more attentive [...] I sometimes turn screaming to the list too before having found the relevant bit in the FM. Lucki

Re: Using GLib main loop to free up temporary memory

2007-01-04 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, Jan 04, 2007 at 03:15:10PM +0100, David Nečas (Yeti) wrote: > On Thu, Jan 04, 2007 at 02:00:14PM +, [EMAIL PROTECTED] wrote: > > > > Try alloca() if you are into that sort of thing. It's frowned upon, > > because it is a BSD extension... >

Re: Using GLib main loop to free up temporary memory

2007-01-04 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, Jan 03, 2007 at 01:02:39PM -0200, Leandro A. F. Pereira wrote: > Greetings! [idle_free] Cute. But as Iago points out, you'll have to make sure that your app doesn't go into idle until the object is used. Tough call. I'd think it's more danger

Re: How to capture mouse movements independend of a Window?

2007-01-04 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, Jan 04, 2007 at 01:18:51PM +0100, [EMAIL PROTECTED] wrote: > Hello!! > I was trying to create a cursor on my window...and i did it thanks to > Tomas,and > to gdk_pointer_grab(). the problem is that i want to add the cursor, over a

Re: How to capture mouse movements independend of a Window?

2007-01-04 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, Jan 03, 2007 at 02:05:25PM +0100, [EMAIL PROTECTED] wrote: > Hi again!! Hi -- please, keep the list in Cc: so that others may comment/learn. > I think i didn't exlain well in my last mail...excuse me! > The thing i want to do, is to saw a cur

Re: How to capture mouse movements independend of a Window?

2007-01-04 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Dec 29, 2006 at 05:08:49PM +0100, Andreas Stricker wrote: > Yo tomas! Yo! hope you started well the new year. > But the main problem remains: Once the pointer (Pirate!!) touch the border > or the window, the mouse coordinate don

Re: How to capture mouse movements independend of a Window?

2007-01-03 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, Jan 03, 2007 at 12:18:17PM +0100, [EMAIL PROTECTED] wrote: > Hello!! hello! (please, keep the list CC'ed so that others may lurk/chime-in) > I'm new in this treatment, but your help is good for me. Glad it is :) > I compile your code in a

Re: How does one pipe output from process to text buffer? <-- FIXED

2006-12-31 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sun, Dec 31, 2006 at 10:45:59AM -0500, Tony Freeman wrote: > On Sun, 2006-12-31 at 05:43 +, [EMAIL PROTECTED] wrote: [NONBLOCK] > Thank you again! That was exactly the answer :-) The application does > not freeze at all now. > > Excellent!

Re: Reg: seg fault

2006-12-31 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sat, Dec 30, 2006 at 01:08:30PM +0530, Prasad Achar wrote: [130 lines] > Here... > > My problem is that ...when I enter disburse button in Fuction 1 > (disburse_loan ) ...the ( func 2) the fetch_entry is executed..but > > my pr

Re: How does one pipe output from process to text buffer? <-- FIXED

2006-12-30 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sat, Dec 30, 2006 at 12:15:33AM -0500, Tony Freeman wrote: > Thanks everyone, I have this working now :-) Special thanks to Tomas! happy it helped :-) Still strange that it blocks, though. Perhaps g_spawn_async_with_pipes(...) gives you chann

Re: How to capture mouse movements independend of a Window?

2006-12-29 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Dec 29, 2006 at 09:01:57AM +0100, Andreas Stricker wrote: > > I try to do something that is similar to some 3D projection plan > > window rotating/shifting function: When a key is pressed, the relative > > mouse movement should be recorded. > >

Re: How to capture mouse movements independend of a Window?

2006-12-29 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Dec 29, 2006 at 09:01:57AM +0100, Andreas Stricker wrote: > > I try to do something that is similar to some 3D projection plan > > window rotating/shifting function: When a key is pressed, the relative > > mouse movement should be recorded. > >

Re: How does one pipe output from process to text buffer?

2006-12-28 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, Dec 28, 2006 at 08:10:57PM -0500, Tony Freeman wrote: [...] > Thanks! > > I'm getting really close now! Thanks for your help. Glad it was useful. I'm keeping Zeeshan cc'ed -- he proposed using libgtk. Many things apply whether you spawn a

Re: How does one pipe output from process to text buffer?

2006-12-27 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, Dec 27, 2006 at 12:02:01PM +0200, Zeeshan Ali wrote: > Hello Tomas! > > >> Just a thought: Wouldn't it be a better idea to use a library [...] > 2. The API is a bit different in the upcoming release: 0.2. Yes, i

Re: How does one pipe output from process to text buffer?

2006-12-27 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, Dec 27, 2006 at 10:33:38AM +0200, Zeeshan Ali wrote: > On 12/27/06, Tony Freeman <[EMAIL PROTECTED]> wrote: > > Hello, > >Hi! > > > I need some example code or a tutorial for how to pipe output from a > > process to a GtkTextBuffer. > > >

Re: How does one pipe output from process to text buffer?

2006-12-26 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, Dec 26, 2006 at 10:41:33PM -0500, Tony Freeman wrote: > Hello, > > I need some example code or a tutorial for how to pipe output from a > process to a GtkTextBuffer. > > The idea of this program is to spawn off 6 or more ssh commands and have

Re: Proper way to show unique icon in treeview <--with code

2006-12-18 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sun, Dec 17, 2006 at 11:06:14PM -0500, Tony Freeman wrote: > > Hello, > > [...] > void build_server_list (GtkWidget *treeview) > { > GtkListStore *liststore; > GtkTreeIter iter; > GtkCellRenderer *text_renderer; > GtkCellR

Re: Problem with gtk

2006-12-16 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sat, Dec 16, 2006 at 04:55:48PM +0530, Naveen Kumar wrote: > Hi all, > > I am using an hand held device running on montavista linux, > 1) i wrote a c program > > int main () >{ > int i; i is uninitialized here. It contains

Re: FW: Need to get the widget focused

2006-12-13 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, Dec 13, 2006 at 10:01:13AM -0500, John K Luebs wrote: [...] > What idiots write this shit, and wy are they allowed to practice law? ...maybe because they otherwise would write programs :-D (SCNR) - -- tomás -BEGIN PGP SIGNATURE- Ve

Re: reg: callbacks

2006-12-13 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, Dec 13, 2006 at 12:43:00PM +0530, Prasad Achar wrote: > Hi > > I have a situation where in have to catch 2 different callbacks on 2 > different events from single fuction. > > Then how can i manage the below function.. > > whether i have to

Re: Question about mouse coordinates in GDK images

2006-12-12 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sun, Dec 10, 2006 at 06:43:07PM -0800, Erik Walter wrote: > I'm trying to do a fairly simple thing and I haven't been able to > find any answers (that work) to my problem. > > I just need to find the mouse (pointer) coordinates relative to a GDK

Re: A question about threads

2006-12-11 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, Dec 11, 2006 at 06:24:17AM -0700, Jim George wrote: > [...]. I suppose one advantage > of using threads to do the calculation (as opposed to an idle > callback) is that the app will run smoother on a dua

Re: A question about threads

2006-12-11 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, Dec 11, 2006 at 11:13:31AM +0100, Paolo Franzetti wrote: > Hi. > > I would like to put in a GTK application a button which is > "connected" to a function that performs a very long computational > task which do not freezes the application. [...

Re: When are these g_io_channel_*() input conditions occurring ?

2006-12-07 Thread tomas
d, if you e.g. do a CTRL-C or CTRL-| or whatever key combo is set up to signal the app). [1] http://en.wikipedia.org/wiki/SIGURG [2] http://en.wikipedia.org/wiki/Out-of-band [3] W. Richard Stevens, Unix Netwok Programming Regards - -- tomas -BEGIN PGP SIGNATURE- Version: G

Re: Handling picking with Gtk

2006-11-30 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, Nov 30, 2006 at 03:57:25PM +0100, Yann Renard wrote: > [EMAIL PROTECTED] wrote: > > > > [1] <http://freshmeat.net/projects/gtkcanvas/> > > [2] <http://www.atai.org/gtk-canvas/> > > &

  1   2   >