Re: Reg. modifying GTK+ to add menu option

2013-04-11 Thread Vlasov Vitaly
Hello. Hmm... I use goldendict for similar functionality. goldendict has a special key (default win+alt). When special key is pressed, current selected word will be translated in pop-up window, as it is shown in your first screenshot. How does goldendict do it? I think he scan all keypress actions

Re: Toggle button which enables GtkTextTag

2012-11-15 Thread Vlasov Vitaly
Чт., 08/11/2012 в 00:10 +0400, Vlasov Vitaly пишет: > I created TextView with TextBuffer with TextTagTable, filled by my > TextTag's and ToggleButton. > > With ToggleButton i want enable "mytag" mode. Button must work as like > in LibreOffice Writer. When i activate &

Toggle button which enables GtkTextTag

2012-11-07 Thread Vlasov Vitaly
I created TextView with TextBuffer with TextTagTable, filled by my TextTag's and ToggleButton. With ToggleButton i want enable "mytag" mode. Button must work as like in LibreOffice Writer. When i activate "bold mode" printing text will be bold. And, if i disable "bold mode" printing text will be n

GtkToggleButton with GTK_STOCK item

2012-10-30 Thread Vlasov Vitaly
Hello. How to create GtkTogleButton with Icon and Label from STOCK? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: GtkTreeIter assignment

2012-10-30 Thread Vlasov Vitaly
0/10/2012 в 14:36 +0100, David Nečas пишет: > On Tue, Oct 30, 2012 at 05:05:37PM +0400, Vlasov Vitaly wrote: > > Is that normal, to assign one GtkTreeIter to another? > > > > For example: > > void add_new( ... , GtkTreeIter *iter) > > { > > GtkTreeIter

GtkTreeIter assignment

2012-10-30 Thread Vlasov Vitaly
Hello list. Is that normal, to assign one GtkTreeIter to another? For example: void add_new( ... , GtkTreeIter *iter) { GtkTreeIter *default_iter; if(iter != NULL) { default_iter = iter; <-- is that noraml?? } gtk_tree_store_append(&default_iter); } __

vim gtk+3.0 syntax

2012-09-24 Thread Vlasov Vitaly
Hello, all. Is GTK3.0 Vim syntax highlighting exist? I found in Internet python script vim-sym-gen.py, that generate symbols from gtk-doc, but don't know how to use it. Where to find manual/how-to to this script? ___ gtk-app-devel-list mailing list gtk-

Re: how to get entry from GtkComboBoxEntry?

2012-09-11 Thread Vlasov Vitaly
2012 at 03:29:10PM +0400, Vlasov Vitaly wrote: > > I wanna use some ComboBox/Entry widget: > > It should contain tree model with language names and hidden ISO 639-1 > > codes, for example "English"("en") "German"("de") "Russian"(&qu

how to get entry from GtkComboBoxEntry?

2012-09-11 Thread Vlasov Vitaly
Hello list. I wanna use some ComboBox/Entry widget: It should contain tree model with language names and hidden ISO 639-1 codes, for example "English"("en") "German"("de") "Russian"("ru") or other. And, in addition, it should allow to user write ISO 639-1 language code from keyboard. So, with tre

widget_destroy() question

2012-08-16 Thread Vlasov Vitaly
Hello list. For example, i got frame in which packed vbox. In vbox packed in five buttons. If i call gtk_widget_destroy(), all packed widget's will be destroyed? or only frame? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org ht

Re: GList strange behavior

2012-08-16 Thread Vlasov Vitaly
Thank you! I almost understand bahavior of GList. I need to save newly created list poiner. So, i need to use g_list_last() to save it? Is there another method to save created list pointer? В сообщении от Четверг 16 августа 2012 15:51:22 вы написали: > Hi. > > Not sure what is troubling you her

Re: GList strange behavior

2012-08-15 Thread Vlasov Vitaly
> In real program, i need to get newly created list pointer in function > > like button_cb(), but don't know how to do it. > > Just pass it through callback's argument or declare it as global variable. > > On Wed, Aug 15, 2012 at 8:04 AM, Vlasov Vitaly wrote: > > Hi,

GList strange behavior

2012-08-14 Thread Vlasov Vitaly
Hi, list. I can't understand, why g_list_append return different values in my callback's(please read source). In first case i got same list, which was obtained from arguments. In second case g_list_append returns newly created list. Why result's is are not the same? In real program, i n