does being inside a grid make an entry more editable?

2017-03-09 Thread Dan Hitt
I have some entries that are inside a grid (all gtk3 stuff).

I cannot seem to make them uneditable with a call to
gtk_editable_set_editable().

I also have an entry outside the grid, which
gtk_editable_set_editable() certainly can make uneditable.

So i think the difference between the two cases is the grid, and i'm
wondering if putting an entry inside a grid somehow makes it more
editable.  (Maybe this is obvious from some piece of documentation,
and i'm just being really opaque.)

Anyhow, thanks in advance for any info, one way or another, on how
being inside a grid would affect the editability of an entry!

dan
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Homogeneous table

2017-03-09 Thread Eric Cashon via gtk-app-devel-list

Hi Ruben,

Consider using a drawing area and GTK3. There are more drawing and graphical 
capabilities in GTK3. Going forward to GTK4 I expect even more drawing 
capabilities since every computer sold these days has a gpu and the software 
can take advantage of that. 

With a drawing area you get better control of what you can do with your image. 
It makes it easy to place the image in different places along with, 
transparency, text, animation, transforms,,, and a lot of other things. 

For chicken placement you can use 5 separate drawing areas or merge them into 
one. I have something similar with selecting critters for gauge speed. A png 
picture here.

https://github.com/cecashon/OrderedSetVelociRaptor/tree/master/Misc/AdjustableGauge

There is a simple picture in a drawing area with some animated text over it at

https://github.com/cecashon/OrderedSetVelociRaptor/blob/master/Misc/cairo_drawings/draw_chars1.c

The code is simple enough but it needs a picture and picture path for it to 
work. I think that it could be ported to GTK2 but haven't done so. I like the 
graphical capabilities of GTK3 so I sort of stick with that for now.

Eric
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Get tty device for the application that lost focus

2017-03-09 Thread John Lane
I am not sure whether this is possible, but here goes...

I am writing a Gtk3 application whilst learning the API and I am pushing
it by trying to achieve some edgy things!

My application, which is suitably privileged, can inject some arbitrary
text into the tty of another application. It does this like so (Ruby
example):

  tty = '/dev/pts/5' # need to determine this!
  File.open(tty, File::WRONLY|File::NONBLOCK) do |f|
content.split('').each { |c| f.ioctl(0x5412,c) }
  end

It works if I hard-code the device (the '/dev/pts/5' exemplified above)
but I would like to be able to ascertain this from within my
application: I want to find the tty for the application that lost the
input focus to my application.

My application receives the focus at the expense of the application
window that it should inject input to. My application can receive focus
either by a mouse click or through a global keybinding applied using the
keybinder[1] api.

Is there a way for a Gtk3+ application to discover the tty device of the
application that lost focus to it ?

Although my example is in Ruby, any pointers in C, Ruby or Python would
be helpful - I can work out the bindings if I know how it is done in C.

[1] https://lazka.github.io/pgi-docs/#Keybinder-3.0

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Glade crash

2017-03-09 Thread Jim Charlton

Pozz:

I see what you mean.  I observe exactly what you observe (glade-3.20 on 
Ubuntu-16.10).  I do note that if you add data back to the fan_store 
columns... then all three of the TreeViews come back as expected.


I have to admit that I am not an expert on glade use.  I was doing some 
debugging on earlier versions of glade when I saw your posting and 
thought that I would see if I could be of help.  But this is indeed 
strange and somewhat above my ability to debug.  Sorry.  If I do get 
some time... I will have another look but... it is a complicated GUI and 
one would have to pare it down to a much simpler case in order to get a 
better idea of why this is happening.


jim...


On 2017-03-06 01:39 AM, Pozz Pozz wrote:

Hello jim,

I tried with a virtual machine of Ubuntu (downloaded from osboxes.org 
). It's Ubuntu 16.10. I installed Glade 3.20. The 
first[1] is the screenshot after opening the original .glade file. It 
seems ok (note the presence of one data row in fans_store ListStore 
and the rendering of three TreeView at the top).


After deleting the data row, Glade under Ubuntu doesn't crash. However 
there's a problem in the rendering. Now the three TreeView at the top 
aren't shown anymore. Take a look at this screenshot[2].


After the same operation, Glade 3.20 under Windows (installed through 
msys2) crashes.


[1] 
https://drive.google.com/file/d/0B1s7dNPGsJ3CYlRvNTltbU1NWDA/view?usp=sharing 

[2] 
https://drive.google.com/file/d/0B1s7dNPGsJ3CZWdCZkR2R1pEUEU/view?usp=sharing 



2017-03-03 17:23 GMT+01:00 Jim Charlton >:


I have no problem opening this file and deleting rows in the fan
store.  I am using glade-3.20 on Ubuntu-16.10 with gtk-3.20.

Notably, this file opens but does not display its contents
correctly when I try to open it with glade-3.19 on Ubuntu-16.04
with gtk-3.18 (although it does not crash).  So I assume you are
using glade-3.20 on Windows.  Based on my observations, I don't
think the problem is with glade unless you have a variant that is
different from mine (I tried both a version compiled from sources
and the version that comes from the Ubuntu repositories).

jim...



On 2017-03-03 05:20 AM, Pozz Pozz wrote:

Hello Dan,

you can download the glade file from this link

>
(

https://drive.google.com/file/d/0B1s7dNPGsJ3CZllrOUVwNWw4TWM/view?usp=sharing




).


2017-03-03 4:10 GMT+01:00 Daniel Kasak >:

There is no attachment. Try sharing it a different way -
pastebin or
something.

Dan

On Wed, Mar 1, 2017 at 5:18 AM, pozzugno
> wrote:

Most probably this isn't the most appropriate mailing
list, because I
think my issue is related to Glade (and not Gtk
libraries).

Attached is one of my graphical interface, designed
with Glade.
Unfortunately when Glade opens this file, it seems it
is very unstable if I
try to change something.

For example, let's try to delete the row in the
fans_store GtkListStore
object. Glade 3.20 will crash (at least in Windows).

Do you understand why? I tried many things, even
editing manually the
.glade file with a text-editor. Many times, Glade wil
crash during opening
the edited file.


___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org

https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list



___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org 
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list



___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org 

Homogeneous table

2017-03-09 Thread RĂºben Rodrigues
Hi guys,

I have this table : https://ibin.co/3EyWlgNYl1uK.png

This table have 5 columns, each column has an image.

I just want to see one image at a time, but I do not want to center that 
image, that is, I want to see it in its correct position.

SO, when i do this next code image should be in correct position and not 
in center. And i'm seeing in the center.

gtk_widget_set_visible(GTK_WIDGET(gtk_builder_get_object(builder, 
"first")), FALSE);
gtk_widget_set_visible(GTK_WIDGET(gtk_builder_get_object(builder, 
"second")), FALSE);
gtk_widget_set_visible(GTK_WIDGET(gtk_builder_get_object(builder, 
"third")), FALSE);
gtk_widget_set_visible(GTK_WIDGET(gtk_builder_get_object(builder, 
"fourth")), FALSE);
gtk_widget_set_visible(GTK_WIDGET(gtk_builder_get_object(builder, 
"fifth")), TRUE);

I use homogeneous propriety in glade for table. and in packing i put 
expand yes and fill yes. What's wrong?


Thanks,


___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list