Mercurial > geeqie.yaz
comparison src/ui_misc.c @ 1291:50ae02a4a675
replaced bar_info with an universal bar, restored the original
functionality (more or less)
bar configuration is not yet saved
author | nadvornik |
---|---|
date | Sat, 14 Feb 2009 19:50:54 +0000 |
parents | 8b89e3ff286b |
children | 89dedc61b1bd |
comparison
equal
deleted
inserted
replaced
1290:0c918f8b1f51 | 1291:50ae02a4a675 |
---|---|
1676 gtk_widget_show(button); | 1676 gtk_widget_show(button); |
1677 } | 1677 } |
1678 | 1678 |
1679 return button; | 1679 return button; |
1680 } | 1680 } |
1681 | |
1682 /* | |
1683 *----------------------------------------------------------------------------- | |
1684 * text widget | |
1685 *----------------------------------------------------------------------------- | |
1686 */ | |
1687 | |
1688 gchar *text_widget_text_pull(GtkWidget *text_widget) | |
1689 { | |
1690 if (GTK_IS_TEXT_VIEW(text_widget)) | |
1691 { | |
1692 GtkTextBuffer *buffer; | |
1693 GtkTextIter start, end; | |
1694 | |
1695 buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(text_widget)); | |
1696 gtk_text_buffer_get_bounds(buffer, &start, &end); | |
1697 | |
1698 return gtk_text_buffer_get_text(buffer, &start, &end, FALSE); | |
1699 } | |
1700 else if (GTK_IS_ENTRY(text_widget)) | |
1701 { | |
1702 return g_strdup(gtk_entry_get_text(GTK_ENTRY(text_widget))); | |
1703 } | |
1704 else | |
1705 { | |
1706 return NULL; | |
1707 } | |
1708 | |
1709 } | |
1710 | |
1681 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */ | 1711 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */ |