hi all,
Recently, I encountered stability problems on Apple OS X, especially
since MacOS 10.15. Prior versions worked perfect for me.
Can you share your expertise with me? Do you have the same problems?
My application `gsequencer` crashes often when adding ladspa cmt
plugin "feedback delay line
Hi again,
Yes, g_value_set_string() does call g_strdup().
bests,
Joël
On Thu, Feb 7, 2019 at 5:20 AM Joël Krähemann wrote:
>
> Hi all,
>
> Currently, I do my properties like following:
>
> http://git.savannah.nongnu.org/cgit/gsequencer.git/tree/ags/lib/ags_turtle.c?h
Hi all,
Currently, I do my properties like following:
http://git.savannah.nongnu.org/cgit/gsequencer.git/tree/ags/lib/ags_turtle.c?h=2.1.x#n175
http://git.savannah.nongnu.org/cgit/gsequencer.git/tree/ags/lib/ags_turtle.c?h=2.1.x#n218
Is it ok to do g_strdup() and pass it to
Hi,
As you set a string property of a Gtk+ widget, the string is usually
duplicated. However don't call any Gtk+ function outside the main loop,
i.e. from a different thread.
Bests,
Joël
On Fri, Dec 21, 2018 at 9:49 AM Lutz Lümken wrote:
>
> Hello,
>
> does GTK have some kind of string
Hi,
First you create a GdkPixbuf:
https://developer.gnome.org/gdk-pixbuf/stable/gdk-pixbuf-Image-Data-in-Memory.html#gdk-pixbuf-new-from-data
then set the property of about dialog:
https://developer.gnome.org/gtk2/stable/GtkAboutDialog.html#GtkAboutDialog--logo
g_object_set(your_about_dialog,
ta{
gint last_newline_position;
};
Well this is it.
Bests,
Joël
On Wed, Sep 26, 2018 at 7:12 AM Joël Krähemann wrote:
>
> Hi,
>
> g_object_get(your_text_view,
> "buffer", _text_buffer,
> NULL);
> g_signal_connect(your_text_buffer, "changed",
> G_
Hi,
g_object_get(your_text_view,
"buffer", _text_buffer,
NULL);
g_signal_connect(your_text_buffer, "changed",
G_CALLBACK(your_text_buffer_changed_callback), your_data);
void your_text_buffer_changed_callback(GtkTextBuffer
*your_text_buffer, gpointer your_data)
{
gint line_count;
-- Forwarded message -
From: Joël Krähemann
Date: Thu, Jun 21, 2018 at 1:31 PM
Subject: Re: question about gtk_dialog (gtk2)
To: Wojciech Puchar
Hi,
Alternatively, you could inherit GTK_TYPE_DIALOG and do your very own
object. During ::map() and ::realize() you are able
-- Forwarded message -
From: Joël Krähemann
Date: Thu, Jun 21, 2018 at 1:11 PM
Subject: Re: question about gtk_dialog (gtk2)
To: Wojciech Puchar
Hi Wojciech,
What about:
dialog = g_object_new(GTK_TYPE_DIALOG,
"window-pos
Hi,
I do Gtk+-2.0 stylish coding. Any suggestions on changes on code are
appreciated?
I would love to get feedback for following code style:
http://git.savannah.nongnu.org/cgit/gsequencer.git/tree/ags/audio/ags_audio.c?h=2.0.x
Hi Wojciech,
Some useful links:
https://wiki.gnome.org/Projects/GTK+/OSX/Building
https://github.com/jralls/gtk-mac-integration
Bests,
Joël
On Mon, Mar 26, 2018 at 12:50 PM, Wojciech Puchar
wrote:
> how to link (or otherwise do other things) to disable opening
Well, do a context menu and forget about it. In opensuse it is a
special package you install for Gnome3 :/
On Fri, Jan 26, 2018 at 12:30 AM, Alexander Koeppe
wrote:
> It's not really because of async execution.
> I just tried various gtk_window functions that trigger the
sleep(100 / 30);
g_main_context_iteration(NULL,
FALSE);
}
Your source is dispatched but gtk_main() is still within the loop shown above.
Bests,
Joël
On Thu, Jan 25, 2018 at 11:54 PM, Joël Krähemann <jkraehem...@gmail.com> wrote:
> Hi,
>
> Well there was some redundant code.
Hi,
Well there was some redundant code. This actually fixes it:
http://git.savannah.nongnu.org/cgit/gsequencer.git/tree/ags/X/file/ags_simple_file.c?h=1.5.x#n1904
Bests,
Joël
On Thu, Jan 25, 2018 at 11:16 PM, Joël Krähemann <jkraehem...@gmail.com> wrote:
> Hi,
> You do some asyn
Hi,
You do some async work? Read about:
g_timeout_add_full();
and
g_main_context_iteration();
You, can callback the to the UI forwarded event. I do something similar
as reading a file from a different thread:
. In
general you can add, remove and lookup objects of it.
It is really common to use hashmaps in its implementation.
Bests,
Joël
On Sun, Aug 13, 2017 at 12:33 PM, Sébastien Wilmet <swil...@gnome.org> wrote:
> On Thu, Aug 10, 2017 at 02:39:12PM +0200, Joël Krähemann wrote:
>> I us
Hi Sébastien,
I use some patterns like:
http://git.savannah.nongnu.org/cgit/gsequencer.git/tree/ags/audio/ags_recall_factory.h
http://git.savannah.nongnu.org/cgit/gsequencer.git/tree/ags/plugin/ags_lv2_manager.h
...
Or having an application context:
Hi
Why not doing a different approach? Provide serialization to your list
and pass it to AgsFunction?
I would love to see something alike in GSequencer. Thus I did a boxed
type AgsComplex.
The mention object above shall be able to solve mathematical equations.
Note I is not implemented for now.
Hi
Probably different locales. On linux you probably have an ASCII compatible
character coding or just UTF-8.
Note on windows iso8859-15 is available, at most for old versions.
I assume that you are running a windows codepage like 1252.
Bests,
Joël
On Wed, Jun 21, 2017 at 11:11 AM, David C.
Hi
If you do it using cairo you might be interested in the following function.
cairo_image_surface_get_data()
You get the pixels stored in your picture. It can be restored using memcpy()
what is actually quiet fast.
Bests,
Joël
On Tue, Mar 21, 2017 at 8:26 AM, F.Reiter
/gsequencer.git/tree/ags/audio/ags_audio.c#n781
Bests,
Joël
On Mon, Mar 20, 2017 at 6:37 PM, Joël Krähemann <jkraehem...@gmail.com> wrote:
> Hi
>
> You don't have to use myWidget->parent since you dereference the pointer.
> A pointer to a struct always points to the first
all.de> wrote:
> On Mon, 20 Mar 2017 18:10:16 +0100
> Joël Krähemann <jkraehem...@gmail.com> wrote:
>
>> Hi
>>
>> As Tristan told you. The struct contains the other struct as not using
>> a pointer.
>>
>> struct MyCompositeWidget
>> {
>&
Hi
No, you can talk in C of direct inheritance. Or implementing an interface.
As Tristan told you. The struct contains the other struct as not using
a pointer.
struct MyCompositeWidget
{
GtkAlignment alignment;
GtkBox *box;
};
The properties are inherited, too. As long you use
...
Further you might want to use GtkReliefStyle as doing borders.
cheers,
Joël
On Tue, Dec 13, 2016 at 7:39 AM, Joël Krähemann <jkraehem...@gmail.com> wrote:
> Hi
>
> I think all gtk drawing primitives are deprecated. You should use cairo
> instead.
>
> bests,
>
Hi
I think all gtk drawing primitives are deprecated. You should use cairo instead.
bests,
Joël
On Tue, Dec 13, 2016 at 7:37 AM, Joël Krähemann <jkraehem...@gmail.com> wrote:
> Hi Ondrej
>
> What about using GtkStyle?
>
> gtk_widget_get_style()
>
> Bests,
> Joël
&
Hi Ondrej
What about using GtkStyle?
gtk_widget_get_style()
Bests,
Joël
On Tue, Dec 13, 2016 at 6:33 AM, Ondrej Tuma wrote:
> At the moment, i just to get default widget border color. But, the
> gtk_style_context_get_border_color is deprecated... and i should to use
>
Cheers,
Joël
On Mon, Sep 26, 2016 at 1:50 PM, Matthias Clasen <matthias.cla...@gmail.com>
wrote:
> On Wed, Jun 1, 2016 at 3:40 AM, Joël Krähemann <jkraehem...@gmail.com>
> wrote:
> > Hi
> >
> > I want to generate an API reference of my libraries. How to tell
>
Hi
you might want to use before gtk_init():
putenv("LC_ALL=C.UTF-8\0");
putenv("LANG=C.UTF-8\0");
Bests,
Joël
On Tue, Oct 11, 2016 at 9:11 AM, Andrea Zagli wrote:
> i use g_date_time_format %A to get the full weekday name
>
> but under win i saw that the function
read_barrier_wait().
>
> Bests,
> Joël
>
>
> On Mon, Sep 12, 2016 at 5:17 PM, Joël Krähemann <jkraehem...@gmail.com> wrote:
>> Hi
>>
>> You can't do that without implementing your own widget because of
>> thread-safety issues. To do your own
>> GtkFl
Hi
Since I know Javax/Swing I can tell you there is no synchronize
keyword doing your magic.
Please take a look at pthread_mutex_lock(), pthread_cond_wait(),
pthread_cond_signal(), pthread_cond_broadcast()
or pthread_barrier_wait().
Bests,
Joël
On Mon, Sep 12, 2016 at 5:17 PM, Joël Krähemann
Hi
You can't do that without implementing your own widget because of
thread-safety issues. To do your own
GtkFlowBox implement GtkWidget:size-allocate and
GtkWidget:size-request the rest is up to you.
Don't forget doing mutices or use g_timeout_add() but this is single
threaded and is invoked by
Hi
You might want to use G_OBJECT_TYPE() or G_OBJECT_TYPE_NAME() take care
that the appriopriate get_type() function is called else the type
won't be found.
GType button_type;
gtk_button_get_type()
button_type = g_type_from_name("GtkButton");
g_object_new(button_type,
Hi
If your application should get being accepted you should consider ATK
https://developer.gnome.org/atk/
else forget the focus handling
cheers,
Joël Krähemann
On Mon, Sep 5, 2016 at 3:25 PM, Joël Krähemann <jkraehem...@gmail.com> wrote:
> Hi
>
> you mig
Hi
you might want to look at:
* gtk_widget_set_can_focus ()¨
* gtk_widget_set_events()
g_object_set(window,
"can-focus\0", TRUE,
NULL);
gtk_widget_set_events((GtkWidget *) window,
GDK_CONTROL_MASK
Hi
Why don't you inherit GtkApplication and override its functions? You
could interfaces to get what object you need.
Bests,
Joël
On Sun, Aug 14, 2016 at 12:00 PM, wrote:
> Send gtk-app-devel-list mailing list submissions to
>
Bests,
Joël Krähemann
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Bests,
Joël Krähemann
___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-devel-list
the editing could be started with a single click?
> The code is here:
>
> http://git.savannah.gnu.org/cgit/pspp.git/tree/src/ui/gui/psppire-var-sheet.c?h=treeview
>
> Friedrich
>
>
> Am 11.12.2015 um 18:26 schrieb Joël Krähemann <weedli...@gmail.com>:
>
> Hi Fri
a look at GMutex
and GCond.
With g_mutex_lock() and g_mutex_unlock() you're normally well served.
Bests,
Joël Krähemann
On Thu, Dec 10, 2015 at 1:00 PM, <gtk-app-devel-list-requ...@gnome.org> wrote:
> Send gtk-app-devel-list mailing list submissions to
> gtk-app-devel-li
hi, me just did a new Makefile.am and organizing code into libraries.
now me get a lot of following messages especially related to interfaces:
...
/home/minos/ags-code/src/ags/audio/recall/ags_volume_recycling.c:101:
undefined reference to `ags_dynamic_connectable_get_type'
Hello again, me fixed it by using different ordering, for now is:
gsequencer_LDADD = libags_audio.a libags_gui.a libags_thread.a libags.a
instead of:
gsequencer_LDADD = libags.a libags_thread.a libags_audio.a libags_gui.a
bests
Joël
On Thu, Mar 26, 2015 at 4:29 PM, Joël Krähemann weedli
Hi all
This probably the highest moment in my life, me just have to say you're
great! And thank you very much for your passion. It's definitively a
collaboration success, even me coded most myself ...
Some code was adopted by gimp further this mailing list helped me and
strengthen my motivation,
Am Freitag, den 24.10.2014, 23:16 +0200 schrieb Marcus Karlsson:
On Fri, Oct 24, 2014 at 04:02:01PM +0200, Joël Krähemann wrote:
Hi
Hi.
Gtk+-2.0 leaks memory, please take a look at: http://ags.sourceforge.net
Is Gtk+-2.0 still maintained?
Yes it is. The latest point release
Am Samstag, den 25.10.2014, 11:07 +0200 schrieb Joël Krähemann:
Am Freitag, den 24.10.2014, 23:16 +0200 schrieb Marcus Karlsson:
On Fri, Oct 24, 2014 at 04:02:01PM +0200, Joël Krähemann wrote:
Hi
Hi.
Gtk+-2.0 leaks memory, please take a look at: http://ags.sourceforge.net
Am Samstag, den 25.10.2014, 11:40 +0200 schrieb Joël Krähemann:
Am Samstag, den 25.10.2014, 11:07 +0200 schrieb Joël Krähemann:
Am Freitag, den 24.10.2014, 23:16 +0200 schrieb Marcus Karlsson:
On Fri, Oct 24, 2014 at 04:02:01PM +0200, Joël Krähemann wrote:
Hi
Hi.
Gtk+-2.0
Hi
Gtk+-2.0 leaks memory, please take a look at: http://ags.sourceforge.net
Is Gtk+-2.0 still maintained? Or is migrating to Gtk+-3.0 the only
choice? Or may someone could explain me what's wrong about:
AgsAudioLoop *audio_loop;
AgsGuiThread *gui_thread;
auto void
Am Samstag, den 20.09.2014, 14:54 +0200 schrieb Joël Krähemann:
Why do I get the following error:
**
Gdk:ERROR:/tmp/buildd/gtk
+2.0-2.24.10/gdk/gdkregion-generic.c:1110:miUnionNonO: assertion failed:
(y1 y2)
Abgebrochen
please take a look at:
https://sourceforge.net/p/ags/code/HEAD
Why do I get the following error:
**
Gdk:ERROR:/tmp/buildd/gtk
+2.0-2.24.10/gdk/gdkregion-generic.c:1110:miUnionNonO: assertion failed:
(y1 y2)
Abgebrochen
please take a look at:
https://sourceforge.net/p/ags/code/HEAD/tree/src/ags/audio/recall/ags_peak_channel.c
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Seems to be debian specific and as uncommenting some lines in main
function it runs as expected.
best regards
Joël
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Hi, what could cause the following error:
GLib (gthread-posix.c): Unexpected error from C library during 'malloc':
Resource temporarily unavailable. Aborting.
Abgebrochen
please take a look at http://sf.net/p/ags
You have to checkout from subversion in order to get error message. This
doesn't
This example does off-screen rendering:
http://doc-weedlight.rhcloud.com/tutorial/c-programming/book.html#idm248419471440
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
As I'm trying to use gtk_file_chooser_get_filenames_utf8 instead of
gtk_file_chooser_get_filenames getting the linker error during compile
time. This could be the root cause.
Am Freitag, den 09.05.2014, 07:11 +0200 schrieb Joël Krähemann:
Why do I get corrupted strings of GtkFileChooser when
Why do I get corrupted strings of GtkFileChooser when using it with
libxml2.
please take a look at sf.net/p/ags
==22743== 1 errors in context 1 of 15:
==22743== Invalid read of size 8
==22743==at 0x3EE9E89DEF: __GI_mempcpy (in /usr/lib64/libc-2.17.so)
==22743==by 0x3EE9E79408:
May be theme dependend? Try another one.
Am Mittwoch, den 02.04.2014, 12:13 +0200 schrieb Roland Koebler:
Hi,
according to the documentation (and the image on
https://developer.gnome.org/gtk3/stable/GtkPaned.html),
GtkPaned-widgets have a visible handle (e.g. 4 dots)
to show that the user
Hi, is there a concurrent GList around? It should use of atomic
operations. My project probably has need for it.
Due to concurrency problems. I believe I get those errors cause of
unfinished operations. Since I'm working on performance.
Please visit my project:
http://sf.net/p/ags
regards
Joël
On Mon, 2014-03-24 at 02:43 +0100, Colomban Wendling wrote:
Le 24/03/2014 01:36, Joël Krähemann a écrit :
[...]
The following will compile but is it still correct?
g_atomic_pointer_set((returnable_thread-safe_data),
NULL);
Yes, as the atomic_int
https://sourceforge.net/p/ags/code/1515/tree/src/ags/thread/ags_returnable_thread.c
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
On Mon, 2014-03-24 at 00:20 +0100, Joël Krähemann wrote:
https://sourceforge.net/p/ags/code/1515/tree/src/ags/thread/ags_returnable_thread.c
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo
On Mon, 2014-03-24 at 00:22 +0100, Joël Krähemann wrote:
On Mon, 2014-03-24 at 00:20 +0100, Joël Krähemann wrote:
https://sourceforge.net/p/ags/code/1515/tree/src/ags/thread/ags_returnable_thread.c
___
gtk-app-devel-list mailing list
gtk-app
On Wed, 2014-03-12 at 09:15 +, Richard Shann wrote:
On Tue, 2014-03-11 at 21:43 +0100, Joël Krähemann wrote:
[...]
Please consider the documentation of gtk_widget_set_app_paintable()
don't believe GtkLayout can do your job. You could try id with a
GtkDrawingArea with a cairo surface
On Tue, 2014-03-11 at 14:01 +, Richard Shann wrote:
On Tue, 2014-03-11 at 13:18 +0100, Joël Krähemann wrote:
On Tue, 2014-03-11 at 08:12 +, Richard Shann wrote:
On Tue, 2014-03-11 at 04:43 +0100, Joël Krähemann wrote:
On Mon, 2014-03-10 at 09:52 +, Richard Shann wrote
On Tue, 2014-03-11 at 21:14 +0100, Joël Krähemann wrote:
On Tue, 2014-03-11 at 14:01 +, Richard Shann wrote:
On Tue, 2014-03-11 at 13:18 +0100, Joël Krähemann wrote:
On Tue, 2014-03-11 at 08:12 +, Richard Shann wrote:
On Tue, 2014-03-11 at 04:43 +0100, Joël Krähemann wrote
On Sun, 2014-03-09 at 14:03 +, Richard Shann wrote:
From: Jo?l Kr?hemann j...@weedlight.ch
To: gtk-app-devel-list@gnome.org
Subject: Re: Help replacing GtkDrawingArea with GtkLayout
Message-ID: 1394327737.3369.3.camel@debian
Content-Type: text/plain; charset=us-ascii
Hi,
On Mon, 2014-03-10 at 09:26 +0100, Joël Krähemann wrote:
On Sun, 2014-03-09 at 14:03 +, Richard Shann wrote:
From: Jo?l Kr?hemann j...@weedlight.ch
To: gtk-app-devel-list@gnome.org
Subject: Re: Help replacing GtkDrawingArea with GtkLayout
Message-ID: 1394327737.3369.3.camel@debian
Do you have an other thread?
May be concurrency problems?
On Wed, 2014-03-05 at 01:43 -0500, Chris Moller wrote:
Okay, I'm out of ideas...
I'm writing an app, that among a lot of other stuff, has three mutually
interacting spinbuttuns, i.e., if I increment spinbutton A, its callback
then
Hi,
Didn't before but may be check the following:
g_object_set(G_OBJECT(layout),
app-paintable\0, TRUE,
NULL);
gtk_widget_set_events (GTK_WIDGET (layout),
GDK_EXPOSURE_MASK
| GDK_LEAVE_NOTIFY_MASK
| GDK_BUTTON_PRESS_MASK
| GDK_BUTTON_RELEASE_MASK
| GDK_POINTER_MOTION_MASK
Hi, I'm developing an application sf.net/p/ags. I don't want to run
gtk_main I do rather g_main_context_iteration. I'm using fedora and
recently updated to 20-beta. Gtk+ version is 2.24.22.
So my application crashes see below. Any suggestions?
[Thread 0x7fffc27fc700 (LWP 14908) exited]
[Thread
Hi
does someone know if there is a GThread implementation around that uses
gnu portable threads instead of pthread?
The problem is, on debian pthread_suspend and pthread_resume are just
missing.
___
gtk-app-devel-list mailing list
hi
in how many jiffies should gtk_main_iteration be called?
bye
Joël
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Hi
thank you for your response and interest. Time measurements are done
with jiffies as unit on GNU/Linux. This depends on timer frequency from
100 up to 1000 Hz.
I'd really like to know how much computing time does gtk+ need to do its
job.
I have something like the following and want to know
Hi,
I solved the problem by introducing a macro
#define AGS_GUI_THREAD_DEFAULT_JIFFIE 200
to calculate timing like
gui_thread-frequency = 1.0 /
(1.0 /
(double) AGS_DEVOUT_DEFAULT_SAMPLERATE *
(double) AGS_DEVOUT_DEFAULT_BUFFER_SIZE) *
(1.0 /
(double) AGS_GUI_THREAD_DEFAULT_JIFFIE);
Do I need to replace gtk+ main loop, to create widget's outside it?
namely gtk 2.24.20 and what about gtk 3.x?
please give some advice
regards
Joël
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
hello I get strange errors like
/home/link/ags/file/ags_file.o: In function `ags_file_class_init':
/home/link/ags/file/ags_file.c:32: multiple definition of `ags_file_class_init'
/home/link/ags/file/ags_file.o:/home/link/ags/file/ags_file.c:32:
first defined here
...
the application with full
hello I want to call in my application functions like gtk_window_show,
gtk_widget_real_show and others I've downloaded gtk source and the
distributions patches
however I get an linkage error undefined reference to gtk_window_show. I'm
using make and it's file looks like
$(AGS_DIR)ags:
75 matches
Mail list logo