Re: PyGObject: cell_data_func or own Renderer for date column?

2018-05-11 Thread infirit
Op 10-05-18 om 00:06 schreef c.bu...@posteo.jp: > I want to have a date column in a Gtk.ListView. The field in the model > is a real "datetime.date". Based on that the content of the column > could display this: > > "2018-05-07" > "2 days ago" > "this week" > "7th May" > "7. Mai '18"

Re: PyGObject: Which types accepted in a Gtk.ListStore

2018-05-11 Thread infirit
Op 09-05-18 om 23:50 schreef c.bu...@posteo.jp: > From the api-reference here > > > it is unclear for me what types are accepted for the columns. > The parameter "*column_types" is not explained. > Quoting from the

PyGObject: remove a renderer from a TreeViewColumn

2018-05-10 Thread c.buhtz
I add multiple Gtk.CellRenderer to one Gtk.TreeViewColumn with its pack_start() method. But how can I remove one of the renderers? Currently I do Gtk.TreeViewColumn.clear() and rebuild the column again with all renderers except the one I want to be removed. But this is a workaround.

PyGObject: cell_data_func or own Renderer for date column?

2018-05-09 Thread c.buhtz
I want to have a date column in a Gtk.ListView. The field in the model is a real "datetime.date". Based on that the content of the column could display this: "2018-05-07" "2 days ago" "this week" "7th May" "7. Mai '18" This is all based on the same "datetime.date" instance. The user

PyGObject: Which types accepted in a Gtk.ListStore

2018-05-09 Thread c.buhtz
>From the api-reference here it is unclear for me what types are accepted for the columns. The parameter "*column_types" is not explained. ___ gtk-app-devel-list mailing

Re: PyGObject: Spinner as content of a TreeView cell

2018-05-09 Thread c.buhtz
On 2018-05-09 22:52 wrote: > Does anyone see a way to draw/insert a Gtk.Spinner (or any other > Gtk.Widget) in a cell of a Gtk.TreeView? Oh, there is a CellRendererSpinner for it! :) An example can be found here

PyGObject: Spinner as content of a TreeView cell

2018-05-09 Thread c.buhtz
Does anyone see a way to draw/insert a Gtk.Spinner (or any other Gtk.Widget) in a cell of a Gtk.TreeView? I want to use a Spinner to indicate to the user that currently there is work (e. g. ongoing download) or activity with a specific item. ___

Re: [PyGObject] TreeView: Empty integer field or right aligned string

2018-05-09 Thread Luca Bacci
in python you can do def cell_data_func(self, tree_column, cell, tree_model, iter, data): if tree_column is self.col_a: # code else if tree_column is self.col_b: # code see How do I check if two variables reference the same object in Python?

gtk_file_chooser_dialog in windows - hot to enable network places

2018-05-09 Thread Wojciech Puchar
tried gtk_file_chooser_set_local_only to false and it doesn't change anything. Is it possible for gtk_file_chooser under windows to be able to browse network locations? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: [PyGObject] TreeView: Empty integer field or right aligned string

2018-05-08 Thread c.buhtz
On 2018-05-08 14:20 Luca Bacci wrote: >- Use Cell Data Func for ultimate flexibility That is the signature Gtk.TreeCellDataFunc(tree_column, cell, tree_model, iter, data) But how do I know which cell (row and column) is affected? I can extrat the row with

Re: [PyGObject] TreeView: Empty integer field or right aligned string

2018-05-08 Thread Luca Bacci
To have empty int cells, you can either - use strings, instead of ints, in ListStore as you said - make place for a third value in ListStore, of type bool, and control the "visible" property of the first Cell Renderer with it (see code below) - Use Cell Data Func for ultimate

Re: [PyGObject] TreeView: Empty integer field or right aligned string

2018-05-08 Thread Luca Bacci
Hello! You can achieve what you want with the "xalign" property of CellRenderers col_b = Gtk.TreeViewColumn('str', Gtk.CellRendererText(xalign=1), text=1) xalign takes a value between 0 and 1. xalign=0 -> left-justified xalign=1 ->

Re: IDE to develop app with GTK3 on windows using MSYS2

