Ok, I got some empty rows to be inserted with this code:
void populate_list()
{
GtkTreeIter iter;
ledger_store = gtk_list_store_new (9, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING,...
Type: Posts; User: Ravi Raj
Ok, I got some empty rows to be inserted with this code:
void populate_list()
{
GtkTreeIter iter;
ledger_store = gtk_list_store_new (9, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING,...
Hello friends,
The below given code is not appending values to the treeview. Please help:
void
populate_list()
{
GtkTreeIter iter;
Ok, I got it to work,
here is the corrected code. Bye the way thanks stahta01
gchar *
convert_value (const gchar *value, gchar type)
{
gchar buff[256] = {0};
int64_t dvalue;...
here is the output:
buff:= 18446744073709551615
buff:= 9223372036854775807
Hello there,
I want to print a 10 or 11 digit number say 99999999999 with sprintf. For this, I used this code:
gchar*
convert_value (const gchar *value, gchar type)
{
gchar...
At last, I don't know the logic is correct or not but this code is working fine:
gchar*
convert_value (const gchar *value, gchar type)
{
gchar *str;
gchar buff[strlen(value)];
...
Ok,
Finally I got this to work but still some difficulties:
gboolean
on_txt_demandno_focus_out_event (GtkWidget *widget, GdkEvent *event, gpointer data)
{
gdouble output;
gchar...
Thanks quantumpete for the reply,
That's what I want to say that I am really a newbie to c, will you please tell me that built-in function.
Make a spoon feed once more... please !
The above code is capable of printing double (.)s but in a float there must be only single (.), how can I implement this. Please help.
Thanks QuantumPete,
I got it to work with this code, I don't know whether it is right logic or not but it is working:
void
on_txtSamekitKar_insert_text(GtkEditable *editable, gchar *text,
...
I am unable to give float masking in this code:
void
on_txtSamekitKar_insert_text(GtkEditable *editable, gchar *text,
gint length, gpointer position, gpointer data)
{
int i, count =...
Ok,
Thanks I understood. But still there's a problem, I want floating numbers:
I replaced the code in the above link with isdigit, worked awesome, but when i am using isfloat its not working.
...
bump
Thanks mario for your instructions and I will remember your suggestions from next time.
I tried with clrtoeol and clrtobot but no success.
Will you please tell me with some example.
Thanks Jim,
That solved my problem.
Jim,
Please read my earlier replies,
I had already told that I want to change the size of gnome-terminal.
Hello friends,
Is there any way to clear ncurses window created with newwin() or subwin() from (row, col) to (row, col),
Please help.
Ok,
Let me see first. Thanks for your quick reply Subsonics,
I will let you all know, if I get proper solution.
I am using this code:
void
term_size(int *rows, int *cols)
{
struct winsize ws;
int fd;
/* Open the controlling terminal. */
I used these constants, but still no serious effect.
I know you are confused a little bit.
Actually, I was talking about gnome-terminal.
Please help in coding through linux.
Hello there,
I am getting the error:
Segmentation fault (core dumped)
error in a simple c program. The code is:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Hello,
I think the post is in correct location because its question with ncurses for linux (ubuntu) and its completely a c programming problem.
Thanks.