Allin Cottrell <mailto:cottr...@wfu.edu>> 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 UTF-16, so you don't lose the letters
"foreig
Hi Allin,
on Windows, it is advisable to use an API to get the command line
parameters as UTF-16, so you don't lose the letters "foreign" to your
code page.
See "CommandLineToArgvW" for more info:
https://msdn.microsoft.com/en-us/library/windows/desktop/bb776391(v=vs.85).aspx
Regards,
M
On 23.6.2016. 20:57, Enno Borgsteede wrote:
Hello Miroslav,
I also noticed, after upgrading my app from older GTK 2.24.x to
2.24.30 (on OS X) that the tree item reordering
(gtk_tree_view_set_reorderable) stopped working correctly.
Can you tell what that old version exactly is?
I only suspe
I also noticed, after upgrading my app from older GTK 2.24.x to 2.24.30
(on OS X) that the tree item reordering (gtk_tree_view_set_reorderable)
stopped working correctly.
So, yes, you are probably seeing a real bug in the code...
Regards,
Miroslav
On 22.6.2016. 20:10, Enno Borgsteede wrote:
Thanks, this is quite useful info.
Regards,
Miroslav
On 17.7.2015. 5:59, Michael Torrie wrote:
F10 seems to focus on the menu on GTK apps. That could be a good
workaround in the meantime.
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnom
On 15.7.2015. 14:12, Emmanuele Bassi wrote:
you probably want to contact the gnome-accessibility team, on
gnome-accessibility-l...@gnome.org.
Will do as suggested, thanks.
Regards,
Miroslav
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gno
show(item1);
gtk_container_add(GTK_CONTAINER(menu1), item1);
}
On 15.7.2015. 13:55, Miroslav Rajcic wrote:
Hi everyone,
recently I've received the mail from a blind user of my program
complaining about accessibility issues.
Program is GTK+ 2.x based, he tried Windows edition.
One of the
Hi everyone,
recently I've received the mail from a blind user of my program
complaining about accessibility issues.
Program is GTK+ 2.x based, he tried Windows edition.
One of the things he mentioned is that pressing Alt key in the main
window should cause the first item in the menu bar to b
I've implemented custom clipboard handling in my program that allows me
to push to clipboard more than one clipboard format in parallel (plain
text format plus "text/html" plus "HTML Format" on windows etc).
My issue is that from time to time I get report from users that they can
not paste pla
On 7/20/2012 8:50 AM, Frank Cox wrote:
How can I check if a GtkWidget exists?
I am planning to create and destroy widgets in a window depending on the user's
selections, but I can't figure out how to determine if a particular widget
already exists in the window so it won't be created twice or re
Here is a starting point to install GTK on OSX:
http://live.gnome.org/GTK%2B/OSX/
And It can running separately from X in OSX?
Not yet.
Actually you can run it separately from X server, like an ordinary
application, when using Quartz backend.
What you need is is to check GTK-OSX project,
I am trying to use "drag-motion" signal to add support for some additional
drop format testing (using tree view for drop target).
But I noticed the following thing: it appears that "drag-motion" is not
fired at all when dragging the data from the external source!?
Note that "drag-drop" handler
The source compiles fine and the application runs, but instead of
displaying the PNG file, it only shows a black square with no apparent
content.
Please help me, what am I missing or doing wrong?
You are running the program within an loop that does not process GTK events.
You need to add a ca
Seems I was blind not to see gtk_target_table_from_list.
And maybe I was not alone :-)
J.
So true :)
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Maybe you should report the bug about missing accessors so it gets fixed.
I've added the bug report here:
https://bugzilla.gnome.org/show_bug.cgi?id=644490
Feel free to comment or add suggestions there.
Thanks to everyone for the help.
___
gtk-app-dev
GtkTargetEntry targets[] = {
{"text/html", 0, 0},
{"text/plain", 0, 0}
};
size_t num_targets = sizeof(targets) / sizeof(targets[]);
This would work if I would know the count of the targets in advance.
I want to support all possible text formats, so I use
"gtk_target_list_add_text_targets"
You're right, but this seems odd. In the GTK3 version of the
documentation the basic structures GtkTargetEntry and
GtkTargetPair are still exposed in the API, and although
GtkTargetList is said to be opaque (a) it's unclear why this
should be so (it seems to be a trivial composite) and (b) the
fun
I don't know the answer, but this is "wrong":
int nTargetCnt = g_list_length (list->list);
But as you say, it doesn't help me :(
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
gtk3-devel package in Fedora 14 is too old (2.90.5).
Maybe you want to get latest version (I'm not sure).
Actually, I use GTK3 v3.0.2 on Fedora 15 alpha.
This is the last version I could find in their repository.
Is there any other distro on the net with newer packages ?
I'd prefer if I don't h
I resolved the majority of the the issues when porting my program from GTK
2.x to GTK 3.x.
Unfortunately I still have one issue left:
when compiling the program on Feodra 15 alpha (gcc 4.6, GTK3 v3.0.2) I get
these errors:
./src/clipboard.cpp:442:38: error: invalid use of incomplete type
'Gt
from_stock( GTK_STOCK_MEDIA_PLAY,
GTK_ICON_SIZE_SMALL_TOOLBAR);
gtk_widget_show(img1);
gtk_tool_button_set_icon_widget(GTK_TOOL_BUTTON(tool_pause), img1);
Thank you for your help.
Regards,
Miroslav
- Original Message -
From: "James Morris"
To: "Miroslav Rajcic"
I am trying to make the "Pause" button flash (or show any similar behaviour
similar to that) when the pause state is active.
So far I tried many things, but none of these seem to work:
- changing the button background color
- changing the button stock icon
- changing the button relief style
Rele
It appears that GtkSourceCompletionWords provider grabs the words that exist
in your text view
and offers one of those as completion suggestion once you type a similar
word.
Correct me if I am wrong, but this is my experience with almost exact code
as the one you are using.
And the fact that Gtk
I am having a PNG picture with alpha transparency loaded with
gdk_pixbuf_new_from_file.
If I resize the pixbuf using gdk_pixbuf_scale_simple (GDK_INTERP_BILINEAR)
the resulting picture loses alpha information and the
picture, inserted within the text view, is displayed with the black
backgroun
As far as I can see GtkSourceCompletion is not obsolete, it has just become
part of the GtkSourceView library.
See here: http://library.gnome.org/devel/gtksourceview/stable/
I also started looking for the examples of its usage.
You can find an example in GtkSourceView code itself and in Anjuta co
I am using the latest GTK 2.22 build for Windows found at gtk.org.
I've noticed that since this version, when opening GtkFileChooserDialog I
get this printout in the terminal:
Could not find the icon 'gtk-file'. The 'hicolor' theme
was not found either, perhaps you need to inst
Does anyone know if it is possible to show the palette widgets in the dialog
started from GtkColorButton ?
GtkColorSelection/GtkColorSelectionDialog widgets support showing the
palette, but I can not seem to access this functionality through
GtkColorButton widget.
Does anyone know a way to get
Since you are just changing various GtkSettings, it would be better to
use the GtkSettings API:
g_object_set (gtk_settings_get_default (),
"gtk-theme-name", "HighContrastInverse",
"gtk-font-name", "Sans 10",
NULL);
Your original approach may not be working
I am trying to write a code to set a custom GTK theme for my program (should
affect only my application).
The problem is that this sample code works fine on Windows, but not on
Linux:
char *pszStyle = "gtk-theme-name = \"HighContrastInverse\"\nstyle \"custom\"
{\nfont_name="Sans 10"\n} widge
I knew that GTK toolkit on Windows has major problems with drawing print
preview of a document, but it seems that the new GTK 2.18.x has the same
problem on Linux too.
Starting with Ubuntu 9.10 and Fedora 12, my print preview code just displays
blank pages now :( Note that the same code is te
No idea, those methods are documented under glib.
Perhaps someone else will know the details.
- Original Message -
From: "Jack Turner"
To: "Miroslav Rajcic"
Cc:
Sent: Saturday, June 06, 2009 1:51 PM
Subject: Re: Old gtk app, file open dialog freezes (Ubunt
ne 06, 2009 11:48 AM
Subject: Re: Old gtk app, file open dialog freezes (Ubuntu 9.04)
Seem likely that I have the same problem.
This must be an Ubuntu bug then?
I just can't see how I can do without the g_io functions that I use.
On Sat, 2009-06-06 at 07:50 +0200, Miroslav Rajcic wrote:
I
I had the same problem with my program, and discovered by chance
that linking with gio library seems to cause this.
When I canged some unrelated code to older GnomeVfs, the file open dialog
started to work fine on the new Ubuntu 9.04.
Hopefully, the same tip could work for you.
Regards,
Miros
he latest one, but not too old one) and VS2005. I've run
some tests and it appears that the same problem exists on Linux too.
When dragging the Firefox contents over "Clipboard Spy" tool, I notice that
data formats include "CF_TEXT" and "text/html".
Why
After upgrading Windows build of gtk (from www.gtk.org) from 2.14.7 to the
latest 2.16.0, I've noticed that my print preview code stopped working.
When initiated, print preview dialog is displayed, but than it hangs
indefinitely with the "Preparing" message. Note that I've tested, and it is
no
I seem to have forgotten to upload the gettext_0.17-2_win64 build...
It is there (http://ftp.gnome.org/pub/GNOME/binaries/win64/dependencies/
) now. I think I forgot to use the -machine:x64 switch when building
the import library in the -1 package. The -2 one has a correct import
library intl.lib.
To be precise, the problem here is that the symbol exported is
actually _libintl_fprintf. (And the same pattern holds for all other
symbols, too, this is not restricted to just libintl.)
Overall problem does not seem to be big at all.
The only library with a problem seems to be "intl.lib". All o
Does anyone use a 64bit Windows build available from gtk.org ?
I've installed a latest bundle of this release. Compile of my program works
fine,
but at the linking phase I get lots of unresolved external symbols related
to intl.lib (the lib is correctly added to the list of libraries to link
w
Something like this:
GtkFileFilter *filter =
gtk_file_chooser_get_filter(GTK_FILE_CHOOSER(m_pDialog));
if(filter)
gchar*szName = gtk_file_filter_get_name(filter);
- Original Message -
From: "frederico schardong"
To:
Sent: Monday, February 16, 2009 11:54 AM
Subject: Re: how to get
I myself am using lower level functions like open, read, ... instead of
methods that use FILE structure. When opening the file be sure to pass
O_LARGEFILE flag.
Regards,
Miroslav
- Original Message -
From: "Dan Ium"
To:
Sent: Friday, January 23, 2009 10:16 AM
Subject: How to hand
You can run your application in portable mode, meaning your GTK runtime
can be released together with the application.
For more details, you can see my Notecase project and its portable version
for Windows.
(http://sourceforge.net/projects/notecase or
http://notecase.sourceforge.net/)
It uses s
latest GTK 2.14.5 from www.gtk.org).
Does anyone have any constructive tip or workaround ?
Can anyone confirm the problem ?
This seems like a major problem to me, because GtkTreeView is one of the
basic components.
TIA,
Miroslav Rajcic
___
gtk-app-dev
I've updated my GTK build for Windows from the previous version to the
latest GTK 2.14.4.
The first thing I've noticed that my print preview stopped working
correctly.
Now I get the empty white preview window, meaning no text that I draw on it
is being displayed.
Reverting to the older cairo
I had a same problem a while ago with expose drawing, and it turned out that
the problem was this:
to draw something in your handler, you must use "event->window" as a pointer
to the window that is being drawn, not "widget->window" or anything else.
Once I've made that change, my expose drawi
Thanks, I'll try that.
Miroslav
- Original Message -
From: "Tor Lillqvist" <[EMAIL PROTECTED]>
To: "Miroslav Rajcic" <[EMAIL PROTECTED]>
Cc:
Sent: Saturday, September 13, 2008 8:47 PM
Subject: Re: GtkSourceView build for Windows?
> > Is t
least not with MSVS8. So I had to create an import library for
libgtksourceview-2.0-0.dll using pexports and lib instead, which is
trivial.
Can you explain this in more detail please?
I've found the pexports.exe here in this page:
http://www.emmestech.com/software/pexports-0.43/download_pexpor
- Original Message -
From: "Tor Lillqvist" <[EMAIL PROTECTED]>
To: "Miroslav Rajcic" <[EMAIL PROTECTED]>
Cc:
Sent: Friday, September 12, 2008 11:55 PM
Subject: Re: GtkSourceView build for Windows?
I should mention what happened when I tried that: The
endif
Could this ommision be the source of my problems? Does anyone use
GtkSourceView successfully on Windows platform?
Regards,
Miroslav
- Original Message -
From: "Paolo Borelli" <[EMAIL PROTECTED]>
To: "Miroslav Rajcic" <[EMAIL PROTECTED]>
Cc:
Sent:
- Original Message -
From: "Paolo Borelli" <[EMAIL PROTECTED]>
Official gtksourceview windows binaries are available at
http://ftp.gnome.org/pub/gnome/binaries/win32/gtksourceview/
and are linked from the download page of gtksourceview web site at
http://projects.gnome.org/gtksourcev
- Original Message -
From: "Paolo Borelli" <[EMAIL PROTECTED]>
Official gtksourceview windows binaries are available at
http://ftp.gnome.org/pub/gnome/binaries/win32/gtksourceview/
and are linked from the download page of gtksourceview web site at
http://projects.gnome.org/gtksourc
Does anyone know a good Windows build for GtkSourceView and its dependencies
?
I've managed to find only this build:
http://code.google.com/p/bpad/wiki/GtksourceviewForWindows
When unpacked, it provides .a file instead of .lib format.
I could link against that, but then my application crashes o
I am not sure about the exact rc file syntax.
I guess you'll have to experiment with it.
- Original Message -
From: "XiuHua Wu" <[EMAIL PROTECTED]>
To: "Miroslav Rajcic" <[EMAIL PROTECTED]>
Cc:
Sent: Thursday, September 04, 2008 10:10 AM
Subject:
Maybe this sample might help. This a a part of my code to set the color of
the text view caret.
With similar method you can probably set the global style in your
application too (for example, to paint all GtkTextView widgets in your
application).
static const char cursor_color_rc[] =
ot;Micah Carrick" <[EMAIL PROTECTED]>
To: "Miroslav Rajcic" <[EMAIL PROTECTED]>
Cc:
Sent: Tuesday, May 13, 2008 4:32 PM
Subject: Re: GtkTextView: how to stop default "paste-clipboard" handler ?
> You may have to instead catch the Ctrl+V keybinding from wit
I've needed to override the default GtkTextView pasting code in order to
support
pasting of formatted text.
My problem is that after adding the handler for "paste-clipboard" signal,
the same text is pasted twice:
- once as a formatted text,
- and once more as a plain text (I suspect this other co
I am trying to support pasting formatted text from OO.org Writer into my
program using HTML clipboard format
Under Windows OS, using "clipboard spy" I can see that the OO.org Writer
puts these formats to the clipboard:
- "HTML (HyperText Markup Language)"
- "HTML Format"
Problem is that, when I
Is there a way to set the top and bottom margins for text within the
GtkTextView ?
I've noticed there are methods to set the left and right margins, but not the
ones for top and bottom.
Regards,
Miroslav
___
gtk-app-devel-list mailing list
gtk-app-d
When user initiates clipboard copy action, I want to push the data to
clipboard in more than one format (plain text and HTML). My problem is that
the code below does not seem to work for me (tested on Windows).
Does anyone know what could be wrong here ?
Clipboard function for getting data is n
Does anyone know any sample code to demonstrate
drawing arbitrary text over the GtkTextView widget and its contents ?
TIA,
Miroslav Rajcic
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app
To correct the previous statement, even debug build crashes when started
outside of the VS2005 IDE. When started from the IDE it seems to run OK.
> Does this happen only when you compile against the 2.12.2 headers, and
> run against 2.12.2 binaries?
Yes. Compiles without problems, but crashes on
s the similar experience with the new version ?
Regards,
Miroslav
- Original Message -
From: "Tor Lillqvist" <[EMAIL PROTECTED]>
To: "Miroslav Rajcic" <[EMAIL PROTECTED]>
Cc:
Sent: Thursday, November 29, 2007 9:58 AM
Subject: Re: GTK+ v2.12.2 build for
Does anyone know when can we expect latest GTK+ build (2.12.2) for Windows ?
Regards,
Miroslav
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
I am having a text like "0bullet" inside of GtkTextView, where the first
character is a bullet sign and the rest is the ordinary text
I need to be able to format this text to insert some space gap between the
bullet and the rest (should look like this: "0 bullet").
I've tried using tags in 3 d
I wrote a simple printing test that shows a probable GTK+ bug when run on
Windows OS.
Test draws one red rectangle over the page area.
When run on Linux, page preview looks good.
When run on Windows, rectangle does not fill entire area of the page (not
counting margins)!
I've checked if the prob
olor.green, color.blue);
cairo_move_to (cr, nPosX, nPosY);
pango_cairo_show_layout (cr, layout);
Does anyone knows what is the problem with this ? Is this a GTK bug ?
Is it the code problem ?
Regards,
Miroslav
- Original Message -
From: "Behdad Esfahbod" <[EMAIL PROTECTED
I've tried to find out the answer to this question but I seem to be running
in circles.
The code below has one liner to set foreground (font) color for the pango
layout being printed.
How do I set the background color for the same plango layout ?
TIA,
Miroslav Rajcic
l
I want to support printing in my application using GtkPrint.
Is there a simple way to print the contents of the GtkTextBuffer (containing
multiple fonts, colors and other formatting)
using the GtkPrint ?
Do I have to write the code that draws the text manually ?
Is there any complex sample code
> If this happens on MS Windows and the dialogs are modal,
> a workaround is to make the parent dialog temporarily
> non-modal for the time the child dialog is displayed.
> However, it's not so easy to do this for the selectors as
> they do not provide any interface regarding the child
> dialogs.
I am having two GtkColorButton and GtkFontButton widgets on my options
dialog.
My problem is that when user clicks to one of those widgets, selection
dialog that opens on the click, is opened correctly, but is being displayed
underneath the options dialog
(which uses gtk_window_set_keep_above(G
You can use "gtk_tree_view_column_set_cell_data_func" to register a callback
method to supply data for the tree view.
Regards,
Miroslav
- Original Message -
From: "Nuno Lucas" <[EMAIL PROTECTED]>
To:
Sent: Friday, June 01, 2007 2:53 PM
Subject: Virtual list boxes (using GtkTreeView or
I am trying to catch event when selection changes in a text view.
So far, I've only found "move-cursor" signal on the GtkTextView object.
The problem with this signal is that this is triggered before selection
changes and I want to be notified after the change.
Does anyone know any better signal
You should not create widgets from threads other than the main thread.
To overcome this problem I use idle time processing callback (using
g_idle_add() method). Basically, you have to create some idle time requests
queue, that will create and display windows/messages etc. Then you can
create th
at 01:28:32PM +0100, Miroslav Rajcic wrote:
>> I am having a problem to underline text for some (not all) nodes in a
>> GtkTreeView.
>>
>> I've tried following:
>>
>> 1. a) add new column in the tree store of type G_TYPE_ENUM (tried integer
>> type t
I am having a problem to underline text for some (not all) nodes in a
GtkTreeView.
I've tried following:
1. a) add new column in the tree store of type G_TYPE_ENUM (tried integer
type too)
b) attach text renderer to this store column:
gtk_tree_view_column_set_attributes(column, renderer,
Is there a simple way to set a focus on an item in the GtkTreeView without
changing its selection state?
I've tried using gtk_tree_view_set_cursor API, but it seems to always set
item selected too.
My current solution is to:
1. read selection state of an item
2. call gtk_tree_view_set_cursor
Paul Santa Maria wrote:
Hi -
I'm implementing a kiosk-style application in GTK+, and it's important to
*disable* window resize, minimize, maximize, etc.
Is there any way to simply remove window decorations (especially the "X" close
button) from a GTK+ window?
Thank you in advance .. PSM
_
This looks interesting, thanks for the tip.
Best regards
Miroslav Rajcic
- Original Message -
From: "Kristof Vansant" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc:
Sent: Tuesday, March 22, 2005 11:54 AM
Subject: Re: How to detect already running applicati
Linux.
Best regards,
Miroslav Rajcic
- Original Message -
From: "John (J5) Palmieri" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc:
Sent: Friday, March 18, 2005 3:00 PM
Subject: Re: How to detect already running application...
> There are a number of hacks
still gets focused when Tab key is used to change focus.
Anyone has a clue?
TIA,
Miroslav Rajcic
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
I am having treeview with visible headers.
What I need to do is to remove GTK_CAN_FOCUS flag from the header button
widgets
(GTK_WIDGET_UNSET_FLAGS(view, GTK_CAN_FOCUS)) .
My problem is that I don't know how to access header widget(s).
Is this possible ?
TIA,
Miroslav R
80 matches
Mail list logo