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

2018-05-14 Thread Lucky B.C
Hi, I only use *vim* + *cmake* + *git* for developing my open source projects. There's no reason for me to use IDEs, why? My laptop is not strong enough run any IDE. Tips: + *CMake* is a great idea to help us compiling C source files in any platform. + *Git* is a version control system. + *Vim*

Re: gtk_init_with_args behavior

2018-05-20 Thread Lucky B.C
Well converting from UTF-16 to UTF-8, if you think it must be done. On Sat, May 19, 2018 at 10:41 PM, Allin Cottrell wrote: > On Sat, 19 May 2018, Miroslav Rajcic wrote: > > Hi Allin, >> >> on Windows, it is advisable to use an API to get the command line >> parameters as

Re: gtk_init_with_args behavior

2018-05-23 Thread Lucky B.C
You should make another version for only Windows, I think that it's better! On Mon, May 21, 2018 at 6:21 PM, Allin Cottrell wrote: > On Mon, 21 May 2018, tito-wolit wrote: > > On 21/05/2018 01:27, Allin Cottrell wrote: >> >>> >>> gtk_init_with_args is still useful in my case:

Re: This takes 30 secs to render

2018-06-05 Thread Lucky B.C
Hi, Another way to render the image better than cairo did, using OpenGL Area. You could find an example about it in gtk-demo. On Fri, Jun 1, 2018 at 6:45 AM, Tarie Nosworthy via gtk-app-devel-list < gtk-app-devel-list@gnome.org> wrote: > > > Is there any way to make this better? The image

Re: Link Gtk.ListStore to the real data

2018-06-05 Thread Lucky B.C
Well, what you want is a way to catch/handle the data that always changes and you want to show it on screen in anytime, right? There's no good solutions for that, I mean you must make an algorithm to do that by yourself. Why? Don't always lets Gtk or QT or something else stores our data because

Re: Pause and resume GtkApplication

2018-01-25 Thread Lucky B.C
icked the header-bar to restore the original geometry > the app-menu is still there. > > This is what I want. Question is, what happens when I double click the > header-bar and can I emulate this event in code? > > I feel being just 1 grain off my goal > > Thanks > >-Alex >

Re: Scrolling a GtkTreeview cell

2018-01-23 Thread Lucky B.C
Hi, can you show a demo about the problem? On Mon, Jan 22, 2018 at 6:03 PM, Kian Karas wrote: > Hi, > > I have a GtkTreeview with size constraints, which causes the text of one > particular column in one particular row not to fit into its cell. > > Is there a way for

GtkTextView - The “extend-selection” signal

