Re: Spurious right-to-left problem, kindly advise a fix

2005-07-02 Thread Barry Kauler
On Fri, 1 Jul 2005 19:08:22 +0400 (MSD)
Nickolay V. Shmyrev [EMAIL PROTECTED] wrote:

 
 The Leafpad and TEA text editors both exhibit a spurious right-to-left
 text entry problem.
 
 Looks very similar to this bug
 
 http://bugzilla.gnome.org/show_bug.cgi?id=164125
 
Thanks very much for the info -- I'll try the patch.

One point about bug 164125 though, is it states that the bug occurs
if gdk is compiled with --disable-xbd.
However, Puppy linux uses a XVesa Kdrive X server (a very small X
server) without support for X keyboard extension. The apps themselves
are compiled on host systems that do have X keyboard extension,
so they work on the host system, but exhibit the problem on Puppy.
...at least get that behaviour comparing Vector with Puppy.
...so GDK lib in Puppy taken straight from Vector, but with Xvesa
   Kdrive, produces this bug.

I get this bug also on Mandrake because I did compile GDK with
--disable-xkb.

Would you mind letting me know one thing -- the patch for this
bug was posted on 2005-02-04, so when does that show up in an
official release? It's not in GTK 2.6.1.

Regards,
Barry Kauler
___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list


Re: Recent Files Status

2005-07-02 Thread Emmanuele Bassi
Hi,

On 7/2/05, Christian Neumair [EMAIL PROTECTED] wrote:
 Am Samstag, den 02.07.2005, 12:22 +0200 schrieb Emmanuele Bassi:
  The CVS got back working, so I've committed the patches...
 
  The question stays, though: if we are going to replace the recent-files
  stuff, I'll have to drop the current code as soon as I put the new
  RecentManager code in.
 
 [1] sounds very promising, so I'd copy libegg/recent-files to
 libegg/recent-files-old [2] and replace the old model stuff with your
 shiny RecentManager.

Sounds like a plan. :-)

 Maybe you could also add exclusive filtering to
 RecentManager, as proposed for EggRecentModel under [3]? It would really
 be cool to have a global Recent Folders menu, but it is only possible
 in a sane way with exclusive filtering, because at some point we always
 need a list of all recent items minus those which are folders.

Yep, filtering is customisable (like sorting) by supplying a filter
function; but I've already planned to add some commodity filtering
functions, like uri/name/mime/application.

Regards,
  Emmanuele.

-- 
Blog: http://log.emmanuelebassi.net
___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list


Drawing text using Pango on bitmap without gtk

2005-07-02 Thread Himanshu Garg
Hello,
 
  I am trying to draw Telugu text on a bitmap using Pango in
Windows. However I couldn't find any function in the library that does
just that.

  Searches in the mailing list suggest the pangoft2 example which
I have seen. However I am not using the freetype library and the
example doesn't seem to be of much help.

Thank You,
Himanshu
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Drawing text using Pango on bitmap without gtk

2005-07-02 Thread John Cupitt
On 7/2/05, Himanshu Garg [EMAIL PROTECTED] wrote:
   I am trying to draw Telugu text on a bitmap using Pango in
 Windows. However I couldn't find any function in the library that does
 just that.
 
   Searches in the mailing list suggest the pangoft2 example which
 I have seen. However I am not using the freetype library and the
 example doesn't seem to be of much help.

My understanding is that pango doesn't do any pixel rendering, it
relies on back ends like ft2 for that.

I use pangoft2 on windows and it works well. I used the code in
pango-xx/examples/pangoft2topgm.c as a start point.

John
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: GTK installation

2005-07-02 Thread Antonio Gomes
just once again (sorry Yeti, but let's make easier his life :))

You must install all GTK dependences in the right place (using the
--prefix configure options and/or setting up your PGK_CONFIG_PATH with
the .pc files created) before try to build GTK.

take a look at these sites. Some questions are answered there ;)

dependencies:
ftp://ftp.gtk.org/pub/gtk/v2.6/dependencies/
building howto:
http://developer.gnome.org/doc/API/2.4/gtk/gtk-building.html
faq:
http://www.gtk.org/faq/

regards

On 7/1/05, David Necas (Yeti) [EMAIL PROTECTED] wrote:
 On Fri, Jul 01, 2005 at 10:39:37AM +0530, Ninad Pachpute wrote:
 
  configure: error: Library requirements (glib-2.0 = 2.6.0atk =
  1.0.1pango = 1.7.0) not met; consider adjusting the
  PKG_CONFIG_PATH environment variable if your libraries are in a
  nonstandard prefix so pkg-config can find them.
 
  PLEASE EXPLAIN..
 
 Please don't shout. Please search the archives first (this
 is asked every week at least once) and/or do what it tells
 you: set PKG_CONFIG_PATH to point to lib/pkgconfig dir
 correspondig to your Gtk+ installation.
 
 Yeti

