Mercurial > audlegacy
annotate Plugins/Output/crossfade/support-2.0.c @ 540:326de307e2eb trunk
[svn] add playback.c to build
author | nenolod |
---|---|
date | Sat, 28 Jan 2006 09:27:32 -0800 |
parents | 5fd398406cf7 |
children | 5b81b0f310e5 |
rev | line source |
---|---|
261
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
1 /* |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
2 * DO NOT EDIT THIS FILE - it is generated by Glade. |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
3 */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
4 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
5 #ifdef HAVE_CONFIG_H |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
6 # include <config.h> |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
7 #endif |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
8 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
9 #include <sys/types.h> |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
10 #include <sys/stat.h> |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
11 #include <unistd.h> |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
12 #include <string.h> |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
13 #include <stdio.h> |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
14 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
15 #include <gtk/gtk.h> |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
16 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
17 #include "support-2.0.h" |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
18 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
19 GtkWidget* |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
20 lookup_widget (GtkWidget *widget, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
21 const gchar *widget_name) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
22 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
23 GtkWidget *parent, *found_widget; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
24 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
25 for (;;) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
26 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
27 if (GTK_IS_MENU (widget)) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
28 parent = gtk_menu_get_attach_widget (GTK_MENU (widget)); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
29 else |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
30 parent = widget->parent; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
31 if (!parent) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
32 parent = (GtkWidget*) g_object_get_data (G_OBJECT (widget), "GladeParentKey"); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
33 if (parent == NULL) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
34 break; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
35 widget = parent; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
36 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
37 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
38 found_widget = (GtkWidget*) g_object_get_data (G_OBJECT (widget), |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
39 widget_name); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
40 if (!found_widget) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
41 g_warning ("Widget not found: %s", widget_name); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
42 return found_widget; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
43 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
44 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
45 static GList *pixmaps_directories = NULL; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
46 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
47 /* Use this function to set the directory containing installed pixmaps. */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
48 void |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
49 add_pixmap_directory (const gchar *directory) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
50 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
51 pixmaps_directories = g_list_prepend (pixmaps_directories, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
52 g_strdup (directory)); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
53 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
54 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
55 /* This is an internally used function to find pixmap files. */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
56 static gchar* |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
57 find_pixmap_file (const gchar *filename) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
58 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
59 GList *elem; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
60 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
61 /* We step through each of the pixmaps directory to find it. */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
62 elem = pixmaps_directories; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
63 while (elem) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
64 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
65 gchar *pathname = g_strdup_printf ("%s%s%s", (gchar*)elem->data, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
66 G_DIR_SEPARATOR_S, filename); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
67 if (g_file_test (pathname, G_FILE_TEST_EXISTS)) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
68 return pathname; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
69 g_free (pathname); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
70 elem = elem->next; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
71 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
72 return NULL; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
73 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
74 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
75 /* This is an internally used function to create pixmaps. */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
76 GtkWidget* |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
77 create_pixmap (GtkWidget *widget, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
78 const gchar *filename) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
79 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
80 gchar *pathname = NULL; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
81 GtkWidget *pixmap; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
82 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
83 if (!filename || !filename[0]) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
84 return gtk_image_new (); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
85 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
86 pathname = find_pixmap_file (filename); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
87 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
88 if (!pathname) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
89 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
90 g_warning ("Couldn't find pixmap file: %s", filename); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
91 return gtk_image_new (); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
92 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
93 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
94 pixmap = gtk_image_new_from_file (pathname); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
95 g_free (pathname); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
96 return pixmap; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
97 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
98 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
99 /* This is an internally used function to create pixmaps. */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
100 GdkPixbuf* |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
101 create_pixbuf (const gchar *filename) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
102 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
103 gchar *pathname = NULL; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
104 GdkPixbuf *pixbuf; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
105 GError *error = NULL; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
106 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
107 if (!filename || !filename[0]) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
108 return NULL; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
109 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
110 pathname = find_pixmap_file (filename); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
111 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
112 if (!pathname) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
113 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
114 g_warning ("Couldn't find pixmap file: %s", filename); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
115 return NULL; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
116 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
117 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
118 pixbuf = gdk_pixbuf_new_from_file (pathname, &error); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
119 if (!pixbuf) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
120 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
121 fprintf (stderr, "Failed to load pixbuf file: %s: %s\n", |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
122 pathname, error->message); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
123 g_error_free (error); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
124 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
125 g_free (pathname); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
126 return pixbuf; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
127 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
128 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
129 /* This is used to set ATK action descriptions. */ |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
130 void |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
131 glade_set_atk_action_description (AtkAction *action, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
132 const gchar *action_name, |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
133 const gchar *description) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
134 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
135 gint n_actions, i; |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
136 |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
137 n_actions = atk_action_get_n_actions (action); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
138 for (i = 0; i < n_actions; i++) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
139 { |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
140 if (!strcmp (atk_action_get_name (action, i), action_name)) |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
141 atk_action_set_description (action, i, description); |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
142 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
143 } |
5fd398406cf7
[svn] Still need to pry internal OSS from clenched fingers. In need of anti-warning love too, but it compiles.
chainsaw
parents:
diff
changeset
|
144 |