Re: A few quick questions about gtkprint

2009-04-15 Thread Chris Vine
On Wed, 15 Apr 2009 07:02:07 +0530 Vamsi Krishna Davuluri vamsi.davul...@gmail.com wrote: hello, I am a gsoc applicant for sugar, and doing a project which adds print support to our applications. The idea is to convert our mime types to a more printable format and print them. So, now

Re: A few quick questions about gtkprint

2009-04-15 Thread Vamsi Krishna Davuluri
Thanks for your effort and time Chris! That pretty much answers all of my questions, one question though, will poppler and such libs really be necessary when the file can already be viewed by an application? As I think if a page can be viewed, without doubt it can be rendered to cairo objects. I

Re: A few quick questions about gtkprint

2009-04-15 Thread Chris Vine
On Wed, 15 Apr 2009 15:33:03 +0530 Vamsi Krishna Davuluri vamsi.davul...@gmail.com wrote: Thanks for your effort and time Chris! That pretty much answers all of my questions, one question though, will poppler and such libs really be necessary when the file can already be viewed by an

Re: A few quick questions about gtkprint

2009-04-15 Thread Chris Vine
On Wed, 15 Apr 2009 10:24:13 +0100 Chris Vine ch...@cvine.freeserve.co.uk wrote: At the library user level, gtk-print doesn't convert to ps or pdf in order to print. It uses cairo/pango-cairo to write each page to a cairo context. It becomes clearer if you look at the documentation for

Re: Porting UIs to GtkBuilder

2009-04-15 Thread Ardhan Madras
I ever have this situation (in glade 3.4.5), my solution is: by copying it's parent window into a new window, let say you copy main_window into a new window named main_window1... delete the old one (main_window), rename main_window1 to main_window. save and try to convert it again... working

A few Qs on GTKPrint

2009-04-15 Thread Vamsi Krishna Davuluri
hello, I am a gsoc applicant for sugar, and doing a project which adds print support to our applications. The idea is to convert our mime types to a more printable format and print them. So, now the question is how to convert to ps/pdf without additional filters for each mime type. I would like

Re: A few quick questions about gtkprint

2009-04-15 Thread Chris Vine
On Wed, 15 Apr 2009 17:48:18 +0530 Vamsi Krishna Davuluri vamsi.davul...@gmail.com wrote: Thank you again! Here is the code I was talking about; my code pretty much does the job of printing .txt files and related mime types, http://pastebin.be/17838 But I would love to see your code as well.

Re: A few quick questions about gtkprint

2009-04-15 Thread Vamsi Krishna Davuluri
Oh, the thing is sugar has bindings for the evince classes, which we use as import modules. And I will look into it for modules on printing. Thanks for your time. If you are on the #gtk+, can you tell me your nick, so I can ping you live when I am in a glitch :p On Wed, Apr 15, 2009 at 6:32 PM,

Re: Porting UIs to GtkBuilder

2009-04-15 Thread Zeeshan Ali (Khattak)
Hi, On Wed, Apr 15, 2009 at 1:35 AM, Tristan Van Berkom t...@gnome.org wrote: On Tue, Apr 14, 2009 at 4:50 PM, Zeeshan Ali (Khattak) zee...@gmail.com wrote: Hi,   Reading through planet gnome and related mailing-lists recently, I got the impression that this would be a good time to port my

Re: A few quick questions about gtkprint

2009-04-15 Thread Chris Vine
On Wed, 15 Apr 2009 19:03:17 +0530 Vamsi Krishna Davuluri vamsi.davul...@gmail.com wrote: Oh, the thing is sugar has bindings for the evince classes, which we use as import modules. And I will look into it for modules on printing. Thanks for your time. If you are on the #gtk+, can you tell me

Root password

2009-04-15 Thread Paolo
Do you know the dialog/widget where to insert the root password? I think it's gksu, right? How can I call that program o its libraries? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: Root password

2009-04-15 Thread Vlad Volodin
try to look at gufw sources. They just use a simple call gksu (or gksudo) with their binary file in .desktop file. 2009/4/15 Paolo pra...@gmail.com: Do you know the dialog/widget where to insert the root password? I think it's gksu, right? How can I call that program o its libraries?

Re: Porting UIs to GtkBuilder

2009-04-15 Thread Tristan Van Berkom
On Wed, Apr 15, 2009 at 9:59 AM, Zeeshan Ali (Khattak) zee...@gmail.com wrote: Hi, [...] Errr, try converting with Glade 3.6 instead of the conversion script ?   I just tried glade3 from trunk[1]. One of the three UIs just work fine now but two others don't. One of them hits a fatal on

Re: How to send user_data into callback function by glade only?

2009-04-15 Thread Tristan Van Berkom
On Tue, Apr 14, 2009 at 10:46 AM, donglongchao donglongc...@163.com wrote: [...] And I want to show the value of myspinbutton by pass its point to callback function.But every time I click the button there is no response.Just left (gtk_toggle_button_get_active): assertion `GTK_IS_TOGGLE_BUTTON

Re: Porting UIs to GtkBuilder

2009-04-15 Thread Zeeshan Ali (Khattak)
Hi Tristan, On Wed, Apr 15, 2009 at 7:43 PM, Tristan Van Berkom t...@gnome.org wrote: It looks like either  a.) You did not convert the old Glade file using Glade and or Somehow that was the case. Don't ask me how but now that i rebooted the machine, the glade3 inside my jhbuild does the

How to adjust the spacing around an icon in a button?

2009-04-15 Thread Till Harbaum / Lists
Hi, i have buttons with icons inside. For some reason the button is slightly bigger than it needs to be. Where do i adjust the border that's drawn around an icon in a button? Also this only affects the height. Is there some kind of preferred vertical size of a button? Regards, Till

Re: How to send user_data into callback function by glade only?

2009-04-15 Thread donglongchao
2009-04-16,Tristan Van Berkom t...@gnome.org : On Tue, Apr 14, 2009 at 10:46 AM, donglongchao donglongc...@163.com wrote: [...] And I want to show the value of myspinbutton by pass its point to callback function.But every time I click the button there is no response.Just left