-- 
Antonio Gomes
E-mail: [EMAIL PROTECTED]
Embedded Linux Lab - 10LE
INdT - Instituto Nokia de Tecnologia (Manaus/Br)
NOKIA's Technology Institute
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: GTK installation

2005-07-02 Thread David Necas (Yeti)
On Sat, Jul 02, 2005 at 11:12:32AM -0400, Antonio Gomes wrote:
 just once again (sorry Yeti, but let's make easier his life :))
 
 You must install all GTK dependences in the right place (using the
 --prefix configure options and/or setting up your PGK_CONFIG_PATH with
 the .pc files created) before try to build GTK.

I wonder what can help more people to set PKG_CONFIG_PATH
than a message they should set PKG_CONFIG_PATH.  Maybe it's
too late and instead something like

if echo :$PKG_CONFIG_PATH: | grep -v :$(pkgconfigdir): /dev/null; then
echo Your PKG_CONFIG_PATH does not contain $(pkgconfigdir).
echo Please remember to add it to allow other programs to find $(PACKAGE).
echo
echo And don't even try to ask \`I ignored two messages I have to
echo set PKG_CONFIG_PATH and now it doesn't compile. What should I do?\'
echo in gtk-list you bastard.
fi

should be done install-local of GLib and others?

Yeti


--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: [Dev-C++] Getting the wrong output

2005-07-02 Thread Per Westermark
What namespaces are you using.

You have declared the friend operator as:
  std::ostream operator(...)
and implemented it as:
  std::ostream jme::operator(...)

Without a maching output operator, the compiler will emit the pointer to
the object instead.

/Per W

On Thu, 30 Jun 2005 [EMAIL PROTECTED] wrote:

 In my class, when I use the getter to display the value I get the right
 output, but when I try using the overloaded extractor operator () I get
 some hex value displayed. Here is some of the code:
 --- snip
 Main.cpp
 int main() {
Money money(12.21);

std::cout  Value is:   money.getAmount()  std::endl; // 12.21
std::cout  Value is:   money  std::endl; // hex value
return 0;
 }



 The class goes like this:
 ---snip
 Money.hpp
 class Money {
  protected:
float amount;//! This variable holds the numerical value
  public:
//! Constor
Money(const std::string);

//!Copy constructor
Money( const Money );

//!Destructor
~Money() { std::cout  amount  std::endl;} //=== 12.21

// Setters
...
// Getters
const float getAmount() const;

// Overloaded operators
.
friend std::ostream operator( std::ostream, const jme::Money );
friend std::istream operator( std::istream, jme::Money );

 } ; //Money



 and the code looks like this
 --- snip
 jme::Money::Money( const std::string x){
 this-setAmount(x); // this metho converts the std::string to a float
 }
 const float jme::Money::getAmount() const {
 return this-amount;
 }
 std::ostream
 jme::operator( std::ostream os, const jme::Money obj ) {
 os  obj.getAmount(); // 0x4b1120
 return os;
 }
 - end of snip
 As you can see when using the member method getAmount() the value
 displayed is in the right format, however the extractor operator is not
 doing

___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: [Dev-C++] Getting the wrong output

2005-07-02 Thread Per Westermark
std::xx is for symbols declared inside of the std namespace. Your own
operator is definitely not defined in the std namespace - and you should
never try to define anyting in that namespace. It is only used for
standardized variables, types, methods etc.

You only add the xx:: prefix to a symbol when referencing symbols outside
of the current namespace or any namespace you have specifically said you
are using.

If you don't use any namespaces yourself, just write:

friend std::ostream operator(std::ostream,const jme::Money);
std::ostream operator(std::ostream os,const jme::Money obj) {
...
}

If the operator was defined within the jme namespace, then you have to
also do the friend declaration specifying:
friend std::ostream jme::operator(std::ostream,const jme::Money);

and somewhere else specify the implementation within the jme namespace:
:
namespace jme {
std::ostream operator(std::ostream os,const Money) {
...
}
}

/Per W

On Thu, 30 Jun 2005 [EMAIL PROTECTED] wrote:

 Yes, I just notice that, so this are the changes I have made:

 --- Money.hpp
 friend std::ostream std::operator( std::ostream, const jme::Money );
 friend std::istream std::operator( std::istream, jme::Money );


 --- Money.cpp
 std::operator( std::ostream os, const jme::Money obj ) {
 os  obj.getAmount();
 return os;
 }
 std::istream
 std::operator( std::istream is, jme::Money obj ) {
 is  obj.amount;
 return is;
 }
 --
 But this is giving me linker errors sayng:


 =  ERROR ===
 In file included from money.cpp:2:
 money.hpp:67: error: `std::ostream std::operator(std::ostream, const
 jme::Money)' should have been declared inside `std'
 money.hpp:68: error: `std::istream std::operator(std::istream,
 jme::Money)' should have been declared inside `std'


 What am I doing wrong!!?

 Again thanks for you help.




  What namespaces are you using.
 
  You have declared the friend operator as:
std::ostream operator(...)
  and implemented it as:
std::ostream jme::operator(...)
 
  Without a maching output operator, the compiler will emit the pointer to
  the object instead.
 
  /Per W
 
  On Thu, 30 Jun 2005 [EMAIL PROTECTED] wrote:
 
  In my class, when I use the getter to display the value I get the
  right
  output, but when I try using the overloaded extractor operator () I
  get
  some hex value displayed. Here is some of the code:
  --- snip
  Main.cpp
  int main() {
 Money money(12.21);
 
 std::cout  Value is:   money.getAmount()  std::endl; // 12.21
 std::cout  Value is:   money  std::endl; // hex value
 return 0;
  }
 
 
 
  The class goes like this:
  ---snip
  Money.hpp
  class Money {
   protected:
 float amount;//! This variable holds the numerical value
   public:
 //! Constor
 Money(const std::string);
 
 //!Copy constructor
 Money( const Money );
 
 //!Destructor
 ~Money() { std::cout  amount  std::endl;} //=== 12.21
 
 // Setters
 ...
 // Getters
 const float getAmount() const;
 
 // Overloaded operators
 .
 friend std::ostream operator( std::ostream, const jme::Money );
 friend std::istream operator( std::istream, jme::Money );
 
  } ; //Money
 
 
 
  and the code looks like this
  --- snip
  jme::Money::Money( const std::string x){
  this-setAmount(x); // this metho converts the std::string to a
  float
  }
  const float jme::Money::getAmount() const {
  return this-amount;
  }
  std::ostream
  jme::operator( std::ostream os, const jme::Money obj ) {
  os  obj.getAmount(); // 0x4b1120
  return os;
  }
  - end of snip
  As you can see when using the member method getAmount() the value
  displayed is in the right format, however the extractor operator is not
  doing

___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: [Dev-C++] (no subject)

2005-07-02 Thread Robert Alatalo
Hello,

  I will hazzard a guess that you are getting the address of the
function rather than the value, but I did notice two things that you
may want to review.  The first is that you don't beed the friend
declarations since you are using a public method.  If you want to
grant special permission to the function then you can access the
'protected' amount directly but if you don't need special permission
(which you don't when you use the getter function) you can drop the
friend.

The big question is that is 'jme' in jme::Money  are you working
inside a separate class or namespace?  The Money class in main doesn't
seem to be referenced as such so it's not clear why it's there.  It's
possible that if you have been making many changes and that's a hold
over than you are really referencing a different item?

Hope this helps,
Robert



On 6/30/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 In my class, when I use the getter to display the value I get the right
 output, but when I try using the overloaded extractor operator () I get
 some hex value displayed. Here is some of the code:
 --- snip
 Main.cpp
 int main() {
Money money(12.21);
 
std::cout  Value is:   money.getAmount()  std::endl; // 12.21
std::cout  Value is:   money  std::endl; // hex value
return 0;
 }
 
 
 
 The class goes like this:
 ---snip
 Money.hpp
 class Money {
  protected:
float amount;//! This variable holds the numerical value
  public:
//! Constor
Money(const std::string);
 
//!Copy constructor
Money( const Money );
 
//!Destructor
~Money() { std::cout  amount  std::endl;} //=== 12.21
 
// Setters
...
// Getters
const float getAmount() const;
 
// Overloaded operators
.
friend std::ostream operator( std::ostream, const jme::Money );
friend std::istream operator( std::istream, jme::Money );

 } ; //Money
 
 
 
 and the code looks like this
 --- snip
 jme::Money::Money( const std::string x){
 this-setAmount(x); // this metho converts the std::string to a float
 }
 const float jme::Money::getAmount() const {
 return this-amount;
 }
 std::ostream
 jme::operator( std::ostream os, const jme::Money obj ) {
 os  obj.getAmount(); // 0x4b1120
 return os;
 }
 - end of snip
 As you can see when using the member method getAmount() the value
 displayed is in the right format, however the extractor operator is not
 doing the job I thought it would.
 
 Can anybody tell me what I am doing wrong?
 
 TIA
 
 
 ---
 SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
 from IBM. Find simple to follow Roadmaps, straightforward articles,
 informative Webcasts and more! Get everything you need to get up to
 speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492opclick
 ___
 Dev-cpp-users mailing list
 [EMAIL PROTECTED]
 TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
 https://lists.sourceforge.net/lists/listinfo/dev-cpp-users

___
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list


Re: Mixed pixbuf and text

2005-07-02 Thread Dan

Jan Hudec wrote:


When you issue a query to a database server, it doesn't return the
results in bits and pieces; it completes the query, and then gives you
everything at once.
   



This is, fortunately, false about many database servers. When you
execute a query, it gives you cursor. You ask the cursor for lines by
one. It depends on the nature of that query, how much work has to be
done before the first result depends on the nature of the query.

Well, if your database actually sends you the first results reasonably
fast, you can feed say 10 of them to the tree-view, thaw it (you foze
it, right) and let the mainloop run so it can process the events.
 


Are you sure on this?
My understanding was that the DB server executed the query completely, 
and *then* gave you a cursor. At least that's how MySQL appears to do 
things. If I have a query that takes a while to execute, I get 
absolutely nothing for seconds, and then get all the results at once. 
For example if I set up a 'pass-through' query in MS Access ( a 
pass-through query is where Access doesn't process the SQL at all - it 
just hands it to the DB server and waits for the results ), the results 
always come back all at once.

Of course I've been wrong before, and will possibly even be wrong again :)

Dan

-- 
BEGIN-ANTISPAM-VOTING-LINKS
--If you are not the CanIt 
administrator and you think this
message is spam, please give the id 576 and magic value
3af566e289e3 to [EMAIL PROTECTED] to be marked as spam.

NOTE: This message was trained as non-spam.  If this is wrong,
please correct the training as soon as possible.

Teach CanIt if this mail (ID 576) is spam:
Spam:http://entropy.homelinux.org/canit/b.php?c=si=576m=3af566e289e3
Not spam:http://entropy.homelinux.org/canit/b.php?c=ni=576m=3af566e289e3
Forget vote: http://entropy.homelinux.org/canit/b.php?c=fi=576m=3af566e289e3
--
END-ANTISPAM-VOTING-LINKS
___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list


Re: embedded perl/Gtk dialog

2005-07-02 Thread muppet


On Jul 1, 2005, at 9:43 PM, Carl Nygard wrote:


Reading the file myself and using GladeXML::new_from_buffer() doesn't
cache the widget per-se, I can see changes to the xml file when I  
re-run

the script.  But it still pops up under the main app, and
$window-present() does nothing to help.

Any clues?


At this point, i think you need to post code, because the  
descriptions don't match up with what should be happening, and the  
possibilities of what you might be doing differently than expected  
are too numerous.





--
Without treatment, a common cold will last about seven days.
With treatment, it will last about a week.
  -- conventional wisdom

___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list


Re: embedded perl/Gtk dialog

2005-07-02 Thread Carl Nygard
On Sat, 2005-07-02 at 10:00 -0400, muppet wrote:
 On Jul 1, 2005, at 9:43 PM, Carl Nygard wrote:
 
  Reading the file myself and using GladeXML::new_from_buffer() doesn't
  cache the widget per-se, I can see changes to the xml file when I  
  re-run
  the script.  But it still pops up under the main app, and
  $window-present() does nothing to help.
 
  Any clues?
 
 At this point, i think you need to post code, because the  
 descriptions don't match up with what should be happening, and the  
 possibilities of what you might be doing differently than expected  
 are too numerous.

Unfortunately, it's not really possible/practical to post code, since
the main app is a C++/Zaf/OpenMotif/Gdk::Pixbuf happy bastardization of
an app that's running an embedded perl interpreter to provide script
facilities.

What I do know is that it has nothing to do with GladeXML, since I
rewrote the Dialog wrapper to generate the Gtk::Dialog on the fly from
scratch, and it exhibits the same problem.  And I know the dialog is
getting destroy'd after every embedded script run...

My current guess revolves around the possibility that Gtk::Dialog-new()
does something special to finagle a parent widget, and that parent
widget doesn't have anything to do with the app parent widget (which
would be Xlib/Motif window).  So the window manager gets confused about
what constitutes front.  Although I have to wonder, if the window
manager thinks its in front after the $window-present() function call,
why does it blink the panel-icon-button-thingy to show that the window
is hidden?

Whatever, I still have some ideas for experiments, so I'll pursue those
in the absence of any other smart ideas from y'all.

Regards,
Carl

___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list