2015-10-28 20:05 GMT+01:00 Olivier Sessink <oliviersess...@gmail.com>:
> Hi all,
>
> I have a PiTFT, a 2.8" capacitive touchscreen for the Raspberry Pi on
> raspbian (gtk 3.10.x). It works perfect, except that I only receive button
> events, and I fail to receive
Hi all,
I have a PiTFT, a 2.8" capacitive touchscreen for the Raspberry Pi on
raspbian (gtk 3.10.x). It works perfect, except that I only receive button
events, and I fail to receive touch events. Also kinetic scrolling is not
working. What can I do to fix this?
I tried various things to get
On 09/12/2012 12:21 PM, Rudra Banerjee wrote:
[..]
strAuth = gtk_entry_get_text(GTK_ENTRY(e-entryAuth));
strEditor = gtk_entry_get_text(GTK_ENTRY(e-entryEditor));
Is it possible to add these strAuth, strEditor in those treeview's 1st
and 2nd column?
just acquire an iterator at the
On 09/12/2012 06:30 PM, Rudra Banerjee wrote:
Oliver,
Thanks for your reply.
The problem basically is to pass on the function argument from one to
other.
you need to create a header file (main.h) that has the enum, and
extern GtkListStore *treestore;
in main.c define GtkListStore *treestore;
On 09/03/2012 11:57 AM, Moritz Renftle wrote:
Hi,
I recently noticed the nice appearance of the path bar widget in the
GtkFileChooserDialog:
http://imagepaste.nullnetwork.net/viewimage.php?id=4889
This look is also used for the top bar in the new GNOME system-settings.
I was wondering
On 08/31/2012 04:48 PM, Rudra Banerjee wrote:
If they are in separate file, then,
$ gcc `pkg-config --cflags --libs gtk+-3.0` hello.c main.c -c
main.c: In function ‘main’:
main.c:13:5: error: ‘hello’ undeclared (first use in this function)
main.c:13:5: note: each undeclared identifier is
On 08/29/2012 05:17 PM, Carlos Pereira wrote:
Quite often widget colors are just a question of style but sometimes
this is not the case. I can think of medical applications, for example,
where colors can be critical.
In my case, I have a chemical periodic table made with GTK buttons, each
On 08/27/2012 06:27 AM, Jared Henley wrote:
I have a Gtk application that needs windows to be maximised at their
creation. This is specifically because i) there's a lot of information
in tables that needs maximisation in order to deal with sensibly, and
ii) quite a lot of these windows are
On 08/27/2012 09:30 AM, Frank Cox wrote:
My mailserver is small and I need to pace the email that I send to it to avoid
DOS-ing it. Therefore, I inject a pause of a fixed number of seconds between
sending each outbound email.
If I'm not allowed to pause the program, then how shall I create
On 08/23/2012 02:45 PM, Rudra Banerjee wrote:
Dear friends,
I am openning an existing file in textview from command line as:
textview = gtk_text_view_new();
gtk_container_add(GTK_CONTAINER(scrolledwindow), textview);
textbuffer =
On 07/02/2012 04:44 PM, Gabriele Greco wrote:
We have found a regression that block us to migrate our existing apps from
GTK 2.16.x to GTK 2.24.10 (20120208), it seems there is a memory leak in
g_idle_add() use or something related to queue_draw(), anyway the following
code (that I think is
can you post a larger bit of the code? it is difficult to see what's going on.
b.t.w. gtk_combo_box_new_text() is deprecated, use gtk_combo_box_text_new()
Olivier
2012/6/20 Rudra Banerjee bnrj.ru...@yahoo.com:
Thanks for your reply jjacky. This is a mistake; but does not changeing
the result.
after a bit of testing, it seems to me that the altgr key advertises
itself just as alt to gtk...
Olivier
2012/6/19 drkmkzs drkm...@gmail.com:
Hi,
I'm using a gtk application with an accelmap file. All shortcuts with
Control, Shift, or Alt are currently available.
But if I want to add some
that I haven't played
with the tab-curvature and tab-overlap style properties yet.
Olivier
2012/5/15 Olivier Sessink oliviersess...@gmail.com:
I haven't found a good way, but I'm looking to make them smaller. You
can use a different font in the labels, but with some themes (most
notably the gtk3
On 05/09/2012 07:10 AM, Rudra Banerjee wrote:
Dear friends,
I am a newbie in GTK and also in C itself. I am trying to develop a
table (thanks to awesome tutorials available). I am currently facing a
problem.
In the given code, its working fine. Posted is a minimal example I
managed to
On 04/30/2012 11:36 PM, Steve wrote:
If this doesn't work, you must be using a GTK theme that is overriding
the coloring of widgets.
Just confirmed that it is in fact the them preventing me from changing
the bg color of the button.
I vaguely recall that when i read the GtkRcStyle and
On 04/26/2012 09:04 AM, Paul wrote:
Hi there,
Sorry for the bump, but there's also another issue that's frustrating
me. If I compile the test application with the gtk_widget_set_hexpand
line uncommented I see more unexpected behaviour resizing the window
horizontally.
which gtk version are
On 04/25/2012 06:58 PM, Alessandro Francesconi wrote:
Hello everyone, I'm facing a problem with the development of a plug-in
for The Gimp program.
I'm writing here because it uses GTK libs and, actually, the problem
regards a crash of a GTK widget.
my experience is that the memory allocator
On 03/02/2012 04:00 AM, Xi Yang wrote:
Hi, everyone!
I use Glib's regular expression in a cycle, and find a rapid memory consumption
increase. Did I forget to release anything?
since nobody replied I'll give it a shot (without any C++ knowledge):
does seq.header.c_str() return a newly
On 03/05/2012 04:56 PM, Bernhard Schuster wrote:
No it does, not I already cross-read it and it looks fine, did you
give it a shot with valgrind?
no I did not, the comment was based just on your code. What does
valgrind report on your code?
Olivier
Regards
Bernhard Schuster
Am 5. März
On 02/21/2012 10:14 AM, Stefan Sauer wrote:
On 02/13/2012 03:18 PM, Manuel Ferrero wrote:
I'd like to have a button pushed every time I press the Enter key,
even if that button is not selected.
Let say I click on a text box, I write some text and then when I press
Enter the button is pressed.
On 09/12/2011 11:33 PM, Craig wrote:
On Mon, 2011-09-12 at 22:20 +0200, Florian Müllner wrote:
You are modifying the list in the loop until g_list_next() returns
NULL ...
Right. I understand this now. However, I thought using g_list_first()
would set GList *events back to the first
On 05/09/2011 01:36 PM, Gabriele Greco wrote:
just a note on your example code: use the GPOINTER_TO_INT and
GINT_TO_POINTER macro's to avoid 64bit portability problems:
gboolean mycbk(gpointer data)
{
gint val = GPOINTER_TO_INT(data);
char buffer[16];
sprintf(buffer, %09d,
On 05/06/2011 09:28 AM, Olivier Sessink wrote:
Hi all,
valgrind reports a memory leak in the following code:
gint
widget_get_string_size(GtkWidget * widget, gchar * string)
{
PangoLayout *layout;
gint retval = -1;
layout = gtk_widget_create_pango_layout(widget, string);
if (layout != NULL
On 05/07/2011 12:00 AM, Bill C wrote:
On 06/05/11 17:28, Olivier Sessink wrote:
Hi all,
valgrind reports a memory leak in the following code:
gint
widget_get_string_size(GtkWidget * widget, gchar * string)
{
PangoLayout *layout;
gint retval = -1;
layout = gtk_widget_create_pango_layout(widget
On 05/05/2011 09:37 PM, Allin Cottrell wrote:
There's one thing I've never quite understood: the correct
mechanism for destroying a gtk widget that is never parented or
shown.
The context is that I'm creating a temporary widget with
gtk_label_new(), just for the purpose of getting hold of its
Hi all,
valgrind reports a memory leak in the following code:
gint
widget_get_string_size(GtkWidget * widget, gchar * string)
{
PangoLayout *layout;
gint retval = -1;
layout = gtk_widget_create_pango_layout(widget, string);
if (layout != NULL) {
On 11/05/2010 11:47 AM, Paolo Borelli wrote:
Actually, gtksourceview is a subclass of gtktextview so it supports BiDi
and i18n as good as gtktextview does. If it doesn't it is a bug.
With regard to the performance differences, it seems very strange that
you see a difference, especially one
Hi all,
loading 1Mb of UTF-8 encoded text into a gtk text view seems to take
much more time than loading the same buffer into gtksourceview. Since
gtksourceview has all of the functionality of gtktextview and more,
where is this difference coming from? And does this mean that we can
improve the
On 07/04/2010 07:57 AM, Carlos Pereira wrote:
On 07/04/10 06:17, Nader Morshed wrote:
statusbar = gtk_statusbar_new ();
label = gtk_statusbar_get_message_area (GTK_STATUSBAR (statusbar));
gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5);
Thanks Nader, I believe you are in the right
On 08/04/2010 07:11 PM, Monchai Lertsutthiwong wrote:
Hi,
I am quite new for GTK+. What I try to do now is to plot all details
in an XML file into a tree-structured view. For a big tree, there
may be a + button to expand the tree. Is there any good example
code for it?
not 100% relevant
On 08/03/2010 03:55 AM, a qi wrote:
HI,ALL
for example:
I use firefox to open a webpage, how can I read contents of that
page ? so that I can filter out unwanted information by programming
you probably want to ask this on a Firefox development mailinglist.
Firefox has it's own
On 07/28/2010 09:15 AM, John Emmas wrote:
This morning I've come across this mailing list which has got me
confused:-
http://sourceforge.net/mailarchive/forum.php?forum_name=gtk-osx-users
Up until now I'd assumed that gtk-osx was produced / administered by
gnome.org but the above mailing list
it would be good if the gtk tutorial would spent some pages on
threads. In these days where multicore cpu's are becoming the standard
a lot of programs can benefit from threads.
I'm willing to help with that, I contacted the webmasters from gtk.org
about it some time ago but I never received a
2010/6/27 Mick bare...@tpg.com.au:
In veiw of the nightmare I've had finding non-trivial example code for
assembling/implimenting gtk widgets recently I have decided to attempt
to assemble a library of functions that impliment a task at a more
advanced level than your typical 'Hello world'
Hi all,
what are the advantages of using gtk_ui_manager_add_ui_from_string()
using a inline compiled string vs. gtk_ui_manager_add_ui_from_file() ?
from_string() enlarges the executable, but the executable is one file
that is read from disk as a contiguous block, from_file() makes the
Nischal Rao wrote:
is there any way to listen to signals without calling gtk_main() (which
never returns) ? If so, then i ll be able to get rid of
threads(happily!!) I am new to glib threads and gnome signals.. i
have just been following examples that i found on the net.
What kind of
Nischal Rao wrote:
the sample code is:
[..]
your use of threading doesn't make sense. All your threads are within a
lock, so you have three threads (main + two threads) but they can never
execute any instructions in parallel, because they all wait for the
global gdk lock.
Everything you want to
Micheal Smith wrote:
That could work. I've thought of similar tricks already myself. I just
figured that had to be the wrong way to go about it. Is there nothing
supplied by the API to support something like this?
you can use a filter, and make the treeview refilter for every key press
in
what works and what does not? if your focus is in the text widget I
guess you get the 'textview copy' action, and if your focus is
elsewhere you get the menu callback ? Or is it different?
b.t.w.: do your users expect that ctrlc works differently in a
different context?
Olivier
2010/3/1 Xiaoyu
Hi all,
it seems that are two (or more) choices how to work with threads in
gtk. You can #1 use a global lock and call gtk from any thread, or you
can #2 limit your gtk calls to the main loop and not use the global
lock. As far as I understood, method #2 is portable to win32, and
method #1 is
2010/2/10 Tor Lillqvist t...@iki.fi:
g_spawn_async_with_pipes() to launch an other executable (firefox in this
case).
Do you expect to provide input to Firefox's stdin, or get output from
its stdout, through the pipes then? (That would be a bit strange for a
GUI app like a web browser,
Hi all,
we're porting a gtk application to windows, and we're using
g_spawn_async_with_pipes() to launch an other executable (firefox in
this case). For some reason it fails to execute the binary, locks the
gtk application, and nothing happens anymore. We've tested with a full
path to the
Nikolaj Kiær Thygesen wrote:
Hey list,
I'm currently writing a multi threaded gtk-app, and knowing that
calling gtk_main() simultaneously from different threads is a no-go,
it's more subtle: calling gtk functions simultaneous from different
threads is a no-go. gtk (and X) is not thread-safe.
Hi all,
we have excellent portable GModule functions for module loadingin glib,
but how do we compile them in a portable way? I thought libtool was the
solution, but I have little success there.
My plugin uses symbols that are exported by the application, and the
plugin exports a single symbol
Hi all,
if data is set with g_object_set_data(), is that automatically freed if
the object is unreffed?
Olivier
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
of devices may dynamically
change with the type of device connected.
regards,
Olivier Sessink
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Christoph Simon wrote:
Hi,
I'm trying to write a gtk+ program which is chatting with a server
while allowing the user to do other things. Initially I'm using
g_io_add_watch() which works fine while waiting for read and write
events. The problem is, that the server is always write-ready,
Evan Behar wrote:
I've been getting seg-faults when I try to work with data in my button
clicked callback functions, so as a test, I compiled and ran the
following program:
#include gtk/gtk.h
gchar m1[] = button 1;
gchar m2[] = button 2;
static void callback(GtkWidget* widget,
Gus Koppel wrote:
Using such a feature like GMemChunk makes sense only if the size of the
objects (atoms) isn't too small (less than about 16 bytes as a rule of
thumb). Your atoms appear to be the smallest ones possible at all.
GMemChunks are especially helpful for linked lists of any sort.
Dennis Morgan wrote:
Hi,
i am just wondering if there is a way to halt a call back till another one
has finished using a function?
there is a g_signal_handler_block() function which does this
store the return value of g_signal_connect() in your data structures,
and use it to block or
Kurucz Istvan wrote:
Hy !
'I'm developing an application in GTK+ under Linux using programming
language 'C' and I'd like to create an option which allowes cooperation
with the 'Session Saver' function.
I'd like something like the 'gnome terminal'- so if the user asks for the
'Session
Dennis Morgan wrote:
Hi Olivier,
Can you explain something. the g_signal_handler_block function, am i right in
thinking
it goes inside the call back function itself?
no, you when you call _block(), from that moment on the signal handler
will not be called anymore for that signal, until you
is when *not* to use GMemChunk, and when *to
use* GMemChunk.
thanks,
Olivier Sessink
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Iago Rubio wrote:
I've tried to simply set the filter function in the callback:
GtkFileFilter *filter =
gtk_file_chooser_get_filter(GTK_FILE_CHOOSER(dialog));
gtk_file_chooser_set_filter(GTK_FILE_CHOOSER(dialog), filter);
but that doesn't trigger the refiltering...
Not quite elegant and
Colossus wrote:
The red bytes do not correspond to the written ones:
Bytes letti: 65536 Bytes scritti: 65536
Bytes letti: 65536 Bytes scritti: 2015
Bytes letti: 65536 Bytes scritti: 0
Bytes letti: 65536 Bytes scritti: 0
Bytes letti: 65536 Bytes scritti: 0
Bytes
Colossus wrote:
Hi,
I red the docs on GIOChannels but I'm stuck regarding what means
resource temporarily available
with non-blocking I/O that means that the buffers are full, so the call
will not process all your data, and to avoid that this function will
block your application, it will
Allin Cottrell wrote:
I've successfully used memprof for leak-checking my app in the past, but
on trying it recently something odd happens: memprof starts up OK, and
it also starts up the target program, but the target program is not
visible (doesn't appear on screen) and memprof records no
to simply set the filter function in the callback:
GtkFileFilter *filter =
gtk_file_chooser_get_filter(GTK_FILE_CHOOSER(dialog));
gtk_file_chooser_set_filter(GTK_FILE_CHOOSER(dialog), filter);
but that doesn't trigger the refiltering...
Anybody an idea?
thanks,
Olivier Sessink
is probably to spawn 'cat', read some text
file, and print everything you read from the stdout of the process to
the terminal. The terminal should then show exactly the contents of your
text file if everything is OK.
regards,
Olivier Sessink
Colossus wrote:
[..]
g_io_channel_read_line ( ioc, line, NULL, NULL, NULL );
//do some things on line
//shall I g_free (line) here ?
g_io_channel_read_line ( ioc, line, NULL, NULL, NULL );
//ecc
My doubt is: shall I free line before the second call to
g_io_channel_read_line or I can call
Colossus wrote:
- Messaggio originale Da: Olivier Sessink
[EMAIL PROTECTED]
1) spawn 'cpio -tv' with a pipe in and a pipe out 2) create
non-blocking g_io_channels from these pipes 3) register callbacks
with g_io_add_watch() for the io channels, one of these functions
Colossus wrote:
Hi,
How can I code with g_spawn_* glib routines the command in the subject
line ? Alternatively I noticed that
cat file.cpio | cpio -tv also works but how to implement also this
with g_spawn family ?
1) spawn 'cpio -tv' with a pipe in and a pipe out
2) create non-blocking
for such things
regards,
Olivier Sessink
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Colossus wrote:
Hi,
I need to launch these three processes:
1) bzip2 -dc archive.tar.bz2 /tmp/foo.tar
2) tar --delete -vf /tmp/foo.tar file_to_del
3) bzip2 -c /tmp/foo.tar archive.tar,bz2
only when each of them exits. Shall I use g_spawn_sync ?
How to code the run of all of them ?
Will Luesley wrote:
I had thought this might be a design problem I was trying to solve with
code. I've got a long list of items with a single attribute to set for
each, e.g
| Field Name One | Some static info | User editable value
| Field Name Two | Static info | User editable
,gpointer data){
gint position;
g_object_get(object, pspec-name, position, NULL);
/* do something */
}
g_signal_connect(G_OBJECT(hpane),notify::position,G_CALLBACK(hpane_notify_position_lcb),
NULL);
regards,
Olivier Sessink
Colossus wrote:
I tried with g_spawn_async_with_pipes and with gspawn_async
but it does not work. In the first case the output (the decompressed
bzip2 file) is redirected to a GTK window so I used g_spawn_async (no
pipes) but the output is directed to the shell window from which I ran
my
Will Luesley wrote:
I've got a TreeView which has four columns, one of which is editable.
There are two things I am trying to do to make editing easier for the
user, but I can't see how to achieve either:
1) Starting editing with a single click on the editable cell. That is,
if a user
flood wrote:
use gtk_widget_set_size_request ()
but if the user doesn't change the data, why not use a GtkLabel ?
Thank you. As far as the label goes, I would use it if you could
change the background color to white.
that is a little tricky: a label doesn't have a background, so you will
flood wrote:
Hello, In my app I have a text entry widget that will display a small
number, usually 1-10. However, when I added the entry widget I noticed it
was very big compared to the amount of text that will be stored in it. Also
I should mention the user will not be changing the text
. Should be in bugzilla somewhere already.
regards,
Olivier Sessink
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
,
Olivier Sessink
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
what I do.
regards,
Olivier Sessink
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
On Sat, 21 May 2005 14:51:05 +0200
Gyözö Both [EMAIL PROTECTED] 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?
that a dialog box is shown for a document
that is not on the current virtual desktop. So I only want to give dialogs
for windows that are on the current desktop.
thanks,
Olivier Sessink
___
gtk-app-devel-list mailing list
gtk-app-devel-list
Stefan Kost wrote:
Hi Olivier,
I've just browsed over the docs from glib, gobject and gtk. I though
these rules are somwhere in there, but I didn't found them. I've also
looked at
http://developer.gnome.org/doc/guides/
http://developer.gnome.org/doc/tutorials/
Now the question is where
Peter Bloomfield wrote:
On 05/10/2005 10:11:40 AM, Olivier Sessink wrote:
[ snip ]
thanks for the clarification. where did you find this information?
I don't recall--certainly not from the docs! Partly experimentation--I
noticed that some objects weren't getting finalized.
I'll
Stefan Kost wrote:
Hi Olivier,
I am afraid this report is invalid. It is common behaviour in
glib/gobject based applications that when returning data
* gobjects are reffed and need to be unreffed when done
* strings are strdup'ed and should be freed (unless they are marked as
const)
such
On Fri, 28 Jan 2005 10:48:35 +0100
Gyözö Both [EMAIL PROTECTED] wrote:
hello,
i hope i'm not asking anything that's already been clarified before; the
archives of this list are huge and i couldn't find out whether this has been
asked before.
i'm writing a gtk+2 application (the
80 matches
Mail list logo