Peter Robinson ha scritto:
For the connection I am currently using g_source_add_poll using the
socket FD as returned by socket(AF_INET, SOCK_STREAM, 0).
Under Windows polling does not seem to be working. If I change to using
g_io_channel_win32_new_socket and g_io_add_watch then I can connect
Nik Bhattacharya ha scritto:
If you have the images already in a directory under your gtk2.0
directory, try the following code (using the pixmap engine). See border
explanation below.
Uhm... Interesting. But is there a way to change the highlight of the
currently selected widget? So that,
Piotr Pokora ha scritto:
Arg! I totally mixed rows and columns. Indeed.
Happens :-)
I aussume, that checking rows 0 is the only correct way to check if
query returned some data without an error. Right?
Well, errors must be checked anyway.
Maybe, returning 0 rows is a soft error (an error for
Andres Gonzalez ha scritto:
Also, I would want to configure gnome to wake up or initialize in that
mode. How would I do that?
Why do you care about Gnome at all? :-)
Just use xinit yourprogram.
man xinit is your friend.
yourprogram runs w/o a window manager/desktop/... (unless you add it
to
William D. Tallman ha scritto:
I launch an application I'm building with 'apptest ', and get the following:
[7] 4560
Do you really know what you are doing? :-)
It's basic Unix knowledge... Nothing to do with Gtk (except that doing
it this way can block your program).
and then following prompt
Matthias Clasen ha scritto:
Interface builder support
GtkBuilder can generate user interfaces from XML descriptions
which are very similar to glade files. Going beyond the
capabilities of glade, GtkBuilder can also construct objects
which are not widgets, such as tree models. To ease
Cliff Brake ha scritto:
What is the best way to do multiple screens on a slow device so that
they change fairly quickly? One thought is to have one window and
hide/show widgets, but that more difficult to manage, and makes using
glade more difficult.
Have you tried using a GtkNotebook w/
Saba Khan ha scritto:
HI,
Thank you for prompt reply. I am using this code so please check it out.
But when it reach to the method gtk_tree_model_iter_parent(), it shows
warning which is listed below.
if (gtk_tree_model_iter_parent(GTK_TREE_MODEL (TreeModel), iter,
cSessionIter))
As Yeti
Saba Khan ha scritto:
Hi,
I want to become parent child behaviour in tree view. When i select the
child toggle button , parent is selected by default itself if it does not
selected already. But when i use to select parent toggle button only parent
should be selected in that way not rest of
DC A wrote:
What could be the reason for using gtk_events_pending() and
gtk_main_iteration() in the following code snippet:
for( gflt=0; gflt=1; ){
gtk_progress_bar_update( (GtkProgressBar*)pbar, gflt );
//update
while (gtk_events_pending ())
Lloyd wrote:
I am in need of a control (Widget) which will be able to display all
the Web browser displayable files (HTML,GIF...) and also which is able
to understand the MIME headers as well (To understand the emails as
well). If it can understand the HTTP headers also it is the exact
richard boaz wrote:
This message is an error message directly from X11.
search for the following on google:
X11 BadMatch Error error_code 8 request_code 147
will return interesting information, one being:
http://forums.gentoo.org/viewtopic.php?t=220778highlight=flash
The real issue was that
Hello all.
Could some1 please help me finding where the following error comes from?
Gdk-ERROR **: BadMatch (invalid parameter attributes)
serial 1771 error_code 8 request_code 147 minor_code 3
It's printed twice by a program I wrote some years ago (w/ Gtk+1.2.10,
that's the same on both
Christ, Bryan wrote:
I really hate to re-invent the wheel if someone has already done this.
The idea here is that I can store a value in one function and recall it
later from somewhere else just by a string reference.
That's what hash tables are for... Look for g_hash_* .
There should be
Tor Lillqvist wrote:
It's g_io_channel_win32_get_fd(). Despite its name, it returns the
SOCKET for GIOChannels that have been created for SOCKETs. (And for
GIOChannels for file descriptors, it returns the file descriptor.)
Is there a reason that makes useful to have two distinct calls for
Hello all.
Is $SUBJ possible [maybe in Gtk3]?
It could be really useful to not depend on whole gtk. After all, a
Gtk[Tree|List]Store is a data type like a GList...
At least if it was in glib it could be used in libgda, w/o having to
reinvent the wheel. Then some gnome-db widgets could become
Martyn Russell wrote:
What I did is (since gtk_signal_connect is deprecated):
g_signal_connect(G_OBJECT(combo), key_press_event,
G_CALLBACK(reset_combo), GINT_TO_POINTER(presel));
But reset_combo NEVER gets called :(
Any hint?
Did you attach the key-press-event signal to the GtkComboBox? and did
Martyn Russell wrote:
What key press?
You want to use the GtkWidget signal key-press-event and look at the
GdkEventKey that comes back with that. The keyval should be one of the
values in gtk/gdk/gdkkeysyms.h (for example GDK_Escape).
Exactly ESC.
What I did is (since gtk_signal_connect is
Ben Johnson wrote:
keep in mind that there is no guarantee that that the timer will fire
on time. it will fire as soon as possible, and only during main loop.
So, if one of your functions takes several seconds to complete a task
and doesn't allow gtk events to be processed, your g_timeout
Hello all.
I'm having troubles trying to catch keyboard events from a combobox.
What I'm doing is a simple
g_signal_connect(G_OBJECT(combo), key_press_event,
G_CALLBACK(reset_combo), NULL);
just after setting the model and before selecting (eventually) a default
for that combo.
reset_combo()
Hello.
I Noticed an anti-intuitive thing.
Once I've selected a value in a combo box, I can't reset it (from an
user's POV). Is there a reason not to handle an esc press on it to
call ...set_active(this, -1) ? I know I can do it myself in my programs,
but IMVHO it should be done by the
Benedikt Meurer wrote:
I Noticed an anti-intuitive thing.
Once I've selected a value in a combo box, I can't reset it (from an
user's POV). Is there a reason not to handle an esc press on it to
call ...set_active(this, -1) ? I know I can do it myself in my programs,
but IMVHO it should be done
Archie Maskill ha scritto:
I was hoping if someone could explain why the following is a feature
and not a bug : when the gtk_toggle_button_set_active method is
called, two events are fired - a toggled event and a clicked
event. This doesn't seem to make sense if the Toggle Button isn't
actually
Paul Davis ha scritto:
the old CTree/CList had a nice freeze/thaw API to avoid the widget
recomputing stuff while adding rows. is there something comparable for
TreeView, or does the Right Thing Just Happen ?
It doesn't happen. You have to save the current model, set the
associated model to
Hello.
Just done some testing loading 20030 rows from a DB to treemodels:
* Just reading from DB: 1sec
* Unbound treemodel: 2
* Bound treemodel: 166 (GLIP!)
* Unbound TreeModelSort: 14 (not too bad, could be improved for batch
updates?)
* Bound TreeModelSort: 40' (still running)
What could I
Hello all.
I'm trying to use $SUBJ, but don't know which is the right thing to do
to get the selected filename.
I'm now connecting to the selection_changed signal (from Glade), but
the docs say :
---
Normally you do not need to connect to this signal, as it is easier to
wait for the file
Ben Johnson wrote:
If, for instance, the purpose of a program is to show what bad
interface design is...
ok. But there are workarouds...
or, perhaps, to play a joke on some friends, or,
Uhm... I know better solutions... :-)
to get to the point, to allow a user of the program to de-select a
toggle
Hello all.
I just noticed that set/get active aren't orthogonal: if there's nothing
selected, get_active() returns -1, BUT I cant set_active(-1)... Actually
the only way I could find to delete selection is get_model,
set_model(NULL), set_model(oldmodel)... quite ugly, IMHO.
BTW, a signal that
Hello all.
Surely I'm missing something, but:
GtkWidget *w;
GtkComboBox *cb1;
GtkTreeStore *m;
GtkTreeIter n[6];
GladeXML *xml;
[...]
m=gtk_tree_store_new(3, G_TYPE_INT, G_TYPE_STRING, G_TYPE_STRING);
gtk_tree_store_append(m, n+0, NULL);
gtk_tree_store_append(m, n+1, NULL);
Tim Müller wrote:
GtkCellRendererText *cell;
cell = gtk_cell_renderer_text_new ();
gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (cb1), cell, FALSE);
gtk_cell_layout_add_attribute (GTK_CELL_LAYOUT (cb1), cell, text, 0);
ARGH! I KNEW I was forgetting something! Tks a lot!
For the treeview,
Tim Müller wrote:
GtkCellRendererText *cell;
cell = gtk_cell_renderer_text_new ();
gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (cb1), cell, FALSE);
gtk_cell_layout_add_attribute (GTK_CELL_LAYOUT (cb1), cell, text, 0);
Just another doubt: is there a way to make the cells aligned? Now it
seems
Diego Zuccato wrote:
Just another doubt: is there a way to make the cells aligned? Now it
seems more a vbox containing hboxes than a table...
Experimenting with combobox doubts continue to arise... :-(
*) Is it possible to avoid having the first item of the submenu report
the father item
Sam B wrote:
I would like to make a dynamic menu : I have two radio buttons, and the
windows content is depending on which button is clicked. What is the better
way of doing this ?
IMVVVHO a notebook w/ hidden tabs.
I thought about drawing a box, and when a button is clicked, I destroy every
Piotr Legiecki wrote:
Is there really no such a widget? So how you arrange datas from SQL
database?
Since I didn't like too much gnome-db, I wrote some more-or-less
wrapper functions around PostgreSQL calls. And since I needed it, I
placed a default callback to populate a GtkListStore from a
Murray Cumming wrote:
3. There's no way to have a Combo cell renderer that has multiple columns,
such as the choice and a description of the choice. But I guess this would
require access to the whole GtkComboBox API.
IMVHO GtkComboBox should use the underlying model (list or tree), not
limiting
Igor Gorbounov wrote:
Is there any way to blank all rows in a treeview? Now I scan all cells
and blank their contents sequentially. Hope that exists some better
solution.
To completly empty the view, just replace the model with an empty one.
To empty just some cells (not entire rows) you have
Jean Bréfort wrote:
Is there any way to make a combobox handle a multi-column tree structure
(expand/collapse too, not only selection) ?
The answer is no. See http://bugzilla.gnome.org/show_bug.cgi?id=139582
Is there any reason ? Or only no one bothered to do it yet ? In that
case I could
Hello all.
Is there any way to make a combobox handle a multi-column tree structure
(expand/collapse too, not only selection) ?
Up to now, I couldn't find any way to do it. If I use a collapsed tree,
the popup list isn't correctly mapped to the underlying model. If I use
more than one column, the
Hello all.
I'm trying to use the new combo box w/ models to reduce screen
cluttering while porting an old app that used a plain treeview.
I already connected the model to the combo, but how can I replace:
// cbx is the combo box, zone1 is the model, v is the treeview
Stephane Wirtel wrote:
But, don't use GtkTreeViewColumn, but GtkCellLayout.
Tks. I didn't realize.
But why are you creating a new renderer every time? I'm using a single
renderer and it seems to work well.
Once the renderer is used, should it be freed (unreferenced?) ?
BYtE,
Diego.
Carlo wrote:
I'm using glade to develop with gtk... What are the steps to compile correctly???
Give Anjuta a chance; it's great with Glade-2.
Yep. But it (Glade-2) lacks support for new widgets in Gtk+2.4.x :-(
BTW, I'd suggest using libglade instead of the code generated by glade.
This way
Jose Ricardo Meda Araujo wrote:
I've solved that problem of yours bye using the widget GtkStyle but the
only problem is the if you want to change the background color of
several widgets (buttons, entries, textareas,etc) you will have to do
it one by one, that's why is better to do it using
John Cupitt wrote:
You should be able to change the whole application with just your gtkrc. Try this in
your ~/.gtkrc-2.0 file and (almost) everything should go a very ugly pink:
style pink
{
bg[NORMAL] = { 1.000, 0.80, 0.80 }
fg[NORMAL] = { 1.000, 0.40, 0.60 }
Krzysztof Garus wrote:
Just a quick question: is it possible to use Glade2 when new widgets
(from 2.4) are needed?
BTW, don't you think Glade should support plugins? Then
gtk-gl/gtkext/gtkwhatever - programmers would provide .xml files
describing custom widgets
IIUC that should be in
Hello all.
Just a quick question: is it possible to use Glade2 when new widgets
(from 2.4) are needed?
Tks,
Diego.
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list
íÉÈÁÉÌ é×ÁÎÏ× wrote:
Work area should contain a number of other possibly overlapping
windows (with frame and title). These windows should be modal
(actually they are arranged as stack and only top-level window
can be active). But the buttons from the main
Diego Zuccato wrote:
I think there's something wrong with online docs... At least, in
GtkCombo (documented as GtkComboBox ???), there are some (really useful)
methods like gtk_combo_box_new_with_model() that are not present in
actual library (at least up to 2.3.4).
Sorry. Found it just after
Owen Taylor wrote:
and switch to using libglade instead of generating code with Glade
Just three things I noticed when using (lib)glade2:
1) error displaying notebooks w/ empty pages (only the last tab is
displayed)
2) missing first and last page in GnomeDruid
3) sometimesbutton and user_data
Hello all.
I'm trying to use GdkPixbufLoader to detect some info on tiff files.
What I'm doing is (omitting error checks):
GdkPixbufLoader *pbl=gdk_pixbuf_loader_new();
// tested new_with_type(tiff, NULL) too !
FILE *f=fopen(file, rb);
if(f) {
char buff[512];
gint siz;
do {
Havoc Pennington wrote:
set_row_data just stored a pointer on the row. This is equivalent to
adding a pointer to your model.
Good. Then I'll do it. Tks. I'll add a column for each view that uses
the model and needs extra data.
Now I've only to find out a way to filter out some rows from the
James M. Cape wrote:
GtkTreeView is the Model-View-Controller replacement for GtkCList:
http://developer.gnome.org/doc/API/2.0/gtk/TreeWidgetObjects.html
I still can't see any way to set out-of-model, tree-view-specific row
data (like the old set_row_data, IIRC).
I'm dealing with quite large
Will wrote:
I think the good approach is NOT to try openning all the books but
considering only their title+author for example. You get a fairly small
amount of data. The content of the books is NOT loaded yet.
The problem is: think about HOW MANY titles are around in a small
library... 1
edscott wilson garcia wrote:
I would use g_object_set_data to associate the treemodel pointer with
the treeviewcolumn upon creation of the treeviewcolumn, and then use
g_object_get_data to retrieve the treemodel upon entering
*get_cell_contents(). Although this is based on the least effort
Hello.
I'd need to display some (256x256) JPG files retrieved from a database
(text-encoded).
Encoding to/from text is not the issue. The issue is making gdk-pixbuf
load'em whithout having to write a file. Is it possible?
Tks,
Diego.
___
gtk-list
Matthias Clasen wrote:
Encoding to/from text is not the issue. The issue is making gdk-pixbuf
load'em whithout having to write a file. Is it possible?
Yes. See
http://developer.gnome.org/doc/API/2.0/gdk-pixbuf/GdkPixbufLoader.html
Tks a lot. It seems it's exactly what I was looking for.
Bharat Bhushan wrote:
Hey Diego,
Thanks for the suggestion. it worked to some extent. Now I dont
get any error or warning but my GUI freezes now. I display a message box
in my program and I have put the code for GUI is in a separate thread.
I do something like this in the thread
Alejandro García Rodríguez wrote:
Which container can I use as main window and for each file?
Which are the best ideas for doing this in your opinion?
What you're asking for, IIUC, is MDI. windoze-like approach is a bad
thing from the GUI-design POV. Try using a notebook instead. If a
notebook
Owen Taylor wrote:
(*) You shouldn't be using glade to generate code. Instead, use
it to design your GUI and libglade to load the .glade file.
Why? Doesn't this just introduce another dep ?
BYtE,
Diego.
___
gtk-list mailing list
[EMAIL
Hello all.
It the subj possible ?
Like having a model with, say, a list of objects.
At start all objects are in a view and the other is empty.
When a cell changes, that object is moved to the other view.
An example could be a chooser:
VIEW1 VIEW2
item1
item2 -
item3 -
item4
(model
James Drabb wrote:
I'd need to take control of a RUNNING app from another machine.
For example, when my mother locks my program, I'd like to ssh to
that machine (already possible) and then mirror on my machine what
she sees, so to unlock it in a couple of clicks instead of having to
Victor Mierla wrote:
Sorry can\'t get this working :-(
Where's the error?
Does anybody have a working example for this ,please?
The code I posted is an actual cutpaste. And IS working.
(showing diff pixbufs in a treeview\'s rows??)
Just change foreground to pixbuf and store a pixbuf in the
Hello.
Maybe it's a bit offtopic, but I'm interested just in the Gtk case...
I'd need to take control of a RUNNING app from another machine.
For example, when my mother locks my program, I'd like to ssh to that
machine (already possible) and then mirror on my machine what she
sees, so to unlock
Carl B. Constantine wrote:
...Also, with GtkTreeViewColumn, you can bind a property to a value in a
GtkTreeModel. For example, you can bind the text property on the cell
renderer to a string value in the model, thus rendering a different string in
each row of the GtkTreeView.
When you add a
Victor Mierla wrote:
\For example, you can bind the \pixbuf\ property on the cell renderer to a pixbuf
value in the model, thus rendering a different image in each row of the
GtkTreeView.\
How can i do this??
See the example about setting fg/bg colours.
Basically, you have to add a column to
Hello all.
Is it normal that I receive 2 changed events on the selection (SINGLE
or BROWSE) on the first click ?
Or better: I first receive a changed signal for the first row, then
another one for the row I clicked.
How can I avoid it?
Since I have to do some (maybe slow) async queries to a
Lars Clausen wrote:
I'm switching an old GtkText widget to GtkTextView, but notice that the
GtkTextView has no pretty bevelled border around it. I fail to see a
decoration widget that adds this, and gtk_text_view_set_window_size() only
creates the gray flat border. Did I miss something? How
Hello.
Continuing my tests to have a list store with NULL values, I found that
if I try to gtk_tree_model_get_value(m, i, INT_COL, gv) on a cell I
didn't gtk_tree_model_set, I get a segfault :
(diacat:3974): GLib-GObject-WARNING **: gvalue.c:83:g_value_init():
cannot initialize GValue with type
[EMAIL PROTECTED] wrote:
bufp=(int
*)mmap((caddr_t)0,len,PROT_READ|PROT_WRITE|PROT_EXEC,MAP_SHARED,fd,offset);
if(errno) {
Use if(MAP_FAILED==bufp) . errno could have been modified by a previous
error. It won't be changed unless an error happens. So your mmap is
probably ok.
How can
Kyle Cardoza wrote:
Hypothetically speaking, if I wanted the GTK library
itself to provide some customized, basic window
furniture, i.e. a close box and a resize tab, so that
I would not need a window manager, what would I have
to do to the source code? Would editing the source of
the
Diego Zuccato wrote:
Is it possible to store null (SQL-like semantics) values in a
Gtk*Store ? If yes, how could I test if a cell is null ?
Is GValue the answer? If yes, how can I get/set a GValue from a constant
(for example, how do I set GValue one to contain the integer 1 ?).
The only two
Zigus Software Inc wrote:
I'm using GTK v2.0 Is there a way to change the grey color of most of
the widgets?
Look at rc files and themes.
BYtE,
Diego
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list
Romain Liévin wrote:
I would like to know how to change font in a GtkCTree widget ?
Warning! Deprecated widget!
I suppose I will have to use property and Pango but I was unable to find a
such stuff in the doc.
If you're using Gtk+-2.2, then you should use GtkTreeView. Then you have
to change
malo p wrote:
Hi i just would like to know if there is a fuction to stop a callback
return is enough :-) Or return TRUE (or FALSE, it depends - see the
docs).
if i have understand when we cliked on a button the callback is on and
for the next boucle of the main it 'll work
Nope. When you
Hello.
Is it possible (in Gtk2.2) to highligt the focused widget changing its
background color instead of using a thick border? If it's possible, have
I to write a theme engine for it or it could be done with a standard one
?
Tks,
Diego.
___
gtk-list
Owen Taylor wrote:
Seems I missed something while installing (easy... it took me about 6
hours compiling the whole deps tree)... The strange thing is that I can
see all the strings correctly (maybe 'cause I'm only using standard
ASCII ?).
Well, if you are using Solaris, the answer is in
Hello.
I finally decided to install test gtk2.
I already solved most of my problems, but still see many messages like :
(diacat:2305): Gdk-WARNING **: Error converting from UTF-8 to STRING:
Conversion from character set 'UTF-8' to 'ISO-8859-1' is not supported
Seems I missed something while
Havoc Pennington wrote:
- grabbing during the button press may cause problems
due to the already-existing implicit grab when
a button is down, I'm not sure
Ok. I'll try from a one-shot idle handler, even if all the code I've
seen does it from the button handler.
- try using
Sorry to repost, but I'm really getting mad at this :-(
Havoc, please... I know that once you say what I'm doing wrong I'll
realyze I've been a chicken... But it's better to be a chicken and
proceed than just wander around and block the developement...
Tks.
BYtE,
Diego.
Havoc Pennington
Stephane Wirtel wrote:
Is it possible to have a MDI Window, if yes, how to do it ?
Nope. It's a bad thing from GUI design POV. If you need multiple
documents, you can:
1) spawn multiple instances of your program
2) use a GtkNotebook
BYtE,
Diego.
___
Havoc Pennington wrote:
You have to gdk_grab_pointer() and gtk_grab_add() during the time that
the modal window is active.
I realized that (and the modal window too, or I couldn't gdk_grab
modalwin-window ... :-) ). The Gtk source was useful. But not
sufficient.
The situation is: I have a
Hello all.
I'm facing another problem I can't see how to solve :-(
I'd need to catch mouse clicks that happen outside my app to make a
(modal) popup window disappear from the screen.
I've had a look at gtkmenu* but couldn't find the relevant bit :-( Popup
menus behaviour is just like what I'd
Scott Andrew Baillie wrote:
Is it appropriate to show a modal dialog box from the focus_out_event
handler ?
Try displaying it from a one-shot idle handler. So that events are
already processed.
BYtE,
Diego.
___
gtk-list mailing list
[EMAIL
qiufeng wrote:
I want to know how to free the malloced memory used in a g_list?
Where's the problem? If only you didn't comment out the first free() in
freenode...
BTW, use g_malloc and g_free...
BYtE,
Diego.
___
gtk-list mailing list
[EMAIL
Diego Zuccato wrote:
That's strictly related to the previous. I could reproduce a really
strange behaviour using the attached code.
The only difference lies in the pointer type. And I can't understand why
in the hell should that matter...
The code should display a thumbnail (the file 001_01.jpg
James M. Cape wrote:
You can load the image with GdkPixbuf, then render it as a
GnomeCanvasPixbuf. The points can be rendered using other items.
Tks. Did it. It works well... as long as I haven't to remove from the
canvas an item. I couldn't find any method.
Following hierarchy, I saw that a
Hello all.
I'd need to load a jpg file and eventually mark (with crosses or points)
some points on it. The jpg is fixed-size (256x256 pixels), taken from a
thumbnail gallery.
I thought I could use a gtk_pixmap or a gnome_pixmap, but it seems
neither of them permits loading jpg files.
Then I
Guenther Sohler wrote:
Whats the right solution ?
From the GUI design pov it's NOT to use modal dialogs at all. Your
program should be a single window - so you avoid smart users that
successfully hide the dialog and then call you saying that the program
is stuck! A GtkNotebook w/o tabs as the
Havoc Pennington wrote:
Yes, it's normal. If you ask to have your callback invoked whenever
the fd is ready for writing, and it's always ready, then your callback
will be invoked continuously eating 100% CPU. That doesn't seem so
surprising - you get what you ask for. ;-)
Yep. Once understood
Mauro Venanzi wrote:
it segfauls
Are you using v or entry_text ?
If it still segfaults, it means you destroyed the gtkentry from where
you're getting text.
To workaround:
static gchar *entry_text;(global to file)
static gchar* entry_text=NULL;
void get_the_text (GtkWidget *widget,
jlebra wrote:
I have created a
gtk_radio_button_new_with_label(NULL, test)
No group ? Glip!
But I would like to change the pixmap on the button by
an other.
How can I make?
A radiobutton is a checkbutton, that is a togglebutton, that is a
button that is a bin.
So you can remove the label
Pierre CHATEL wrote:
void
on_button_click_event2 (GtkWidget *button, gpointer user_data)
{
char *str;
int i;
gtk_label_get(GTK_LABEL(GTK_BIN(button)-child), str);
i = atoi(str);
i--;
sprintf(str,%i,i);
ARGH! You're writing in UNALLOCATED memory. *EVERYTHING*
Pierre CHATEL wrote:
(sorry for the previous answer, but I had to send quickly... job
calling...)
if i use char str[16], it says:
warning: passing arg 2 of `gtk_label_get' from incompatible pointer type
That's right.
so it seems gtk_label_get does not work with pre-declared strings...in
r9u52 wrote:
Hi I am new to GTK. In other libraries that have notebook type widgets setting
the current page to -1 makes there be no pages selected but in GTK -1 seems to
mean the last page. I was wondering if there was an easy way to make the
current selection to be none of the pages
Hello.
I'm developing a (threaded) program.
I have a ctree where I put results from db queries. When selecting a row
from that ctree, I have to update a clist w/ results coming from another
query. Just for example, think the ctree as a location (from state to
city) - when you select a city the
Diego Zuccato wrote:
I'm using WindowMaker-0.64 ... Might be a bug in it? I remember I
previously used set_sensitive in other programs and it worked as
espected...
Sorry, forgot to tell I'm using Gtk 1.2.10 ...
Tks,
Diego.
___
gtk-list mailing list
Hello.
I've a problem I couldn't solve yet :-(
I'd like to have the focused widget coloured (with or without the
thicker border) so that it's more visible.
Is there a way to do it just with rc files or have I to write (or use,
if already exists) a theme engine?
Please, CC me since I'm not
Delbert Martin wrote:
Ok for a program i am designing i have a login button. i would like to make this
login window disappear on a successful login but if unsucessful i would like the
window to stay.
Is there anyway way to do this?
i am using a function to create the window and the window is
Paul Davis wrote:
I'm sure there are bugs (at least, SOMETIMES you get an error saying
gtk_main is already active in another thread, and some other times
there's an xlib sequence error :-( ). Please, mail me bugfixes.
are you using gdk_threads_enter/leave?
Sure I am.
And if I follow too
Paul Davis wrote:
I'm sure there are bugs (at least, SOMETIMES you get an error saying
gtk_main is already active in another thread, and some other times
there's an xlib sequence error :-( ). Please, mail me bugfixes.
are you using gdk_threads_enter/leave?
Aumma... Last second thought...
Are
Pedro Zorzenon Neto wrote:
and I'd like to change the + color from red(#FF) to green(#00FF00) at running
time to simulate a kind of led that blinks red... green... red... green...
I already did it.
I make it flash in another thread, to avoid locks during long database
queries, but this
1 - 100 of 115 matches
Mail list logo