2018-05-07 Thread Matthew A. Postiff
Have you tried https://www.kdevelop.org/? I have been using it lately and like it for code editing and compilation both on Linux and Windows. It provides more info about the source code than emacs tags does. I haven't gotten the hang of debugging with KDevelop, so I still debug in

IDE to develop app with GTK3 on windows using MSYS2

2018-05-07 Thread pspgen
If you do not want to cross-compile then you CAN use code blocks to develop GTK+3 based applications. You don't anymore need the project creation wizzard. Especially since GTK+3.12 or so. Just add the search directories and add `pkg-config --libs gtk+-3.0` into the linker additional options.

Re: IDE to develop app with GTK3 on windows using MSYS2

2018-05-07 Thread Nicola Fontana
Il Mon, 7 May 2018 09:30:13 +0200 arkkimede scrisse: > ... > Now I would migrate on WIndows 10 by means of MSYS2. > > There is an IDE (better if open source) that I can use instean to follow to > use vi? > ... Hi, it seems to me a step backward: nothing can beat a

Re: IDE to develop app with GTK3 on windows using MSYS2

2018-05-07 Thread Dov Grobgeld
Why don't you cross compile from Linux to Windows? I have for years maintained several gtk based applications, including the building of installers for windows through make-nsis, and done everything from Linux. Regards, Dov On Mon, May 7, 2018 at 10:30 AM, arkkimede wrote:

Re: IDE to develop app with GTK3 on windows using MSYS2

2018-05-07 Thread Igor Chetverovod
For GTK app development I am using Qt Creator (community edition) for Linux and Win.   Also it has vi mode. Отправлено с моего смартфона BlackBerry 10.   Исходное сообщение   От: arkkimede Отправлено: понедельник, 7 мая 2018 г., 10:30 Кому: gtk-app-devel-list list Тема: IDE to develop app with

IDE to develop app with GTK3 on windows using MSYS2

2018-05-07 Thread arkkimede
Hi! I need an advice: I written apps on Linux with GTK3 using essentially vi and Makefile to build the project splitten in multiple C files with the corresponding H file. Now I would migrate on WIndows 10 by means of MSYS2. There is an IDE (better if open source) that I can use instean to follow

[PyGObject] TreeView: Empty integer field or right aligned string

2018-05-06 Thread c.buhtz
X-Post: https://stackoverflow.com/q/50194505/4865723 I want to have in a Gtk.TreeView - empty cells in a "int row" of a TreeView - or (as a workaround) a right aligned "string row" There is a screenshot and example code in the StackOverflow question linked in the first line of this

Re: GtkRevealer glitches the text view drawing

2018-05-04 Thread Nicola Fontana
Il Fri, 4 May 2018 14:19:42 +0300 Marius Gedminas scrisse: > ... > I've checked https://gitlab.gnome.org/GNOME/gtk/issues briefly but > couldn't find an existing bug, so perhaps nobody has reported it > upstream. Hi, I think this bus is #710888 [1] that is already fixed in

GtkRevealer glitches the text view drawing

2018-05-04 Thread pspgen
Okay, hiding the text view and then showing it again seems to work. - П.П. Само ти още нямаш сайт? Направи си, лесно е! Явката от рекламата ще ти разкаже повече на www.superhosting.bg.

Re: GtkRevealer glitches the text view drawing

2018-05-04 Thread pspgen
True that it worths trying queueing a resize. That's why I tried this before and unfortunatelly didn't fix it. In fact, I queued draw too. What I will try now is hide the widget and then show it - П.П. Искаш да разшириш бизнеса си и онлайн? Лесно е! Направи си

Re: GtkRevealer glitches the text view drawing

2018-05-04 Thread infirit
Op 04-05-18 om 14:55 schreef psp...@mail.bg: > Right now, what I can do is come up with a way to avoid this. I have seen strange things with the GtkInfoBar as well. After hiding and showing it ended up with a negative size which the rest of my app didn't like very much. I worked around it by

GtkRevealer glitches the text view drawing

