Re: Past and future evolution of Gtk+

2017-09-17 Thread Ian Chapman
This is not a troll, only a trawler as in fishing boat. I found the discourse on “traditional file chooser” quite interesting and informative. I'm using glade 3.18.3 and I'm able to do useful work so possibly I'm off subject. Point 1 In glade I can select GtkMenuItem and GtkImageMenuItem and

Re: Cross-compiling GTK+, missing icons

2017-05-28 Thread Ian Chapman
Hi, maybe your previous thread was one that I initiated. The reply was nogo or use a docker. I'm wondering if you managed to generate a Win.exe that ran without loading any extras on all versions of windows? I'm sure what I was doing would work only with the exact compile version even on the

Re: Gray out a menu item Edit/copy etc

2017-04-08 Thread Ian Chapman
On 04/07/17 03:25, Stefan Salewski wrote: On Thu, 2017-04-06 at 19:52 -0400, Ian Chapman wrote: Now I need to turn it on/off so that I can use/disable it. For GTK3 we have https://developer.gnome.org/gtk3/stable/GtkWidget.html#gtk-widget-set-sensitive So there should be a similar function

Gray out a menu item Edit/copy etc

2017-04-06 Thread Ian Chapman
Hi, I have some GtkMenuItem in my .glade file and I removed the tick in Sensitive flag. The item is grayed out, good. Now I need to turn it on/off so that I can use/disable it. Looking at the Gtk3 manual I am not able to find any reference to sensitive. A search on the internet gave |menuO

$HOME and gtk_file_chooser_set_current_folder

2017-03-01 Thread Ian Chapman
Hi, this is most likely my failure to fully understand gtk. I have enclosed the following code snippets that work and fail to work. I have a work round so it is not too bad an issue for me. gchar WorkingPath[500] = {"$HOME/Project/" };//FAILS (this grows as sub-projects are selected in p

Re: Gtk3 portability

2017-02-11 Thread Ian Chapman
2017 at 7:22 PM, Ian Chapman <mailto:ichap...@videotron.ca>> wrote: Gtk3 portability Hi, I have made a Linux gtk3 program and have it running on my Debian Mint AMD64 machine. I mistakenly thought that the program file (binary file) held all that was needed to run.

Gtk3 portability

2017-02-11 Thread Ian Chapman
Gtk3 portability Hi, I have made a Linux gtk3 program and have it running on my Debian Mint AMD64 machine. I mistakenly thought that the program file (binary file) held all that was needed to run. I moved the program file to a newly installed Mint 18.1 and ran into a few difficulties. 1.

gtk_entry_set is a bit late.

2016-07-04 Thread Ian Chapman
extern "C" void on_Signal_activate(){ /*Phase 1 */ gtk_entry_set_text(Status, "Starting phase 1"); //just show activity. std::cout << "Starting phase 1" << std::endl; /*Phase 2 */ gtk_entry_set_text(Status, "Starting phase 2"); //jus

Re: signal for closing app

2016-06-06 Thread Ian Chapman
The signal delete event is for the top level widget (usually window) and it's under the signal tab, and it's way way down under GtkWidget. You also need code like extern "C" int on_MainScreen_delete_event(){ std::cout << "Quit main widget little x." << std::endl; gtk_main_quit ();

Re: multiple windows

2016-05-23 Thread Ian Chapman
look at the backtrace to get clues on where those error messages are coming from. On Thu, May 19, 2016 at 9:19 AM, Ian Chapman <mailto:ichap...@videotron.ca>> wrote: Hi, I must have missed a basic point on how to use tdk and glade. I have my main window and that wo

multiple windows

2016-05-19 Thread Ian Chapman
Hi, I must have missed a basic point on how to use tdk and glade. I have my main window and that works the way it should. I have a signal from a button that opens a second window and three thing are not right. When the window opens the terminal shows --- (main:17061): Gtk-WARNING **: S

Re: "Cannot finding signal handler" even after compiling with -rdynamic

2016-01-17 Thread Ian Chapman
Yes, I had something like that and ended with this which I hope may help you. I was thinking pull the widgets out of the glade file if that makes sense. Ian main.cpp GtkWidget *Battery, *Temp, *Chip_volts; //these are GtkProgressBar derived from glade. int main (int argc, char *argv[]) {

Re: g_idle_add() clarification

2015-01-20 Thread Ian Chapman
in() after gtk_widget_show (window); I'm stuck for the moment not understanding. Richard's suggestion improved things but my code and idea is still broken on exiting Scanning() Regards Ian. On 01/20/2015 04:57 PM, Chris Vine wrote: On Tue, 20 Jan 2015 16:47:27 -0500 Ian Chapman wro

Re: g_idle_add() clarification

2015-01-20 Thread Ian Chapman
the GLib-CRITICAL stuff on exiting Scanning(). Ian. On 01/20/2015 03:34 PM, richard boaz wrote: hi, you are calling the function Scanning() in the g_idle_add() call. richard On Tue, Jan 20, 2015 at 3:23 PM, Ian Chapman <mailto:ichap...@videotron.ca>> wrote: Hi all, Sorry to b

g_idle_add() clarification

2015-01-20 Thread Ian Chapman
Hi all, Sorry to bother but I'm lost with the workings of guint g_idle_add () My code is as follows extern "C" void on_StartScan_activate() //from gtk menu item { printf("Start Scan Activated. \n"); scan_on_fg =1; Scanning_lvl = g_idle_add((GSourceFunc) Scanning(), (gpointer) 0); printf("

Re: Progress_bar failing to change

2014-12-16 Thread Ian Chapman
On 12/15/2014 10:49 PM, Ian Chapman wrote: Hi All, I'm having a strange problem using gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR(Battery), x); I have it in two places, the first in my file that has main() and that works like I'd expect. The second in a different module and t

Progress_bar failing to change

2014-12-15 Thread Ian Chapman
Hi All, I'm having a strange problem using gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR(Battery), x); I have it in two places, the first in my file that has main() and that works like I'd expect. The second in a different module and that compiles and runs but fails to change the progress ba

Gtk and SDL

2014-10-30 Thread Ian Chapman
Is it simple to put a dynamic SDL generated image into a Gtk 3 container or is it best to keep them as separate as possible? Ian. ___ gtk-list mailing list gtk-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-list

Widget

2014-09-12 Thread Ian Chapman
Hi, Is there a gtk+-3 widget a bit like a progress bar but simply a light where the brilliance can be controlled? That is lamp off, lamp dim, lamp brighter and lamp bright as a minimum. Ian. ___ gtk-list mailing list gtk-list@gnome.org https://m

printf okay strcpy with cName_pt segment fault

2014-06-06 Thread Ian Chapman
void on_filechooserwidget2_selection_changed(GtkFileChooser *fs) { printf("\n Selection changed. \n"); char*cName_pt; cName_pt = gtk_file_chooser_get_uri(GTK_FILE_CHOOSER(fs)); printf("\n cName_pt = %s .\n", cName_pt);//Prints selected file okay. //