Re: multiple GTKentry inside a GTKnotebook

2012-06-24 Thread Rudra Banerjee
Mariano,
Thanks for your help. But this is not what I am looking for.
What I want is I will choose  the combobox entry and fill up the entry
box data  manually. Then if I click ok button, it will append an
external file with those data.
Please see the quoted reply I made in this thread to  your previous
reply. 
Hope, I have cleared my intention.


"By this code, what I want to achieve is that:
After choosing book/loco/lardon etc as done by you, this will print the
active_data in combobox and Entries in a file.

So, if the combo entry is Book and 
entryAuth is MyAuthor
entryEditor is MyEditor
entryTitle is MyTitle
and
bibkey is Mybib

then according to file selected(new/old) it will write there
@book{MyBib
Author="MyAuthor"
Title="MyTitle"
}

ofcourse the formatting can be done later. My current problem in hand is
to get those text like Book, MyAuthor, Mybib etc as a variable to use.

I googled and found some example but not working.
Last but not the least, thanks  Mariano for exporting it to GTK3. its
really looks nice."

On Sun, 2012-06-24 at 01:15 -0300, Mariano Gaudix wrote:
> Rudra can see the example . I uploaded a new
> code .downloads in   .. MEDIAFIRE
>  .. http://www.mediafire.com/?4l8qo1wtk35dcqb
>     Rudra , let me know if you will download  ,
> the example.
> 
> 2012/6/24 Rudra Banerjee 
> Friends,
> Plz show me how to do that. 
> 
> On Mon, 2012-06-18 at 23:28 +0530, Rudra Banerjee wrote:
> > Friends,
> > pasted is a minimal layout of my trial to create a
> bibliography maker.
> > The problem is, in Authors tab inside notebook, I want to
> edit 3 more
> > entry, as Editor an example. But its taking only the first
> entry.
> > Please show me where I am making the error.
> > (NB. I am neither a C programmer nor GTK. I am creating this
> via reading
> > various tutorials. So please don't get too irritated)
> >
> > #include 
> > #include 
> > #include 
> > #include 
> > GtkWidget *window;
> > GtkWidget *vbox, *hbox, *combo;
> > GtkWidget *entry1;
> > GtkWidget *entryAuth;
> > GtkWidget *entryEdit;
> >
> > GtkWidget *window;
> >
> > #include "menubar.c"
> >
> > int main(int argc,
> > char *argv[]) {
> > GtkWidget *window;
> > GtkWidget *button;
> > GtkWidget *table;
> > GtkWidget *frame;
> > GtkWidget *notebook;
> > GtkWidget *label;
> > GtkWidget *checkbutton;
> > int i;
> > char bufferf[32];
> > char bufferl[32];
> >
> > gtk_init(&argc, &argv);
> >
> > window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
> > gtk_window_set_title(GTK_WINDOW(window), "BibMk");
> > gtk_container_set_border_width(GTK_CONTAINER(window),
> 20);
> > g_signal_connect(window, "delete-event",
> > G_CALLBACK(gtk_main_quit), NULL);
> >
> >
> >
> > vbox = gtk_vbox_new(FALSE, 0);
> > hbox = gtk_hbox_new(FALSE, 0);
> > gtk_container_add(GTK_CONTAINER(window), hbox);
> > gtk_box_pack_start(GTK_BOX(hbox), vbox, FALSE, FALSE,
> 0);
> > frame = gtk_frame_new("Properties");
> >
> >
> > combo = gtk_combo_box_new_text();
> > gtk_combo_box_append_text(GTK_COMBO_BOX(combo), "Book");
> > gtk_combo_box_append_text(GTK_COMBO_BOX(combo),
> "Article");
> > gtk_box_pack_start(GTK_BOX(vbox), combo, TRUE, TRUE, 0);
> > gtk_widget_show(combo);
> >
> >
> > entry1 = gtk_entry_new();
> > gtk_entry_set_text(GTK_ENTRY(entry1), "bibKey");
> > gtk_box_pack_start(GTK_BOX(hbox), entry1, TRUE, TRUE,
> 0);
> > gtk_widget_show(entry1);
> >
> >
> > /*
> > * CREATE THE NOTEBOOK PAN
> > */
> >
> > table = gtk_table_new(3,6,FALSE);
> >
> > /* Create a new notebook, place the position of the tabs
> */
> > notebook = gtk_notebook_new ();
> > gtk_notebook_set_tab_pos (GTK_NOTEBOOK (notebook),
> GTK_POS_TOP);
> > gtk_table_attach_defaults(GTK_TABLE(table), notebook,
> 0,6,0,1);
> > gtk_widget_show(notebook);
> >
> >
> > /*
> > * CREATE BASIC NOTEBOOK
> > */
> > /*
> >  * Authors Tab
> >  */
> > frame = gtk_frame_new ("Authors");
> > gtk_container_set_border_width (GTK_CONTAINER
> (frame), 10);
> > gtk_widget

Changing the bar colour of a Gtk progress bar

2012-06-24 Thread John Emmas
Suppose I have a Gtk progress bar with some text displayed on it.  How do I 
change the colour of the moving bar?  So far I've tried gtk_widget_modify_bg 
(which sets the background colour, as you'd expect), gtk_widget_modify_fg 
(which sets the text colour) and gtk_widget_modify_base (which appears to do 
nothing).

What's the secret for changing the colour of the moving progress bar??

John
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


[vala] Program segfaults when trying to do anything with treepath of a selected IconView item

2012-06-24 Thread Filip Lamparski
Hello,

I have an signal handler which activates when an icon in an IconView is
activated. As I understand, such event produces a TreePath object.
The problem is that whenever this signal is fired, the program segfaults.

Here's the code:

[CCode (instance_pos = -1)]
public void on_filter_selected (TreePath filterpath) {
stderr.printf("Selected filter: %s", filterpath.to_string());
}

Can you tell me how to fix it?

Thanks,
Filip
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list