Hi:
You have the GDK_IS_WAYLAND_DISPLAY() C macro. You have an example in my
program Terminus ( https://gitlab.com/rastersoft/terminus ), in the
'checkwayland.c' and 'checkwayland.vapi' files (which is also an example
of how to do it in Vala, BTW).
El 8/2/19 a las 6:28,
Ok, now I thing I got it. Thank you very much!
El 29/03/18 a las 16:28, Emmanuele Bassi escribió:
On 29 March 2018 at 15:12, rastersoft <mailto:ras...@rastersoft.com>> wrote:
[get the Gtk font type and size]
Ops, sorry: I'm reworking a backup
[get the Gtk font type and size]
Ops, sorry: I'm reworking a backup utility that I wrote (cronopete), and
I added a timeline with the backups (you can see an screenshot at
http://www.rastersoft.com/cronopete_screenshot.png ). As you can see, at
the left is the timeline and it has the days, mont
Hi:
[get the Gtk font type and size]
No, you seriously don't.
Unless you want to do something fancy, all you need to do would be (in
"draw" handler):
Well, that's the point: I want to do "something fancy". That's the
problem O:)
Describe your usecase then - my crystal ball is *still* o
El 28/03/18 a las 23:02, Rafał Mużyło escribió:
On Wed, Mar 28, 2018 at 08:20:21PM +0200, rastersoft wrote:
Hi all:
I want to paint in a Cairo canvas some letters, and I want to use the
default tipografy and size from Gtk to give it coherence with all the
buttons and so on, no matter if the
Hi again:
How can I do a button bar like the one used in nautilus to show the
current path, that when there are too many buttons to fit in the screen,
it adds two extra buttons to "scroll" them?
Thansk.
___
gtk-app-devel-list mailing list
gtk-app-d
Hi all:
I want to paint in a Cairo canvas some letters, and I want to use the
default tipografy and size from Gtk to give it coherence with all the
buttons and so on, no matter if the user changes it. So the question is:
how can I get it?
Thanks.
Hi:
Thanks. That explains the problem: the .desktop file differs from the
program because the program ends in .py :(
El 03/12/17 a las 00:44, Emmanuele Bassi escribió:
Hi;
On 2 December 2017 at 22:34, rastersoft wrote:
I created several applications that make use of Gtk.window, and set
Hello:
I created several applications that make use of Gtk.window, and set a
window icon. But recently I discovered that, under wayland, the icon is
not shown in the dash, but under X it is shown fine. It fails both in
python3 and Vala applications.
In both cases I used Glade to generate the
Hi:
El 30/11/17 a las 13:11, bas...@starynkevitch.net escribió:
Beware that releasing such a static library in binary form (without
its source code) is probably a violation of the LGPL license.
Read carefully the LGPL2.1 license of GTK.
https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.ht
Hi:
You can create a class (and instantiate an object) with the methods, and
pass "self" to connect_signals. Something like:
class myclass:
def __init__(self):
builder = Gtk.Builder()
builder.add_from_file("example.glade")
builder.connect_signals(self)
def onDele
If someone wants to test it, the code is at
https://github.com/rastersoft/terminus
El 23/08/16 a las 19:39, rastersoft escribió:
> This is odd! If I change
> "org.gnome.desktop.wm.preferences.disable-workarounds" to TRUE,
> everything works fine
>
>
> El 23/08/16 a la
False alarm... it doesn't work :(
El 23/08/16 a las 19:39, rastersoft escribió:
> This is odd! If I change
> "org.gnome.desktop.wm.preferences.disable-workarounds" to TRUE,
> everything works fine
>
>
> El 23/08/16 a las 19:11, rastersoft escribió:
>> We
This is odd! If I change
"org.gnome.desktop.wm.preferences.disable-workarounds" to TRUE,
everything works fine
El 23/08/16 a las 19:11, rastersoft escribió:
> Well, it seems that destroying the window and creating it again also
> doesn't work.
>
> It seems that I can&
Well, it seems that destroying the window and creating it again also
doesn't work.
It seems that I can't "steal" the focus when it is in other application,
but if my app has the focus in one window, I can pass it to another one
using grab_focus().
El 23/08/16 a las 16:24,
Hi:
>> It's not a problem of being early: I even tried to put a 1-second timer
>> to call to grab_focus(), but didn't work.
>>
>> In fact, the first time I create the window it works fine, but seems to
>> fail when I hide it and show it again.
> So it may be related to the window manager?
I suspe
n, 2016-08-21 at 21:56 +0200, rastersoft wrote:
>> I tried to
>> call "grab_focus" on the "map" callback... but doesn't work.
> The map signal may be too early.
>
> Maybe g_signal_connect_after() may work.
>
> After map signal map_event is emmited
Hi all:
I'm creating a guake-like terminal, but I'm having problems to ensure
that the window has the focus.
The idea is that I have a global shortcut that, when pressed, will show
a terminal window. The problem is that, under certain circumstances, I'm
unable to ensure that the window will recei
Hi all:
Gtk.Widget.override_background is deprecated. How should I replace it? I
read something about CSS, but not sure how to do it...
Thanks.
--
Nos leemos
RASTER(Linux user #228804)
ras...@rastersoft.com http://www.rastersoft.com
__
Hi all:
I'm trying to port Panther Launcher (a Slingshot launcher fork) to make
it work fine under Wayland. Unfortunately, Wayland doesn't allow to say
"put window here"; but I suppose you can specify in some way that a
window must be put in specific places (like centered, at top-left, and
so on).
Hi all:
Is it possible to use Gtk widgets in an Atom editor extension? If not,
is it possible to embedd the atom editor inside a Gtk window?
Thanks.
--
Nos leemos
RASTER(Linux user #228804)
ras...@rastersoft.com http://www.rastersoft.com
__
And other window managers? That's the problem...
El 05/01/16 a las 03:06, Franco Broi escribió:
> I find that the window manager (I'm using Cinnamon) will move the window
> if the bottom overlaps a taskbar.
>
> On Tue, 2016-01-05 at 00:25 +0100, rastersoft wrote:
>> H
Hi all:
I want to place a window at the bottom-left part of the screen. The
first idea is to get the screen resolution and substract the window
size; unfortunately, desktops can have taskbars, so the desktop size is
always smaller than the physical resolution.
How can I do that? How can I get the
El 01/01/16 a las 12:38, Enno Borgsteede escribió:
> Op 01-01-16 om 12:01 schreef rastersoft:
>> Hi:
>>
>> I noticed a similar effect with the "open file" widget/window, where
>> some entries doesn't show the icon until I move the cursor over them, or
&g
Hi:
I noticed a similar effect with the "open file" widget/window, where
some entries doesn't show the icon until I move the cursor over them, or
do a scroll with the mouse wheel.
El 01/01/16 a las 04:46, Franco Broi escribió:
> On Thu, 2015-12-31 at 16:35 -0500, Rena wrote:
>> On Wed, Dec 30, 20
2PM +0200, rastersoft wrote:
>> Hi all:
>>
>> Yesterday I tried to open the Glade ui files from Gedit, but glade
>> returned an error because they use header bars.
>>
>> I cloned the GIT repository of Glade, compiled and installed it (devel
>> version, 3.19.0), b
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512
Hi all:
Yesterday I tried to open the Glade ui files from Gedit, but glade
returned an error because they use header bars.
I cloned the GIT repository of Glade, compiled and installed it (devel
version, 3.19.0), but it still shows an error instead
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512
Hi:
Thanks!
El 08/10/15 a las 23:46, Marcus Karlsson escribió:
> On Thu, Oct 08, 2015 at 10:54:01PM +0200, rastersoft wrote:
>> Hi all:
>>
>> I want to fix the problem in GTK, that doesn't show the "close"
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512
Hi all:
I want to fix the problem in GTK, that doesn't show the "close" button
when it is put at the left side and the left panel is visible. But to do
so in a consisten way I need a way of painting a standard "close"
button, the one used in gtk_he
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512
Thanks Tristan. Now I understand why an user sent me the UI files for
DevedeNG recreated with Glade 3.19 O:)
On 06/09/15 20:23, Tristan van Berkom wrote:
>
>
>> On Sep 5, 2015, at 1:09 PM, rastersoft wrote:
>>
>>
&
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512
Hi all:
I'm using a GtkFileChooserDialog created with Glade, but I receive a
warning when I create it:
Warning: Content added to the action area of a dialog using
header bars
I suspect that this is because I added Cancel and OK buttons
2015 15:33:19 +0200
> rastersoft wrote:
>> Thanks for your answer. Unfortunately, I'm running out of options:
>> currently I'm using threads, but there is a nasty bug that makes my
>> program crash sometimes. It is very subtle, because it hapens usually
>> af
remove that bug, but its imposible, so I
decided to separate the code in two independent processes to be able to
use valgrind and finally find what is happening. But as you say, it
seems I'll have to do something else...
On 01/09/15 15:12, Chris Vine wrote:
> On Tue, 1 Sep 2015 13:54:34 +0
Hi all:
I'm working on a project which, for several reasons, will use the Posix
fork() call. The question is: if I have an active GTK main loop in the
program before calling fork(), is there something I have to do after
calling it in the child process? I know that I must NOT use Gtk calls in
the c
Hi all:
I'm using a Gtk.ColorButton in an app to set a color, but I need it to
have alpha value. The problem is that the new ColorChooser interface is
confusing for the users, because, by default, it shows just a list of
opaque colors and they have to click the "+" button and then it shows
th
Hi:
Try to set a text into the bar.
El 14/11/14 a las 21:35, Mark Cianfaglione escribió:
I've developed an application using GTK3 and the theme seems to be more
important on the look and feel than with GTK2.
In my GTK3 application (for Windows 64 using MinGW-w64) the
gtk_progress_bar is thin.
e to know, what your problem
is about having the Fixed widget taking as much space as possible. The Gtk
Philosophie is not always beautiful, but there are many different Gtk
containers, thought for many possible designs.
Sunny days,
Benjamin
On 18:06 Fri 29 Aug , rastersoft wrote:
Hi!
Well
Ok, I found how to fix this problem: overriding the
"get_preferred_width" method in a label to set it to the desired width.
Et voila!
Thanks anyway!
El 29/08/14 a las #4, rastersoft escribió:
Hi!
Well, it *nearly* worked: the label is cut as expected, but the fixed
itself gets ex
i escribió:
On Thu, 2014-08-28 at 18:14 +0200, rastersoft wrote:
Hi all:
I need to create a label with a fixed size in pixels, and if the text is
too large, elipsize it. Is it possible? I tried nearly all kind of ways
and tricks (even capturing the size-allocate signal and adjust there t
Hi all:
I need to create a label with a fixed size in pixels, and if the text is
too large, elipsize it. Is it possible? I tried nearly all kind of ways
and tricks (even capturing the size-allocate signal and adjust there the
maximum-character property until the size is fine), but can't get it
Hi all:
These days I've been implementing an idea about exporting a Gtk3
graphical UI over DBus. I took advantage of several Gtk3 capabilities,
like DBuilder and the properties system, and the result is so simple and
straightforward that I'm surprised that nobody has implemented it
already. S
Ok, I found how to do it: by using connect_signals_full and the get_name
method in the interface Buildable.
Thanks anyway!
El 14/08/14 a las #4, rastersoft escribió:
Hi all:
I'm working on a little project and I need to get access to some data
in a Gtk.Builder object. Specifically, I
Hi all:
I'm working on a little project and I need to get access to some data in
a Gtk.Builder object. Specifically, I need, given an object's name, get
a list of the callback names assigned in Glade to that object. This is:
if I have a button called "mybutton", and I assign to the "clicked"
Hi:
I tried that, but in Vala there isn't the lookup method. Finally, after
several tests, I found that the right way seems to be to register my
pictures in the system with IconTheme.add_builtin_icon.
Thanks anyway.
On 21/05/14 16:21, Mycroft wrote:
rastersoft rastersoft.com>
Hi all:
I'm using a gtkCellRenderPixbuf, and want to use my own pictures as
icons. I'm loading them with Gdk.Pixbuf.from_file_at_size(), and works
fine; the problem is that I don't know how to know the right icon size.
With 16x16 seems fine, but I don't want to use a fixed size, because
that
Hi all:
How can I set the handle from a paned at the middle? I want to do this
because I have a paned with two treeviews, and at startup the upper one
is shown nearly collapsed.
Thanks!
--
Nos leemos
RASTER(Linux user #228804)
ras...@rastersoft.com h
Hi all:
I'm working with a gkt.fixed canvas because I need to put several
widgets over an animated picture (created with Cairo).
I created a Cairo canvas that covers the whole window, and over it I put
the widgets (one of them is an icon list)
With Gtk 2.x and Gtk3 up to 3.6 all worked fine
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi all:
I'm creating an extension for Gnome shell and want to simplify some
parts of the configuration. To do so, I need to get the summary text
from GSettings, given its key. I've been checking the C API but I can't
find a suitable method. Is there
Let's try again, without PGP signing...
https://bugzilla.gnome.org/show_bug.cgi?id=692063
El 19/01/13 13:00, rastersoft escribió:
>
> Ok, I don't know what happened to the URL, this is the right one:
> https://bugzilla.gnome.org/show_bug.cgi?id=692063
>
> El 19/01/13 1
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Ok, I don't know what happened to the URL, this is the right one:
https://bugzilla.gnome.org/show_bug.cgi?id=692063
El 19/01/13 12:15, rastersoft escribió:
>
> Hi:
>
> Well, it seems that Ubuntu 12.10 has Gtk 3.6.0, not 3.6.4, so I
. Hope I did it right O:)
El 18/01/13 06:32, Tristan Van Berkom escribió:
> On Fri, Jan 18, 2013 at 8:49 AM, rastersoft wrote:
>>
> Hi all:
>
> I'm having an odd problem with GtkIconView. In Ubuntu 12.04, with Gtk
> 3.4, all worked fine, but now, in Ubuntu 12.10
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi all:
I'm having an odd problem with GtkIconView. In Ubuntu 12.04, with Gtk
3.4, all worked fine, but now, in Ubuntu 12.10 and Gtk 3.6, there's this
curious problem.
I set a GtkIconView inside a GtkScrolledWindow, and set to -1 columns,
so it shou
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Yes! That's exactly what I wanted. Thank you!
El 30/12/12 00:51, Lance Dillon escribió:
>
>
>
>
> - Original Message -
>> From: rastersoft
>> To: GTK App Devel
>> Cc:
>> Sent: Saturday, December
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi all:
I want to create a bar with two buttons and a label between, but I want
that both buttons have exactly the same width, no matter if one has a
large text and the other a shorter one. But also I don't want to fixate
the width, like using a grid
54 matches
Mail list logo