chabayo wrote:
> ...the main problem is the execution of program code suppoesed to
> processed in uid 0 - system is Linux
>
> The fact: I tried to handle the events in /proc/acpi/events by my own
> application which integrates gtk handled display interaction.
>
> Because /proc/acpi/events is
Madhusudan E wrote:
> Hi All,
> I want my applications to be internationalized.
>
> I have included in my app
> #include
>
> and
> I have set LC_ALL = "zh_TWBig5"
>
> And I'm using the following way to describe my labels
>
> gtk_label_new ( _("Exit"));
>
> But my app is not reflecting the la
John Cupitt wrote:
> On 9/25/06, Andreas Stricker <[EMAIL PROTECTED]> wrote:
>
>> * There is a good howto somewhere, but I can't find it anymore
>
>
> I found these two helpful:
>
> http://www.gnome.org/~malcolm/i18n
> http://developer.gnome.or
Hi
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.
I'm primary interested if somebody solved a similar problem or got
an idea how to solve this.
I like to use a Key-Combinat
> Please don't laugh at me ;P Can someone explain me what reference counting
> is for?
Wikipedia explain it not too bad:
http://en.wikipedia.org/wiki/Reference_counting
For glib specific implementation details I recomment to read this document:
http://le-hacker.org/papers/gobject/
And a short
> 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.
>
> I'm primary interested if somebody solved a similar problem or got
> an idea how to solve this.
If you think it's im
Yo tomas!
> OK, here is a rough sketch (tested). As soon as the pointer crosses the
> window boundary (inward), it is grabbed (the app changes the cursor's
> appearance to show it). WARNING! IT IS A TRAP! Once your pointer is
> inside, you won't be let out. See to it that you have a console around
[EMAIL PROTECTED] wrote:
> Yo! hope you started well the new year.
Good new year to you too.
>> But the main problem remains: Once the pointer (Pirate!!) touch the border
>> or the window, the mouse coordinate don't change anymore.
>
> Well, that's what the fourth argument of GdkPointerGrab is f
> I need to move my cursor in a curve plotted in the window,using keyboard...how
> can i do it??
You should have read this whole thread. Then you find this documente here:
gdk_display_warp_pointer()
http://developer.gnome.org/doc/API/2.0/gdk/GdkDisplay.html#id2533888
The following note is from t
> INC=`pkg-config gtk+-2.0 --cflags`
> #LIB=`pkg-config gtk+-2.0 --libs`
> <-- works!!
> LIB=`pkg-config gtk+-2.0 xulrunner-gtkmozembed --libs` <-- crash
> all:
> gcc -g -Wall example.c $(INC) $(LIB) -o sample
>
> When linking without xulrunner-gtkmozembed works fine,
Mark A. Nicolosi wrote:
> Hi, I'm working on a game and I was wondering what would be best to use for
> drawing? I'm having a hard time figuring out how all the different drawing
> APIs fit together. As far as I can tell there is GDK, Cairo, GnomeCanvas
> (dead?), and other things like GooCanvas. E
Marcelo Armengot wrote:
> Days ago I start a thread with my problem.
> Problem is the same but I understand now (while debugging) more exactly
> the question.
>
> My gtk-program hungs up just in the gtk_main() called. And only hungs in
> Win32.
Did you call gtk_init() ?
Can you provide a short
Chris Vine wrote:
> On Wednesday 21 March 2007 17:50, Michiel Jan Laurens de Hoon wrote:
>
>>For my application, I need to run gtk_main but I want to quit gtk_main
>>when either input is available on stdin or the user presses Ctrl-C.
[snip]
>
> You can write to a pipe in the signal handler (assu
David Nečas (Yeti) schrieb:
> On Sun, Apr 01, 2007 at 07:58:53PM +0800, Kun Niu wrote:
>> I ran my application in console mode once.
>> No error message appears.
>
> If you do not link it as a console app, you won't see
> anything, the system does not give the program meaningful
> standard streams
Pavel A. da Mek wrote:
> When I want to use serial ports, shall I write separate code for Windows and
> for Linux, or is there some library function which would allow to do it in
> the platform independent way?
I have written portable code for this with timeouts for read and write
operations.
Michelle Konzack wrote:
> Am 2007-05-14 20:43:42, schrieb David Ne?as (Yeti):
>> On Mon, May 14, 2007 at 08:04:09PM +0200, Michelle Konzack wrote:
>>> Does
>>> setlocale("LC_ALL", "de_DE");
>>>
>>> not work?
>> It works. Future locale-dependent calls will use the new
>> locale.
>>
>> So if you
Nuno Lucas schrieb:
> How people do with very large list boxes? I was hopping I could have
> some form of just seting up the column headers and say I have 1
> rows and let the widget ask me for the data when it needs it.
>
> It seems a bit heavy to add 1 rows one at a time, as it seems I'm
David Nečas (Yeti) wrote:
> Ignore the inti parts there, though. I'd rather point to
>
> http://www.gnu.org/software/gettext/manual/gettext.html
>
> and after groking the basic concepts, look at any
> internationalized Gtk+ application as working real world
> examples are better than tutorials
Alan M. Evans schrieb:
> struct MyMutex {
> GStaticMutex mutex;
> };
Unless you add a define like "typedef MyMutex MyMutex" you have to
add the "struct" keyword. Otherwise this is an incomplete type the
compiler grouch about:
> MyMutex * MyMutex_new() {
Jonathan Winterflood schrieb:
> Wouldn't that be
> typedef struct MyMutex MyMutex;
> rather?
>
> Or for short :
> typedex struct _MyMutex {
>GStaticMutex mutex;
> } MyMutex;
Exactly. I should read my mail again, before sending it
Cheers, Andy
_
Tomasz Jankowski wrote:
> Second thing is GMainLoop's code. I'd like to know how it works. I read
> code, but it isn't to understand it for me. Are there any articles about it
> or so interesting threads in mailing list's archive? If i will find
> something interesting in archive, please tel me whe
Jonathan Winterflood schrieb:
> Maybe we should try and find out whether many people here are strongly
> annoyed by these messages and in that case make it list
> policy (or at least Good Practice) that any post sent to it should not have
> this message.
Yes there are many people strongly annoyed
Markus Müller schrieb:
> Debugging shows that the error occours when switching from View2 to View1:
> The Requisition of View2
> changes at this moment (!?) to x=17110 and y=17106 and the window tries of
> course to match these
> values when changing to View2.
If I understand, you work with a fi
Sujith wrote:
> 1 * Init various GUI elements including the track treeview.
> 2 * Read the DB and append elements to the treeview.
> 3 * call gtk_main() and wait for events.
What about:
1. Init various GUI elements including the track treeview.
2. Install a g_idle callback.
3. call gtk_main() and
John M Collins schrieb:
> The signals are sent by the daemon process to tell the receiving clients
> "you might want to refresh your display". It is for the receiving
> clients to worry about whether they do need to refresh their displays
> (the actual data is in shared memory).
>
> My first quest
Micah Carrick schrieb:
> When I am working with a structure from this library, I should be using
> those same functions on those structures right? Because *my* parts of my
> application (elsewhere) are using the g_ functions.
I won't mix them, depending on circumstance, see below.
> For exa
Andreas Stricker schrieb:
> Micah Carrick schrieb:
> I would prefer the later one. The first one can easily lead to errors,
> especially if the glib allocators don't use libc malloc implementation
> sometime.
I should have looked at a recent glib documentation, where it is
cle
Dave Howorth schrieb:
> G Hasse wrote:
>> But I realy NEED to create a longlived process (running for a week or
>> month)
[snip]
> IMHO, in this circumstance, you still shouldn't have the GUI start the
> long-lived process. You'll probably want some other mechanism to
> [re]start the process in the
Dutta, Seemanta schrieb:
> The way I decided to remedy this problem was with the below steps:
>
> 1. Call g_thread_init() in the main function before gtk_init() is
> called.
> 2. In the callback for 'clicked' signal for the'Burn' button, I use
> g_thread_create() to create a new thread which will
Michal Porzuczek wrote:
When you create a gtk_hscale the lower limit is automatically at the
top and upper limit at the bottom is there a way of changing this?
Have a look at gtk_range_set_inverted()
Cheers,
Andy
___
gtk-app-devel-list mailing list
sadhees kumar wrote:
1. I would like to know how to change the fonts of a button through
rcfile. The way which i tried was something like,
font = "-adobe-helvetica-medium-r-normal--*-100-*-*-*-*-*-*"
Try font_name instead of font:
font_name="Verdana Bold 34"
2.In the same example above, I
functions in crappy code.
glib provide much better an easier functions (g_strdup_printf,
g_snprintf etc.).
If you like to use char arrays without glib, then please use
the "n" versions snprintf() and strncpy().
My 2 cents
Andreas Stricker
_
>>> to add a new language (po file) to my project, i simply edit
>>> configure.in and add the language code to 'ALL_LINGUAS', and the po
>>> file gets compiled when i 'make'. now, how can i tell 'make' to
>>> compile with 'msgfmt -c' -- instead of simply 'msgfmt' -- so that
>>> the po file is ch
Roger Leigh wrote:
> It's also worth mentioning here that glib-gettextize is way out of
> date and should not be used (it should be removed and replaced with a
> wrapper around autopoint).
>
> Now that gettext provides "autopoint", there is no need for
> glib-gettextize. glib-gettextize doesn't e
Colossus wrote:
g_io_channel_read_line ( ioc, &line, NULL, NULL, NULL );
if (line != NULL )
{
fwrite ( line, 1, strlen(line) , fd );
g_free (line);
}
Come on, read this code carefully: If you assume that you alway extract
text-only data, i
Prabhakar Kushwaha wrote:
i want to know that
is there is any mehtod to chang color of Widgets other than style which
is done by writing in $HOME/.rc
Yes, you can programmatically change the style (and therefore the
color of the style as well).
RTFM:
http://developer.gnome.org/doc/API/2.0/gtk/
christophe schrieb:
What kind of widget sould i include in my GTK Glade designed application
in order to include a libxine based video viewer window ?
Are there some basic examples or docs about that ?
Custom made widget are added with the custom widget. This one needs a
callback function tha
Colossus schrieb:
It appears in my app that when a progress bar is pulsing and I close the
window by clicking on the X upper right button I receive the message in
the subject. If I wait for the progress bar to finish pulsing I don't
get the warning. Why this ?
It seems like the window destroy
Fernando ApesteguXa schrieb:
I'm developing a gtk/gnome application with two threads. An schema of
the application is this:
>
[SNIP]
thread_func is updating data periodically with a sleep pause.
At this point, I suppose the other thread is catching events normally
(in fact, tabs of the noteboo
Michal Kepien schrieb:
The white part of a text-accepting widget uses the "base" color, not
the "bg" color. The only way I know to set that is with a style:
style "myEntry"
{
base[NORMAL] = "#ff"# or whatever
}
class "GtkEntry" style "myEntry"
You can load this setting by placing th
Nicodaemus wrote:
I have a simple program with a label on the main window.
I place some text in the label and set the 'set_line_wrap' property of
the label to True.
However, when I run the script I notice that the text in the label does
not span the entire width of the window, as there are l
Luke Biddell wrote:
And while working I always have to do a make install if I change either the
pixmaps or the glade file so at runtime they can be found.
I'd love to know a better solution. Maybe the solution's not the use glade?
I'm not aware of another solution. I ended up by letting
the Pi
Matt Hull schrieb:
I am new to gtk and trying to draw a bitmap to the screen. the bitmap is
about 200 by 300 pixels with 8 bit rgb, total is 24 bits. alpha is
optional at the moment.
But important is only that it should be in a file format supported
by GTK (png, xpm, etc.)
for now it is 0xf
Andy Grebe wrote:
I've got a callback function where I want to change the background of
the entire window. I can set the color on startup using:
style = gtk_widget_get_style(topWindow);
style->bg[0] = c;
style->bg[1] = c;
style->bg[2] = c;
style->bg[3] = c;
style->bg[4] = c;
gtk_widget_set_styl
Saul Lethbridge wrote:
I'm wanting to load two images and fade between them much like the
ImageMagick command:
composite --dissolve 100 image1.jpg image2.jpg output.jpg
However I'm wanting to display the image as it dissolves from one image
to the other - so it will apear as if one image is d
Justin Clift wrote:
Wow, interesting way to encourage a newbie. :(
Sorry that was accidental.
As Andy suggested, is using the ImageMagick command itself acceptable,
then doing some kind of buffer flipping onto screen?
To be more obvious: ImageMagick provides a convenient image
manipulation
Laszls Monda schrieb:
Hi List,
I've just written a simple GDK application that basically converts an
input JPEG image to a BMP using a Pixbuf.
Unfortunately it segfaults.
8<
#include
int main(int argc, char *argv[])
{
gdk_init(&argc, &argv);
GError **error = NULL;
GdkPi
typedef struct Data_To_Be_Sent {
GtkWidget *scrolled_window_data_to_be_sent;
GtkTextBuffer *buffer;
GtkWidget *view_data_to_be_sent;
int sockfd;
} Data_To_Be_Sent;
My question is, is there a better way to do this? Is using a typedef
struct a good idea? my grasp of
Thomas Okken schrieb:
I would like to catch SIGINT in my GTK+ application,
to do a graceful exit. I was looking for the GTK+
equivalent of XtNoticeSignal(), but I guess there
isn't one;
No, I'm missing them too...
I read a few articles discussing the use of a pipe,
with an input source to ha
John (J5) Palmieri wrote:
Yes. It depends on your application. Some people will subclass a
GObject and add the window object plus all of the other widgets as
aggregates. If you are feeling more daring you can subclass your main
window where your app class would inherit from GtkWindow. However
Sandy K wrote:
When i add an image in a window, it is displayed
properly only in some screen resolution. I have a
screen resolution of 1024 * 768. The window is
displayed properly in this resolution. But when the
resolution is changed to either 800*600 or 640*480,
then the window screen goes out
All I want to do is change the font of a named GtkEntry widget in a
resource file. It used to work in gtk1.2. I have spent hours with
various combinations of "widget *.name.*" etc. to no avail. Does
anyone know how to do this in gtk2 ?
You didn't describe exactly what you did. What name ha
When I print the address of p in the funcl it prints a
address.
In the callback function it also prints the same for
ptr.
Then what's the problem.
Whether the address keeps the same or not, it points
to an invalid position in memory. This is quite basic C skill.
Also I use structures to pas
[EMAIL PROTECTED] wrote:
> I just thought of something else. I'm using asynchronous IO, which means
> that data coming into my serial port (caught via a kernel signal) can
> interrupt the gui and call some other code, which in turn tells the GUI to
> update various parts of it. Is it possible tha
Yiannis schrieb:
> Sorry if this is beyond the scope of this list but on the following
> message
>
> (md:2198): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT
> (object)' failed
>
> which is a runtime error I am wondering what is the (md:2198). Yes md is the
> program name..
Sander Marechal schrieb:
>>Adding prefix makes subjects less readable.
Ack. Especially because it's a /prefix/: The important part is moved
right and cropped in longer subjects.
>>Just filter it by "Sender" header and put it in different folder.
>>If you use IMAP it can be done on server side (eg
56 matches
Mail list logo