Dear friend,
I want to know if its possible to find Signal Name, in
callback handler.
Im writing language bindings and I need to evaluate
some designs on routing callbacks; with a fair
amount of searching on archives of this ML,
I dont find this question answered well, enough.
Q: void handler(GO
Hello!
You can use this code to show a image, in a persistent
way.
-
#! /usr/bin/octave -q
% (C) July 2005, Muthiah Annamalai
%
% Ensure:
%
%matrix you pass to gtk_imshow_set() has only
% elements with normalized to value [0,1].
%
%size of window
Hello everyone! &
Dear Mr Martinez,
I dont know if what youre looking for is, Octave-GTK+,
but have a look at this site:
http://octave-gtk.sf.net/ and our project. I hope my
project is useful for you.
For an idea see
http://octave-gtk.sourceforge.net/screenshot.html
Octave-GTK+ is a set of GTK+
> >
> >the dialog stays open until my_subroutine returns
> and as the sub is a
> >very long time-demanding sub, it is annoying to see
> the dialog stuck
> >opened..
> >
Probably you must use, gtk_widget_hide() on the
dialog,
before you enter your subroutine?
Cheers
Muthu.
___
> In my application I am using a widget, say vbox.
> When that widget is destroyed, I want to delete all
> the associated objects that I allocated. So, I
> attached a delete_event and destroy_event callback.
> But this callback is not called, when I destroy the
> container of the vbox.
Im able to
--- [EMAIL PROTECTED] Josh!
From: "Joshua A. Andler" <[EMAIL PROTECTED]>
> Basically I'd want a combo box with some preset
values, > but spinbuttons on it to tweak from there.
Is this
> doable with GTK?
I guess anything is doable with a 2D drawing kit
is doable in GTK+. Ask GIMP, Inkscape, GNOME
Hi!
Ive a small program for exploring GObject types,
http://octave-gtk.sourceforge.net/Texplore/
May be useful for GTK+ programmers in general.
Cheers
Muthu.
Yahoo! Sports
Rekindle the Rivalries. Sign up for Fantasy Football
Hello!
> hi!!! I got ur mail id from gtk-app-devel-list gnome
> org.
Please keep future posts on the Gtk-App-Devel lists.
It will benefit more people, and keep my answers
correct and under scrutiny from others. I appreciate
your mails on gtk-app-devel-list. Respect this.
> I have a doubt in GTK,
Hello!
--- Arx Henrique <[EMAIL PROTECTED]> wrote:
> i'm newbie in gtk, and i'm making a simple program
Welcome to GTK!
Explore documents at
1. Www.gtk.org/ | tutorials | articles | code
2. $ gtk-demo & | A simple & powerful demo of GTK+
3. http://developer.gnome.org | GTK+ & GNOME
programming
Hello Giant{colossus}!
--- Colossus <[EMAIL PROTECTED]> wrote:
> I use gtk_text_buffer_delete this way:
>
> if (textbuf != NULL)
> {
> gtk_text_buffer_get_start_iter (textbuf,&start);
> gtk_text_buffer_get_end_iter (textbuf,&end);
> gtk_text_buffer_delete (textbuf,&start,&end);
Hello!
--- Eduardo M KALINOWSKI <[EMAIL PROTECTED]> wrote:
> Well, besides determining the width of the
> GtkTextView in
> characters, I also need to determine its height in
> lines, or the number
> of visible lines. I've tried a solution with font
> metrics, but the value
Please see GtkSour
Hi,
--- Mateusz Misiorny <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> Is there any way to restrict the TextView to only
> allow, say 5 lines of text?
BTW TextView doesnt create scrollbars, if you
set a callback to the "set_scroll_adjustments" signal
of the textview, and set these values to null.
I thi
Hello Alem!
--- Alem Dain <[EMAIL PROTECTED]> wrote:
> Hi all. It would seem that the little toggle button
> in my GtkTreeView
> doesn't respond to being clicked on, as in, it
> doesn't change state,
> and no callback is called... back.
Because you didnot set any!
> I do
> gtk_tree_view_i
g the
thread.
P.P.s: this post was also missent.
--- Muthiah Annamalai <[EMAIL PROTECTED]> wrote:
>
> --- Guenther Sohler <[EMAIL PROTECTED]>
> wrote:
> [snip]
> > I did not yet find a good strategy to delete all
> > widgets/childs from within a
> > vbox.
&g
Hello there!
--- Robert Ramiega <[EMAIL PROTECTED]> wrote:
[snip]
> User is supposed to pick either existing file (that
> will be either
> overwriten or appended to) or enter name of file to
I think you better use GtkFileChooser dialog,
from gtkfilechooser.h & gtkfilechooserdialog.h.
File sele
Hello!
> Dnia 09-06-2005, czw o godzinie 16:03 +0100, y g
> napisa³:
> > I am trying to convert an application code which
> was produced with
[snip]
> > glade_xml_get_widget seemed to be the one but it
> does not work in any
> > of my callbacks,
You got to load the full widget hierarchy using
Gl
Hi!
look at gtkhtml in cvs.gnome.org.
AFAIK no GTK-only widget exists.
Cheers
Muthu/
--- Mohit Gogia <[EMAIL PROTECTED]> wrote:
> hi all,
>
> i am new to gtk programming and i am starting off
> with a simple
> applet.what i want to ask if there is any way that i
> can be able to
> display html t
Hello folks!
I mean GTK Is OO.
Widgets encapsulate other widgets.
There is a type system,GObjects and signals floating
all over the place. Please try to understand this
GTK architecture.
[see developer.gnome.org and GObject
tutorials,GTK+ tutorials,before asking questions.
You can even try to se
Hi!
I think Ive a solution to what youre asking me.
--- Guenther Sohler <[EMAIL PROTECTED]>
wrote:
[snip]
> I did not yet find a good strategy to delete all
> widgets/childs from within a
> vbox.
>
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
>
GtkBox [base of VBox & HBox], has a G
Hello Everyone!
G'day all.
I would support the inclusion of Code generation
in GLADE UI Editor. It is a welcome feature, for those
who would like it. If its not to be in the main tree
atleast put the code into a plugin thats enabled
at default, and users can turn it off, if they prefer.
I request
Hi Michal,
This might be the solution, if I understand you right.
General information.
If you write C code, and want to access lots of
variables from a Callback, then there are a few simple
ways.
1: Make all the variables global, so you can access
them anywhere[function] in C.
2: Make a single g
I think youre talking about a modal dialog
box. You must set the GTK_DIALOG_MODAL
flag on. Thats it, while creating a dialog box,
with the dialog_new_with_buttons() pass this flag
also.
Must work.
#include
void my_exit_cb(GtkWidget *w)
{
GtkWidget *m;
gtk_window_set_title(GTK_WINDOW(
Hi!
It seems to work for me...
I just forgot to mention, just create & connect a
button to its configure_event.
>
>
> #include
> #include
> #include
>
>
> gboolean configure_event(GtkWidget *w,gpointer
> data)
> {
> //make a shaped mask
> GdkPixmap *pix;
> GdkBitmap *bit;
> GdkCo
Hi
File selection code must be written like this:
filew = gtk_file_selection_new ("Folder Selection");
gtk_file_selection_set_filename (GTK_FILE_SELECTION
(filew), "*.png");
gtk_widget_show(filew);
switch(gtk_dialog_run(filew))
{
case GTK_RESPONSE_OK:
gtk_file_selection_get_filename
Hi!
Im sending you code from the project gtk-book,
http://gtkbook.sourceforge.net/
The function make_shapedwidget() should help.
To choose the shape of the widget change the
mask in the file "circle.xpm".
#include
#include
#include
gboolean configure_event(GtkWidget *w,gpointer data)
{
Hi!
Ill try to answer some of your questions... that seem
quite simple..
> 2.I still cann't make the g_thread work. I think I
> need tips to find which kind of code may made the
> thread init fail.
After you call gtk_init() call g_thread_init().
That works for me!
> 3.Now I set a global variab
Hi !
You can see this for each widget in its GTK+ source.
eg: GtkButton() supports signals like clicked etc,
which can be found by looking in its header files,
gtkbutton.h
or in the source gtkbutton.c.
/* GtkButton.h */
struct _GtkButtonClass
{
GtkBinClassparent_class;
void (* pres
Hi!
There are two ways.
Using GLADE
1: Edit the .glade file! or use Glade to edit the UI
interface.
Programming Wise.
2: Button widget has a child which holds the Label
widget.
Now you have to create a image, and like a
container you add it
into the button, like this.
This code does your j
Hi,
To Check the entry widget for some text you can use
this.
const char *ptr= gtk_entry_get_text(text_widget);
if (!strlen(ptr)) throw_error_popup();
-Muthu
--- srinivas <[EMAIL PROTECTED]> wrote:
> hi all;
>
>i am developing gui with glade and c. now i have
> a "text entry" and
> "next bu
Hi
You can use g_object_unref(), to destroy this widget,
so that the window refreshes itself, or paint the
pixmap with one of the gdk_drawable_* API to fill the
pixmap with some color, you call as refreshing.
-Muthu
--- harshavardhanreddy mandeepala
<[EMAIL PROTECTED]> wrote:
> hi
> i have create
Like Ive been always yapping around my tutorial,
see this http://cybernetics.freewebspace.com/gtk/
for some tip on GdkPixbuf.
Your problem might be to change this line
> gtk_init (&argc, &argv);
as
> gtk_init (NULL,NULL);
Cheers
Muthu.
--- Raghavendra <[EMAIL PROTECTED]> wrote:
> simple ex
Hello!
You could have well done some kind of search on this
list before. But Ill suggest something else,
read the rest of this mail, it may solve your probs,
and
donot use GTK+1.2 shift to GTK+2.0 API.
1] System date can be got from calls like
asctime(), see man asctime
2] TO get current foc
Hi Vallish!
try doing this.
$aclocal
$autoconf
$automake
and run
$./configure
$make && make install
instead of the ./autogen.sh
Also post the 'errors' youve got on the list
[Glade-list] rather.
then resume the build process.
--- vallish sharma <[EMAIL PROTECTED]> wrote:
> I get errors whil
33 matches
Mail list logo