Subclassing on a GtkSourceMark
Hello guys! While I was developing my application I just wished that I had more control on the way GtkSourceMarks render (yes, I am using the GtkSourceViewModule) GTK+ is amazing in all aspects. Including the sources. So I ask you, who know GTK+ sources better, could you please provide me with some Assistance. Since GtkSourceGutter, GtkSourceGutterRenderer, GtkSourceMark and GtkSourceMarkAttributes is all coded up so that size of the pixbuf in the gutter solely depends on the size of the font. I would like to subclass it and override the rendering signal so that it uses custom sizes. Could you tell me what function in what source file I had to change to do that? I hope it will be as simple as subclassing on GtkSourceMark and changing a line or two in the draw signal, because I don't have much time to be honest and I am attempting now to be time-efficient. Thanks in advance. - Mail.BG: Безплатен e-mail адрес. Най-добрите характеристики на българския пазар - 30 GB пощенска кутия, 1 GB прикрепен файл, безплатен POP3, мобилна версия и други. http://mail.bg ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Problem with sizes of pixbuf in left gutter
Is there any way I can scale up / use default pixbuf size when rendering in the left gutter using `gtk_source_mark_attributes_set_pixbuf()`. It will scale it down to barely noticeable icon and calls to `gtk_source_mark_attributes_render_icon()` have no effect whatsoever. The gutter width is large enough to contain my pixbuf, I don't see what's the point in scaling it down, without me having to decide so. If the only solution involves subclassing and stuff like that I am willing to pay for the help. - П.П. Искаш бизнесът ти да е и онлайн? Лесно е! Направи си сайт. В СуперХостинг.БГ пазят място за него! Виж повече на www.superhosting.bg. https://www.superhosting.bg/?utm_source=mail.bg_medium=cpm_content=mail_header_campaign=campaign2018 ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Second argument of gtk_source_mark_attributes_render_icon
What should be the second argument of the function gtk_source_mark_attributes_render_icon(); It is of type GtkWidget and according to the reference page this is "widget of which style settings may be used". I find it for a bit unclear. When I call gtk_source_mark_attributes_render_icon(att, some_random_widget, 40); takes no effect and the pixbuf rendered in the gutter is as small as 10x10 or something. I even set the gutter size to 40. How can I render bigger pixbufs in the gutter? - П.П. Искаш бизнесът ти да е и онлайн? Лесно е! Направи си сайт. В СуперХостинг.БГ пазят място за него! Виж повече на www.superhosting.bg. https://www.superhosting.bg/?utm_source=mail.bg_medium=cpm_content=mail_header_campaign=campaign2018 ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: GTK+ doesn't track motion of DND file from desktop
I am indeed using GTK+ 3.22.30 But what i forgot to mention is that I am also running on Windows. - П.П. Искаш бизнесът ти да е и онлайн? Лесно е! Направи си сайт. В СуперХостинг.БГ пазят място за него! Виж повече на www.superhosting.bg. https://www.superhosting.bg/?utm_source=mail.bg_medium=cpm_content=mail_header_campaign=campaign2018 ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
GTK+ doesn't track motion of DND file from desktop
My initialization of the destination widget is as such: GtkTargetList* target_list = gtk_target_list_new(NULL, 0); gtk_target_list_add_image_targets(target_list, 0 /* ALL_IMAGES */, FALSE); gtk_target_list_add_uri_targets(target_list, 1 /* TEXT_URI */) ; gtk_drag_dest_set(GTK_WIDGET(gui.event_dropbox), 0, NULL, 0, GDK_ACTION_DEFAULT); gtk_drag_dest_set_target_list(GTK_WIDGET(gui.event_dropbox), target_list); gtk_drag_dest_set_track_motion(GTK_WIDGET(gui.event_dropbox), TRUE); Doing so, if I DND text from within the application it tracks motion in the `drag-motion` event, but doesn't seem to invoke this signal at all when dealing with files from the desktop. It invokes all other signals as expected, beside `drag-motion` and `drag-leave`. I am very exhausted from trying to figure this out, so maybe some of you can? - П.П. Искаш сайт? Направи си, лесно е! Отиди на www.superhosting.bg и избери най-доброто име за него. Започни сега със СуперХостинг.БГ! https://www.superhosting.bg/?utm_source=mail.bg_medium=cpm_content=mail_header_campaign=campaign2018 ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: GtkSourceMap selector not updating
Fixed it. The minimap should be initialized within the "activate" signal when working with GApplication. - П.П. Искаш сайт? Направи си, лесно е! Отиди на www.superhosting.bg и избери най-доброто име за него с домейн .COM само за 9,75 лв. Започни сега! https://www.superhosting.bg/?utm_source=mail.bg_medium=cpm_content=mail_footer_campaign=campaign2018 ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
GtkSourceMap selector not updating
I add a GtkSourceMap in a container next to a GtkSourceView and set mapping. (GtkSourceView and GtkSourceMap share the same container - box). When I try to scroll vertically using the minimap selector I notice that it scrolls as it should, but doesn't update the selector that is drawn and it looks as it stays still and nothing is scrolling. I am really out of ideas why this happens so if anyone knows.. - П.П. Знаеш ли, че можеш да стартираш своя сайт още сега само за 9,75 лв? Избери най-доброто име за него с домейн .COM на промо цена само до 25 октомври. Научи повече на www.superhosting.bg. https://www.superhosting.bg/?utm_source=mail.bg_medium=cpm_content=mail_footer_campaign=campaign2018 ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list