pointed service code at Jonathan's prototype server - registration is now

pointed service code at Jonathan's prototype server - registration is
	now working.  Also, implemented simple drag highliting, by treating it
	exactly like selection highliting
This commit is contained in:
Andy Hertzfeld 2000-04-07 20:31:42 +00:00
parent fc19e85bc0
commit e68159f311
5 changed files with 21 additions and 9 deletions

View file

@ -1,3 +1,15 @@
2000-04-07 Andy Hertzfeld <andy@eazel.com>
* components/services/startup/nautilus-service-startup-view.c:
switched over to using Jonathan's prototype service, which is only
accessible from eazel's intranet for now. Registration now works with
the service.
* libnautilus/nautilus-icon-canvas-item.c:
first, simple version of drag/swallow highliting - it just darkens the
icon and emboldens the text, exactly like selection highlighting.
Pavel's going to set the flag during dragging soon, so this will help
him see what he's doing. Soon, we'll have a more elaborate approach.
2000-04-06 Andy Hertzfeld <andy@eazel.com>
* components/services/startup/nautilus-service-startup-view.c:

View file

@ -56,7 +56,7 @@ struct _NautilusServicesContentViewDetails {
#define SERVICE_VIEW_DEFAULT_BACKGROUND_COLOR "rgb:BBBB/DDDD/FFFF"
/* FIXME: the service domain name should be settable and kept with the other preferences. */
#define SERVICE_DOMAIN_NAME "hippie.eazel.com"
#define SERVICE_DOMAIN_NAME "eazel24.eazel.com"
static void nautilus_service_startup_view_initialize_class (NautilusServicesContentViewClass *klass);
static void nautilus_service_startup_view_initialize (NautilusServicesContentView *view);
@ -277,13 +277,13 @@ register_button_cb (GtkWidget *button, NautilusServicesContentView *view)
/* FIXME: need to url-encode the arguments here */
body = g_strdup_printf("email=%s&pwd=%s", email, password);
uri = g_strdup_printf("http://%s/new.pl", SERVICE_DOMAIN_NAME);
uri = g_strdup_printf("http://%s/member/new.pl", SERVICE_DOMAIN_NAME);
request = make_http_post_request(uri, body);
response_str = ghttp_get_body(request);
/* handle the error response */
if (strstr(response_str, "<ERROR field=") == response_str) {
if (response_str && (strstr(response_str, "<ERROR field=") == response_str)) {
if (strstr(response_str, "email")) {
if (strstr(response_str, "taken"))
show_feedback(view, "That email address is already registered! Please change it and try again.");

View file

@ -598,7 +598,7 @@ draw_or_measure_label_text (NautilusIconCanvasItem *item,
text_left, icon_bottom + height_so_far, GTK_JUSTIFY_CENTER);
/* if it's selected, embolden the text by drawing again offset by one pixel */
if (details->is_highlighted_for_selection)
if (details->is_highlighted_for_selection || details->is_highlighted_for_drop)
gnome_icon_paint_text (icon_text_info, drawable, gc,
text_left + 1, icon_bottom + height_so_far, GTK_JUSTIFY_CENTER);
@ -948,7 +948,7 @@ nautilus_icon_canvas_item_draw (GnomeCanvasItem *item, GdkDrawable *drawable,
temp_pixbuf = nautilus_create_spotlight_pixbuf (details->pixbuf);
}
if (details->is_highlighted_for_selection) {
if (details->is_highlighted_for_selection || details->is_highlighted_for_drop) {
old_pixbuf = temp_pixbuf;
temp_pixbuf = nautilus_create_darkened_pixbuf (temp_pixbuf,
0.8 * 255,

View file

@ -598,7 +598,7 @@ draw_or_measure_label_text (NautilusIconCanvasItem *item,
text_left, icon_bottom + height_so_far, GTK_JUSTIFY_CENTER);
/* if it's selected, embolden the text by drawing again offset by one pixel */
if (details->is_highlighted_for_selection)
if (details->is_highlighted_for_selection || details->is_highlighted_for_drop)
gnome_icon_paint_text (icon_text_info, drawable, gc,
text_left + 1, icon_bottom + height_so_far, GTK_JUSTIFY_CENTER);
@ -948,7 +948,7 @@ nautilus_icon_canvas_item_draw (GnomeCanvasItem *item, GdkDrawable *drawable,
temp_pixbuf = nautilus_create_spotlight_pixbuf (details->pixbuf);
}
if (details->is_highlighted_for_selection) {
if (details->is_highlighted_for_selection || details->is_highlighted_for_drop) {
old_pixbuf = temp_pixbuf;
temp_pixbuf = nautilus_create_darkened_pixbuf (temp_pixbuf,
0.8 * 255,

View file

@ -598,7 +598,7 @@ draw_or_measure_label_text (NautilusIconCanvasItem *item,
text_left, icon_bottom + height_so_far, GTK_JUSTIFY_CENTER);
/* if it's selected, embolden the text by drawing again offset by one pixel */
if (details->is_highlighted_for_selection)
if (details->is_highlighted_for_selection || details->is_highlighted_for_drop)
gnome_icon_paint_text (icon_text_info, drawable, gc,
text_left + 1, icon_bottom + height_so_far, GTK_JUSTIFY_CENTER);
@ -948,7 +948,7 @@ nautilus_icon_canvas_item_draw (GnomeCanvasItem *item, GdkDrawable *drawable,
temp_pixbuf = nautilus_create_spotlight_pixbuf (details->pixbuf);
}
if (details->is_highlighted_for_selection) {
if (details->is_highlighted_for_selection || details->is_highlighted_for_drop) {
old_pixbuf = temp_pixbuf;
temp_pixbuf = nautilus_create_darkened_pixbuf (temp_pixbuf,
0.8 * 255,