}
if (strcmp(key, "x") == 0) {
- geom.x = strtol(value, NULL, 10);
+ geom.x = (gint)strtol(value, NULL, 10);
geom.set_pos = TRUE;
} else if (strcmp(key, "y") == 0) {
- geom.y = strtol(value, NULL, 10);
+ geom.y = (gint)strtol(value, NULL, 10);
geom.set_pos = TRUE;
} else if (strcmp(key, "width") == 0) {
- geom.width = strtol(value, NULL, 10);
+ geom.width = (gint)strtol(value, NULL, 10);
geom.set_size = TRUE;
} else if (strcmp(key, "height") == 0) {
- geom.height = strtol(value, NULL, 10);
+ geom.height = (gint)strtol(value, NULL, 10);
geom.set_size = TRUE;
} else if (strcmp(key, "maximized") == 0) {
if (g_ascii_strcasecmp(value, "true") == 0) {
int len)
{
static GtkTargetEntry target_entry[] = {
- {"application/octet_stream", 0, 0}}; /* XXX - this not understood by most applications,
- * but can be pasted into the better hex editors - is
- * there something better that we can do?
- */
+ {(char *)"application/octet-stream", 0, 0}};
+ /* XXX - this is not understood by most applications,
+ * but can be pasted into the better hex editors - is
+ * there something better that we can do?
+ */
GtkClipboard *cb;
copy_binary_t *copy_data;
extern void copy_to_clipboard(GString *str);
/** Copy an array of bytes to the clipboard.
- * Copies as mime-type application/octet_stream in GTK 2.
+ * Copies as mime-type application/octet-stream in GTK 2.
*
* @param data_p Pointer to data to be copied.
* @param len Number of bytes in the data to be copied.