2018-01-18 Thread Lucky B.C
Hi all, gboolean user_function (GtkTextView *text_view, GtkTextExtendSelection granularity, GtkTextIter *location, GtkTextIter *start, GtkTextIter *end, gpointer

Re: GtkTextView - The “extend-selection” signal

2018-01-20 Thread Lucky B.C
8 at 8:32 PM, Florian Müllner <fmuell...@gnome.org> > wrote: >> >> On Wed, Jan 17, 2018 at 3:19 PM, Lucky B.C <lblack...@gmail.com> wrote: >> > I'm trying to get the range of the selected word by >> > gtk_text_iter_get_offset (start) and gtk_text

Re: GtkTextView - The “extend-selection” signal

2018-01-20 Thread Lucky B.C
ction", G_CALLBACK (cb_handle_selection_mouse), buffer); ... } On Fri, Jan 19, 2018 at 9:02 PM, Florian Müllner <fmuell...@gnome.org> wrote: > On Wed, Jan 17, 2018 at 3:19 PM, Lucky B.C <lblack...@gmail.com> wrote: >> I'm trying to get

Re: Pause and resume GtkApplication

2018-01-22 Thread Lucky B.C
Hi, can you show your demo about the way you did? But I think you should keep the gtk_main() runs, because you can run your low-level functions by "clicked" signal on button. On Jan 23, 2018 03:44, "Alexander Koeppe" wrote: Hi, I have an application where some things

Re: Pause and resume GtkApplication

2018-01-23 Thread Lucky B.C
GTK_COMBO_BOX_TEXT(combo), "id1", "Entry 1"); > gtk_combo_box_text_append(GTK_COMBO_BOX_TEXT(combo), "id2", "Entry 2"); > gtk_combo_box_set_active(GTK_COMBO_BOX(combo), 0); > gtk_widget_set_hexpand(combo, TRUE); > > gtk_box_pack_start(GTK_BOX(box

Re: Scrolling a GtkTreeview cell

2018-01-24 Thread Lucky B.C
There's no supporting for scrolling one cell! But If I'm not wrong, the string value you put in the right column is a very long text, isn't it? And you want a solution for seeing the text in the limited view, don't you? Okay! We can make the text rendering in that way by 2 steps: 1) For a

Re: Lucky B.C.'s reply to GtkDrawingArea "width" and "height"

2018-03-07 Thread Lucky B.C
Okay, I see you really want to know how to resize the GtkDrawingArea by GtkSpinButton. Here It's my demo about resizing the GtkDrawingArea by 2 width and height GtkSpinButtons. On Wed, Mar 7, 2018 at 6:15 AM, Eric Cashon via

Re: The "effect" of carriage return in GtkTextView

2018-03-13 Thread Lucky B.C
Well GtkTextView doesn't do that, and GtkTextBuffer too but it can delete the range from GtkTextIter start to GtkTextIter end by gtk_text_buffer_delete , then you can insert again your new message by gtk_text_buffer_insert! On Tue, Mar 13, 2018, 23:02 arkkimede wrote: > HI!

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;

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

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: Using a ButtonBox instead of a Notebook?

2018-03-19 Thread Lucky B.C
taking all of its data from the GtkListStore. This is why I > thought I could just create and keep a separate GtkListStore in memory > for every bunch of data and assign them to the one GtkTreeView widget > whenever the user clicks a button. > > > Am 19.03.2018 um 05:39 schrieb Lucky B

Re: Using a ButtonBox instead of a Notebook?

2018-03-19 Thread Lucky B.C
ab inside the same window.* On Mon, Mar 19, 2018 at 8:13 PM, Bachsau <w...@bachsau.name> wrote: > Am 19.03.2018 um 13:21 schrieb Lucky B.C: > >> don't keep only one GtkTreeModel for storing the data, I mean you should >> have multiple GtkTreeModels. >> > > You

Re: A simple GtkSpinner is very costly in CPU cycles

2018-03-20 Thread Lucky B.C
Hi, I am not sure about playing animation of the spinner to cause the high cost. But you can try to have a callback from the g_timeout_add function for starting (gtk_spinner_start) and stopping (gtk_spinner_stop) the animation. On Tue, Mar 20, 2018, 21:07 Kian Karas

Re: A simple GtkSpinner is very costly in CPU cycles

2018-03-21 Thread Lucky B.C
perty TRUE or FALSE. On Wed, Mar 21, 2018 at 2:50 PM, Kian Karas <kian.karas@gmail.com> wrote: > Hi Lucky > > I don't understand what it is you suggest. Could you elaborate? > > Regards > > On Tue, Mar 20, 2018 at 3:35 PM, Lucky B.C <lblack...@gmail.com> wro

Re: Using a ButtonBox instead of a Notebook?

2018-03-18 Thread Lucky B.C
Hi, you're wrong about GtkTreeView did! Let's have more detail about what a GtkTreeView can do, here we go: 1) GtkTreeView can use more one GtkTreeModel . 2) GtkTreeModel is

Re: builder.ui and GtkDrawingArea size

2018-03-03 Thread Lucky B.C
GtkDrawingArea is a widget, so you just write the property width and height in the builder.ui, done!  On Tue, Feb 27, 2018 at 10:58 AM, Roger Matthews wrote: > How do I set the size, or what are the x and y size of a > GtkDrawingArea in builder.ui, I can't find

A custom widget

2018-08-05 Thread Lucky B.C via gtk-app-devel-list
Hi, I'm developing a custom widget for my private app in Gtk+-2.2.24. It has the parent GtkBin, the custom widget let me put more things inside, then show me it's done by drawing the icon for the added thing (stored in GtkVBox for row, GtkHBox for icons). Every icon has 3 states, normal, enter,

Re: Copywrite protection and source-code distribution

2018-08-02 Thread Lucky B.C via gtk-app-devel-list
In my view, you can choose donation or ads! On Thu, Aug 2, 2018, 08:31 Roger Matthews via gtk-app-devel-list < gtk-app-devel-list@gnome.org> wrote: > I have developed an application using GTK+3.10. What copy-write protection > can you (GTK+) provide for me. I have been told that copywrite is

Re: Simple GTK3 application in Nim?

2018-07-04 Thread Lucky B.C via gtk-app-devel-list
Nice job, sorry I don't use the Nim programming language. On Wed, Jul 4, 2018 at 1:12 AM, Matic Kukovec via gtk-app-devel-list < gtk-app-devel-list@gnome.org> wrote: > Found the problem. > To solve it the Nim application needs to load it's shared libraries with > dlopen(RTLD_GLOBAL). > >