Re: Detecting the gdk backend

2019-02-07 Thread rastersoft
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, Daniel Kasak via gtk

Re: Get the default font in Gtk3

2018-03-29 Thread rastersoft
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 <ras...@rastersoft.com <mailto:ras...@rastersoft.com>> wrote: [get the Gtk font type and size] Ops, sorry: I

Re: Get the default font in Gtk3

2018-03-29 Thread rastersoft
[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,

Re: Get the default font in Gtk3

2018-03-29 Thread rastersoft
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*

Re: Get the default font in Gtk3

2018-03-28 Thread rastersoft
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

Button bar with resizing like nautilus

2018-03-28 Thread rastersoft
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

Get the default font in Gtk3

2018-03-28 Thread rastersoft
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.

Re: Window icon is not shown in gnome shell dash under wayland

2017-12-03 Thread rastersoft
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 <ras...@rastersoft.com> wrote: I created several applications that ma

Window icon is not shown in gnome shell dash under wayland

2017-12-02 Thread rastersoft
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

Re: Static library with Gtk 3

2017-11-30 Thread rastersoft
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.

Re: glade and signals connection

2016-10-19 Thread rastersoft
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

Re: Getting focus

2016-08-23 Thread rastersoft
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't

Re: Getting focus

2016-08-23 Thread rastersoft
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, rastersof

Re: Getting focus

2016-08-23 Thread rastersoft
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

Re: Getting focus

2016-08-22 Thread rastersoft
-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, maybe you can

Getting focus

2016-08-21 Thread rastersoft
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

‘gtk_widget_override_background_color’ is deprecated

2016-08-18 Thread rastersoft
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

Put window at top left with wayland

2016-01-22 Thread rastersoft
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

Atom editor and GTK

2016-01-07 Thread rastersoft
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

Re: Place window at bottom left

2016-01-05 Thread rastersoft
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: >> Hi all: >

Place window at bottom left

2016-01-04 Thread rastersoft
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

Re: Widgets not updating until you move the cursor

2016-01-01 Thread 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 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,

Re: Widgets not updating until you move the cursor

2016-01-01 Thread rastersoft
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 >>

Re: glade 3.19.0 and header bars

2015-10-10 Thread rastersoft
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

glade 3.19.0 and header bars

2015-10-09 Thread rastersoft
-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

close button

2015-10-08 Thread rastersoft
-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

Re: close button

2015-10-08 Thread rastersoft
-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" butto

Re: GtkFileChooserDialog, Glade and header bars

2015-09-06 Thread rastersoft
-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 <ras...@rastersoft.com> wro

GtkFileChooserDialog, Glade and header bars

2015-09-05 Thread rastersoft
-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

Using fork() in a GTK C/Vala application

2015-09-01 Thread rastersoft
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

Re: Using fork() in a GTK C/Vala application

2015-09-01 Thread rastersoft
15:33:19 +0200 > rastersoft <ras...@rastersoft.com> 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

Re: Using fork() in a GTK C/Vala application

2015-09-01 Thread rastersoft
, 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 +0200 > rastersof

Re: gtk_progress_bar thickness related to theme?

2014-11-14 Thread rastersoft
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.

Re: Label with fixed size

2014-08-30 Thread rastersoft
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, it *nearly* worked

Re: Label with fixed size

2014-08-29 Thread rastersoft
: 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 the maximum-character

Label with fixed size

2014-08-28 Thread rastersoft
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

export a Gtk3 GUI over DBus

2014-08-15 Thread rastersoft
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.

get callback list from a Gtk.Builder object

2014-08-14 Thread rastersoft
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

Re: get callback list from a Gtk.Builder object

2014-08-14 Thread rastersoft
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 need

Re: gtkcellrenderpixbuf and icon size

2014-05-21 Thread rastersoft
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 raster at rastersoft.com

gtkcellrenderpixbuf and icon size

2014-05-19 Thread rastersoft
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

set paned handle at the middle

2014-05-15 Thread rastersoft
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

gtk.fixed and repaint problems

2013-05-30 Thread rastersoft
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

Get the summary from a key in GSettings

2013-02-09 Thread rastersoft
-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

Re: Incorrect number of columns in GtkIconView

2013-01-19 Thread rastersoft
. 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 ras...@rastersoft.com 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 and Gtk 3.6, there's

Re: Incorrect number of columns in GtkIconView

2013-01-19 Thread rastersoft
-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 installed

Re: bar with label and two buttons

2012-12-31 Thread rastersoft
-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 ras...@rastersoft.com To: GTK App Devel gtk-app-devel-list@gnome.org Cc: Sent: Saturday, December 29, 2012

bar with label and two buttons

2012-12-29 Thread rastersoft
-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