Re: Combobox focus event

2017-04-08 Thread Eric Cashon via gtk-app-devel-list

Another thing to give a try is just to set a boolean in the "set-focus-child" 
callback. Not sure if this will always work. I think that it should. 

I don't know the best workaround for the "focus-in-event" in a combo box. It 
isn't obvious how to connect that signal for the combobox.

Eric


gboolean combo_focus=FALSE;
g_signal_connect(combo, "set-focus-child", G_CALLBACK(focus_combo_container), 
_focus);
...
static void focus_combo_container(GtkContainer *container, GtkWidget *widget, 
gboolean *combo_focus)
  {
if(*combo_focus) 
  {
g_print("Combo Container Focus Out\n");
*combo_focus=FALSE;
  }
else
  {
g_print("Combo Container Focus In\n");
*combo_focus=TRUE;
  }
  }

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


gtk function with argv

2017-04-08 Thread RĂºben Rodrigues
Why guys,

I have a doubt that is more about C language that gtk+ but it's to apply 
to gtk+.

I have this function:

GtkChart vChart_Init(GtkWidget *widget, GtkSeries *series)

My doubt is: How can i use function like this: 
vChart_Init(GTK_WIDGET(widget), "Series A", "Series B", "Series C");

I need that second parameter is dynamic  and is a string (that contains 
the name of serie)

THanks

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