2018-05-04 Thread pspgen
Even if we report it, it will still take time for the path. Right now, what I can do is come up with a way to avoid this. Knowing what causes it helps. Not using revealer is against my decisions. - П.П. Само ти още нямаш сайт? Направи си, лесно е! Явката

Re: GtkRevealer glitches the text view drawing

2018-05-04 Thread Marius Gedminas
On Fri, May 04, 2018 at 09:25:44AM -, psp...@mail.bg wrote: > During the development of my program I came across one drawing glitch that > I was unable to solve. I am using GtkRevealer to show and hide a GtkInfoBar > above another box holding a scrolled window with a GtkTextView (actually >

GtkRevealer glitches the text view drawing

2018-05-04 Thread pspgen
During the development of my program I came across one drawing glitch that I was unable to solve. I am using GtkRevealer to show and hide a GtkInfoBar above another box holding a scrolled window with a GtkTextView (actually GtkSourceView) a lot like it is in gedit. The whole thing is packed in

Re: ANNOUNCE: Completion of migration to GitLab for GTK

2018-05-03 Thread Emmanuele Bassi
Hi all; the migration is now complete, and you should find all the open issues on GitLab: https://gitlab.gnome.org/GNOME/gtk/issues Thanks for your patience. Ciao, Emmanuele. On 1 May 2018 at 09:24, Emmanuele Bassi wrote: > Hi all; > > in the past few months we've

Change shape of GtkScale with CSS for GTK < 3.20 and > 3.20

2018-05-02 Thread Cyril Richard
Hi, I am trying to change the shape of a GTKScale. To do it I use a CSS sheet. The following CSS code gives something's good, like in attachment. .midtone-scale { background-image: -gtk-gradient(linear, left top, right top, from(black), to(shade(white, 0.95))); padding: 5px; }

ANNOUNCE: Completion of migration to GitLab for GTK

2018-05-01 Thread Emmanuele Bassi
Hi all; in the past few months we've taken various steps to migrate GTK to the GNOME GitLab instance in advance of the rest of the projects hosted on git.gnome.org, as migrations of old projects usually unearth various issues; we approached this piecemeal, breaking down the move into various

Re: Need help in GTK3 Draw event

2018-04-30 Thread Marius Gedminas
On Thu, Apr 26, 2018 at 10:53:00AM +0530, Dhrubajyoti Doley wrote: > I am developing an application where I have to show/draw whitespaces, tabs > and enter. Perhaps GtkSourceView could be useful here? It can already draw whitespace (and a lot of other things).

Re: Need help in GTK3 Draw event

2018-04-28 Thread Eric Cashon via gtk-app-devel-list
Hi Dhrubajyoti, The textview widget has text tags built in that you can use to draw rectangles around text. If you want to draw a rectangle to block out text you can match the background and foreground colors. This code works on Ubuntu16.04, GTK3.18 and Python2.7. Give it a try and see

Need help in GTK3 Draw event

2018-04-28 Thread Dhrubajyoti Doley
Hi, I am developing an application where I have to show/draw whitespaces, tabs and enter. To achieve this I am trying to pass Cairo Context to TextView. I am Attaching an example where on the TextView where I want to draw a square over the texts. I am using GTK3.18, Python2.7 and Windows7.

Re: Using Gtk.Builder to create a menubar.

2018-04-27 Thread Luca Bacci
Yes, actions get a prefix depending on where you put them. Every "action container" has a prefix. In your case you add_action() to GtkApplicationWindow and its prefix is "win" I used your code to create an answer to my StackOverflow question > https://stackoverflow.com/a/50051155/4865723 >

Re: Using Gtk.Builder to create a menubar.

2018-04-27 Thread Marius Gedminas
On Thu, Apr 26, 2018 at 09:46:57PM +0200, c.bu...@posteo.jp wrote: > Thank you very much. Your example works for me but I don't understand > why. ;) > > > win.bar > > > action_bar = Gio.SimpleAction.new('bar', None) > > The name of the action in the XML and the code is

Re: Using Gtk.Builder to create a menubar.

2018-04-26 Thread c.buhtz
On 2018-04-26 18:10 Luca Bacci wrote: > Hi, I did test it out, here's a working version: I used your code to create an answer to my StackOverflow question https://stackoverflow.com/a/50051155/4865723 ___ gtk-app-devel-list

Re: Using Gtk.Builder to create a menubar.

2018-04-26 Thread c.buhtz
Thank you very much. Your example works for me but I don't understand why. ;) > win.bar > action_bar = Gio.SimpleAction.new('bar', None) The name of the action in the XML and the code is different. Why? What is the system behind it?

Re: Using Gtk.Builder to create a menubar.

2018-04-26 Thread Eric Cashon via gtk-app-devel-list
"1. It uses "QMenu" (from Gtk or Gio?) to build a menu structure. I would prefere this way instead of an XML string. It should be possible in Python, too? Gtk.Menu or Gio.Menu?" My understanding of this is that the GMenu is used with the GtkApplication and a GtkMenu is used with the "regular"

Re: Using Gtk.Builder to create a menubar.

2018-04-26 Thread Luca Bacci
Hi, I did test it out, here's a working version: import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk from gi.repository import Gio class Window(Gtk.ApplicationWindow): def __init__(self): Gtk.Window.__init__(self) self.set_default_size(200, 100)

Developing application with GTK3 on WIndows 10

2018-04-26 Thread arkkimede
Following this link https://www.gtk.org/download/windows.php I prepared on Windows 10/64bit the environment to develop application with GTK3 and Glade on Windows 10. (I've installed msys2 / update packages / installing GTK3 libraries / installing Glade / installing toolchain to develop code ).

Re: Using Gtk.Builder to create a menubar.

2018-04-26 Thread Luca Bacci
it should be like that (I can't test it right now, try yourself) #!/usr/bin/env python3 import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk from gi.repository import Gio class Window(Gtk.ApplicationWindow): def __init__(self): Gtk.Window.__init__(self)

Re: Using Gtk.Builder to create a menubar.

2018-04-26 Thread Luca Bacci
see here: https://wiki.gnome.org/HowDoI/GMenu https://wiki.gnome.org/HowDoI/GAction self.interface_info = """ > > > > Foo > > Bar > > > > > """ for every you

Re: Using Gtk.Builder to create a menubar.

2018-04-25 Thread c.buhtz
Dear Eric, thank you for your quick reply. > There is a basic setup for the Gtk Application in Python here > https://developer.gnome.org/gnome-devel-demos/stable/hello-world.py.html.en Nice to know. Very helpful. > For C you can check >

Re: Using Gtk.Builder to create a menubar.

2018-04-25 Thread Eric Cashon via gtk-app-devel-list
There is a basic setup for the Gtk Application in Python here https://developer.gnome.org/gnome-devel-demos/stable/hello-world.py.html.en For C you can check https://github.com/cecashon/OrderedSetVelociRaptor/blob/master/Misc/Csamples/gtk_app1.c which has a menu but doesn't use builder

Using Gtk.Builder to create a menubar.

2018-04-25 Thread c.buhtz
X-Post: I was redirected from https://mail.gnome.org/archives/python-hackers-list/2018-April/msg4.html to here. I try to use Gtk.Builder to create a menubar. It is not working because the documentation is not clear for me. There is no exmple for a IMO usual thing like a menubar. To improve

Re: Dimensions in pixels of a draw Area to obtain a plot on a A4 paper

2018-04-22 Thread Yuri Khan
On Sat, Apr 21, 2018 at 3:17 PM, arkkimede wrote: > Thanks to Nicola and Yuri for the suggestions! > Let me summarize: > > 1. Use pdf instead of png > 2. Define the dimension of pdf in points; > > The last open point is: how to get a "preview" on the screen (this time in >

line-wrapped and ellipsized in GtkCellRendererText

2018-04-21 Thread Alex
Dear gtk-devs, I am using a GtkCellRendererText for a cell, and I want to have the text in this cell be line-wrapped and ellipsized if it is longer than 3 lines. - It works fine to set the property "wrap-mode" to e.g.  PANGO_WRAP_WORD_CHAR - It works fine to set the property "ellipsize" to e.g.

Re: Dimensions in pixels of a draw Area to obtain a plot on a A4 paper

2018-04-21 Thread Yuri Khan
On Sat, Apr 21, 2018 at 2:19 PM, arkkimede wrote: > Ok! I can use the pdf format but the dimensions of the draw area? The PDF format does not operate in pixels. Instead, it uses points. A point is 1/72 of an inch. An inch is 25.4 millimeters. A standard A4 sheet is 210 mm

Re: Dimensions in pixels of a draw Area to obtain a plot on a A4 paper

2018-04-21 Thread arkkimede
Ok! I can use the pdf format but the dimensions of the draw area? Il Sab 21 Apr 2018, 07:31 Nicola Fontana ha scritto: > Il Sat, 21 Apr 2018 04:01:21 +0200 arkkimede > scrisse: > > > HI! > > I've realized an App with GTK3 and the library CAIRO to plot

Re: Dimensions in pixels of a draw Area to obtain a plot on a A4 paper

2018-04-20 Thread Nicola Fontana
Il Sat, 21 Apr 2018 04:01:21 +0200 arkkimede scrisse: > HI! > I've realized an App with GTK3 and the library CAIRO to plot results of > measurements. > I use the function "cairo_surface_write_to_png" to obtain a png file that I > put on a paper of format A4 (with usual

Dimensions in pixels of a draw Area to obtain a plot on a A4 paper

2018-04-20 Thread arkkimede
HI! I've realized an App with GTK3 and the library CAIRO to plot results of measurements. I use the function "cairo_surface_write_to_png" to obtain a png file that I put on a paper of format A4 (with usual resolution of 300dpi) to generate reports. Consider also that preliminary plot are observed

Re: Overriding CSS style

2018-04-19 Thread Eric Cashon via gtk-app-devel-list
Hi Yannick, You have some options here. You can set a priority with https://developer.gnome.org/gtk3/stable/GtkStyleContext.html#gtk-style-context-add-provider with CSS. If you want to just stick with drawing in C, connect your "draw" handler for the window. If you need a pixbuf you can

Gtk+-2.0 stylish coding

2018-04-19 Thread Joël Krähemann
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

Re: Overriding CSS style

2018-04-19 Thread Lucky B.C
Did you run gtk3-demo > Theming > ... Animated Backgrounds ...? On Wed, Apr 18, 2018 at 4:45 AM, Yannick POTIN wrote: > Hello everyone, > > I'm testing the style capabilities of GTK+, and after being amazed by the > availability of CSS, I couldn't find anything in the

Overriding CSS style

2018-04-19 Thread Yannick POTIN
Hello everyone, I'm testing the style capabilities of GTK+, and after being amazed by the availability of CSS, I couldn't find anything in the documentation about modifying an existing rule. So, my questions are : is it possible to change the CSS « background-image » of my GTK+ main window

Re: Scrolling to a GtkListBoxRow after adding it to a GtkListBox

2018-04-16 Thread Michael Gratton
On Sun, Apr 15, 2018 at 1:05 PM, "Matthew A. Postiff" wrote: Is the issue that the widget is not yet drawn, so it size/location coords are not settled yet? I originally thought so, but when it occurred it looked like it was actually be correctly getting scrolled to

How to caught signal from the popup list of a GtkEntryCompletion

2018-04-16 Thread Cyril Richard
I have an application with a GtkEntry. As a feature of the program, I use key-press-event signals on this entry for GDK_KEY_Up, GDK_KEY_Down, GDK_KEY_Return and GDK_KEY_KP_Enter. But the I also would like to disable these homemade functions when the GtkEntryCompletion shows completion popup

Re: Scrolling to a GtkListBoxRow after adding it to a GtkListBox

2018-04-15 Thread Eric Cashon via gtk-app-devel-list
" Is the issue that the widget is not yet drawn, so it size is not settled yet? Total guesses: What about using g_signal_connect_after on size-allocate? Or connecting to map-event signal on that widget? Or spinning on gtk_events_pending() until all are done, then scroll down? " Hi Matthew

Re: Scrolling to a GtkListBoxRow after adding it to a GtkListBox

2018-04-14 Thread Eric Cashon via gtk-app-devel-list
Hi Mike, It looks like the new rows height isn't getting added to the adjustment. If the height of the new row gets added to the upper value of the adjustment then the last row of the list box can be shown when added. This is what I came up with to test it out. Is this similar to what you

Scrolling to a GtkListBoxRow after adding it to a GtkListBox

2018-04-14 Thread Michael Gratton
Hey all, I assume I'm missing something obvious here, but what's the right/best way to ensure that a GtkListBoxRow child is visible (i.e. scrolled to at least the bottom of the viewport) in a scrolled GtkListBox right after adding it? I have a GtkListBox as a child of a GtkScrolledWindow,

Re: How to avoid the presence of new line in GtkEntry at the end of input string

2018-04-12 Thread Lucky B.C
Well, GtkEntry (Gtk+-3.0) accesses any UTF input included escapes in your case is a new line. Sometime the string has a new line at the end that you maybe copied from somewhere, you should catch the new line code (0x0A - 1 byte), and set the index of the new line is '\0'. unsigned int length;

GtkClipboard owner-change signal under wayland

2018-04-06 Thread Giovanni Panozzo
I have a GTK application which listen for clipboard "owner-change" signal to detect clipboard changes. Under x11 all is working fine, the signal is fired when, for example, you press CTRL+C inside gedit. Under Wayland "owner-change" signal is emitted when my window is *focused* and *moved*.

Re: How to avoid the presence of new line in GtkEntry at the end of input string

2018-04-05 Thread Bas Wassink
On 04/05/18 21:32, Karan Ahuja wrote: Hi friend You could use g_str_split ? Cheers, Karan That doesn't help, that's working around the issue. On Thu, 5 Apr 2018 20:23 arkkimede, wrote: Hi! In my GTK3 applications, there are some GtkEntry used to input strings

Re: How to avoid the presence of new line in GtkEntry at the end of input string

2018-04-05 Thread Karan Ahuja
Hi friend You could use g_str_split ? Cheers, Karan On Thu, 5 Apr 2018 20:23 arkkimede, wrote: > Hi! > In my GTK3 applications, there are some GtkEntry used to input strings > like, e.g., the output directory. > > I write a string in the Entry and using the function

How to avoid the presence of new line in GtkEntry at the end of input string

2018-04-05 Thread arkkimede
Hi! In my GTK3 applications, there are some GtkEntry used to input strings like, e.g., the output directory. I write a string in the Entry and using the function gtk_entry_get_text() i read the string insert in the GUI. Printing on screen this string, <> a "new line" is present at the end of

Re: widget show() / hide() crashes application

2018-04-03 Thread Yuri Khan
On Tue, Apr 3, 2018 at 5:56 PM, Tilo Villwock wrote: > Just as a hint: in case you're trying to embed screenshots here, it's > not allowed. You need to upload it somewhere and link it in your mail. More to the point, error messages quoted as text are much more useful than

Re: widget show() / hide() crashes application

2018-04-03 Thread Tilo Villwock
Just as a hint: in case you're trying to embed screenshots here, it's not allowed. You need to upload it somewhere and link it in your mail. Am Dienstag, den 03.04.2018, 02:28 -0700 schrieb stfl: > I am writing a Python 3 GStreamer Client application. > I receive fps measurments from

Widget show()/hide() crashes

2018-04-03 Thread stfl
I am writing a Python3 Gstreamer client application. I regularly receive Gstreamer signals and on a certain condition I want to show() or hide() a certain widget in my Gui. This works for a few times but at some point the entire Application crashes. When I connect it to a button press event from

widget show() / hide() crashes application

2018-04-03 Thread stfl
I am writing a Python 3 GStreamer Client application. I receive fps measurments from fpsdisplaysink as a GStreamer Signal. If the fps drops too low I dissplay an overlay over the gtksink (which is connected to the fpsdisplaysink). When I show() and hide() the overlayed Gtk.Box sometimes the

Re: Reduce the size of a GtkScale indicator

2018-03-31 Thread Bas Wassink
On 03/30/18 23:11, Stefan Salewski wrote: On Fri, 2018-03-30 at 22:25 +0200, Stefan Salewski wrote: You may even name your widgets and then can set CSS properties of single widgets. Like this: import gintro/[gtk, glib, gobject, gio] proc appActivate(app: Application) = let window =

Re: Reduce the size of a GtkScale indicator

2018-03-30 Thread Stefan Salewski
On Fri, 2018-03-30 at 22:25 +0200, Stefan Salewski wrote: > You may even name your widgets and then can set > CSS properties of single widgets. Like this: import gintro/[gtk, glib, gobject, gio] proc appActivate(app: Application) = let window = newApplicationWindow(app) let scale =

Re: Reduce the size of a GtkScale indicator

2018-03-30 Thread Stefan Salewski
On Fri, 2018-03-30 at 21:01 +0200, Stefan Salewski wrote: > I have the impression there is no CSS property to make GtkScale > slider > smaller. Finally I have a working solution. The trick is, that we have to set margin also. Margin is negative in default, which does not work with tiny min-width

Re: Reduce the size of a GtkScale indicator

2018-03-30 Thread Stefan Salewski
On Thu, 2018-03-29 at 21:50 +0200, Bas Wassink wrote: > I kinda figured I had to go the CSS route, I have the impression there is no CSS property to make GtkScale slider smaller. I did a few tests yesterday, without a result. But I have to admit that for my screen it is already small. Maybe Mr

Re: Reduce the size of a GtkScale indicator

2018-03-29 Thread Bas Wassink
On 03/29/18 21:19, Stefan Salewski wrote: On Thu, 2018-03-29 at 18:02 +0200, Bas Wassink wrote: Any hints? https://developer.gnome.org/gtk3/stable/chap-css-overview.html grep -A100 GtkScale ~/.config/gtk-3.0/gtk-default.css Well, I do provide a colored label example at

Re: Reduce the size of a GtkScale indicator

2018-03-29 Thread Stefan Salewski
On Thu, 2018-03-29 at 18:02 +0200, Bas Wassink wrote: > Any hints? https://developer.gnome.org/gtk3/stable/chap-css-overview.html grep -A100 GtkScale ~/.config/gtk-3.0/gtk-default.css Well, I do provide a colored label example at https://github.com/StefanSalewski/gintro Starting from that

Reduce the size of a GtkScale indicator

2018-03-29 Thread Bas Wassink
Hey there, I'm working on some code the uses a bunch of GtkScale's, but unfortunately the indicator (the thing you grab with the mouse) is way too large. I'd rather not break the user's theme but still provide a smaller indicator to save vertical space. So how do I go about this? Are there

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 > wrote: [get the Gtk font type and size] Ops, sorry: I'm reworking a

Re: Get the default font in Gtk3

2018-03-29 Thread Emmanuele Bassi
On 29 March 2018 at 15:12, rastersoft wrote: > > [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 >>>

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 Rafał Mużyło
On Thu, Mar 29, 2018 at 12:58:44PM +0200, rastersoft wrote: > 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

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 Rafał Mużyło
On Thu, Mar 29, 2018 at 12:58:25AM +0200, rastersoft wrote: > > > 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

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 if the

Re: Get the default font in Gtk3

2018-03-28 Thread Rafał Mużyło
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 user changes it. So the question is: >

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

Re: How to create a tab bar that imitates the look an feel of a GtkNotebook?

2018-03-28 Thread Bachsau
That's exactly what I was thinking of. I was just looking for a way to make it look like a tab bar in terms of display, tab-width and scrolling / floating. Am 28.03.2018 um 14:36 schrieb Nicolas Soubeiran: Hello, The simplest idea I suggest is using a button box with radio (use

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.

How to create a tab bar that imitates the look an feel of a GtkNotebook?

2018-03-27 Thread Bachsau
As my last question seems to have been misunderstood, I'm trying to ask again with this other subject line: "How to create a tab bar that imitates the look an feel of a GtkNotebook?" Im developing a GTK+ 3 application that should be able to display multiple files in tabs. But a GtkNotebook

Re: Using a ButtonBox instead of a Notebook?

2018-03-27 Thread Bachsau
Finally I'm not sure if I'm just confused or having trouble understanding your english, but it sounds to me as if what you are suggesting to me to do is exactly what I said was MY idea in my first post! Your posts are not helpful. Yes, I want to use multiple GtkTreeModels. It was not even the

Re: Re: GTK on Mac OS X

2018-03-27 Thread Bachsau
Am 26.03.2018 um 14:07 schrieb Lucky B.C: In Unix-like operating system, If we disable the opening terminal which is calling a program, we will close the program too. That's bullshit. SIGHUP is not connected to the fact of a terminal running. It is tight to the existence of a parent process

Re: GTK on Mac OS X

2018-03-27 Thread Bachsau
Am 26.03.2018 um 12:50 schrieb Wojciech Puchar: how to link (or otherwise do other things) to disable opening terminal when starting my gtk program under mac os x. You need to put it in an .app-bundle. Any application packaged in a proper bundle has a configuration file that allows you to

Re: GTK on Mac OS X

2018-03-26 Thread Lucky B.C
Hi, The link maybe helps you or you maybe need a desktop shortcut . In Unix-like operating system, If we disable the opening terminal which is calling a

Re: GTK on Mac OS X

2018-03-26 Thread Joël Krähemann
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

GTK on Mac OS X

2018-03-26 Thread Wojciech Puchar
how to link (or otherwise do other things) to disable opening terminal when starting my gtk program under mac os x. on windows it's a link time option -mwindows (no console) or -mconsole (with console). thanks ___ gtk-app-devel-list mailing list

Re: A simple GtkSpinner is very costly in CPU cycles

2018-03-22 Thread Eric Cashon via gtk-app-devel-list
Hi Kian For effeciency, use one of the default cursors. https://developer.gnome.org/gdk3/stable/gdk3-Cursors.html If you want, you can try creating your own cursor with animation and using that. I got this working on my netbook which isn't a very high powered computer by todays

Re: compiling glade

2018-03-22 Thread Tristan Van Berkom
On Thu, 2018-03-22 at 19:13 +0100, arkkimede wrote: > Thank You Tristan for Your Kindness. > Unfortunately, this new release of Glade require libgtk-3.20.0 and in > my linuxbox Ubuntu 16.04 I have only 3.18.0. > The 3.20.0 is present in Ubuntu 17 but this release is not stable > enough to start to

Re: compiling glade

2018-03-22 Thread Tristan Van Berkom
Hi, On Thu, 2018-03-22 at 14:52 +0100, arkkimede wrote: > HI! > I want to install the latest version of glade downloaded from git-hub. > > I read the instruction. > > There is written that configure.ac or configure.in is used to generate the > script configure. > To do that execute the command

compiling glade

2018-03-22 Thread arkkimede
HI! I want to install the latest version of glade downloaded from git-hub. I read the instruction. There is written that configure.ac or configure.in is used to generate the script configure. To do that execute the command autoconf. I executed this command but some macro are missed Searching I

Re: A simple GtkSpinner is very costly in CPU cycles

2018-03-22 Thread Kian Karas
On Wed, Mar 21, 2018 at 10:17 AM, Emmanuele Bassi wrote: > On 20 March 2018 at 14:06, Kian Karas wrote: > >> Hi smart people >> >> I just introduced animation, in the form of a GtkSpinner, to my >> application >> for the first time. When the spinner

Re: A simple GtkSpinner is very costly in CPU cycles

2018-03-21 Thread Emmanuele Bassi
On 20 March 2018 at 14:06, Kian Karas wrote: > Hi smart people > > I just introduced animation, in the form of a GtkSpinner, to my application > for the first time. When the spinner is animating, the application takes up > 45 % of the CPU resources (the application is

Re: A simple GtkSpinner is very costly in CPU cycles

2018-03-21 Thread Lucky B.C
Well the Gtk main loop can not break out, it means you can not play animation of the GtkSpinner as slow as you want. I'm sorry I had not used the GtkSpinner before, then I just did a test on the widget, so I see we only make it playing or stop animation by setting it's "active" property TRUE or

<    1   2   3   4   5   6   7   8   9   10   >