25 #include "pips_config.h"
28 #include <sys/types.h>
29 #include <sys/param.h>
32 #include <sys/resource.h>
47 if (!GTK_IS_MENU_ITEM(w))
49 GList * children = gtk_container_get_children(GTK_CONTAINER(w));
50 for (i = 0; i < g_list_length(children); i++) {
51 child = (GtkWidget *) g_list_nth_data(children, i);
52 if (!GTK_IS_LABEL(child))
54 label = gtk_label_get_text(GTK_LABEL(child));
56 g_list_free(children);
61 return GTK_WIDGET_SENSITIVE(w);
67 if (!GTK_IS_MENU_ITEM(w))
69 GList * children = gtk_container_get_children(GTK_CONTAINER(w));
70 for (i = 0; i < g_list_length(children); i++) {
71 child = (GtkWidget *) g_list_nth_data(children, i);
72 if (!GTK_IS_LABEL(child))
74 gtk_label_set_text(GTK_LABEL(child),
text);
76 g_list_free(children);
80 g_return_val_if_fail(GTK_IS_DIALOG(dialog), NULL);
85 g_return_val_if_fail(GTK_IS_ADJUSTMENT(adjustment), 0.0);
86 return adjustment->upper;
90 gtk_widget_hide(GTK_WIDGET(window));
96 FILE *
f = fopen(filename,
"rb");
102 fseek(
f, 0, SEEK_END);
104 fseek(
f, 0, SEEK_SET);
108 if (size != fread(*
data,
sizeof(
char), size,
f)) {
float a2sf[2] __attribute__((aligned(16)))
USER generates a user error (i.e., non fatal) by printing the given MSG according to the FMT.
bool gpips_gtk_widget_get_sensitive(GtkWidget *w)
const char * gpips_gtk_menu_item_get_label(GtkWidget *w)
gint hide_window(GtkWidget *window, GdkEvent *ev __attribute__((unused)), gpointer data __attribute__((unused)))
GtkWidget * gpips_gtk_dialog_get_content_area(GtkDialog *dialog)
void gpips_gtk_menu_item_set_label(GtkWidget *w, gchar *text)
gint load_file(const gchar *filename, gchar **data)
gdouble gpips_gtk_adjustment_get_upper(GtkAdjustment *adjustment)
int f(int off1, int off2, int n, float r[n], float a[n], float b[n])