Don't crash if there's no timezone set initially. #39783
* e-timezone-dialog/e-timezone-dialog.c (on_map_motion): Don't crash if there's no timezone set initially. #39783 svn path=/trunk/; revision=20313
This commit is contained in:
@ -1,3 +1,8 @@
|
||||
2003-03-17 Dan Winship <danw@ximian.com>
|
||||
|
||||
* e-timezone-dialog/e-timezone-dialog.c (on_map_motion): Don't
|
||||
crash if there's no timezone set initially. #39783
|
||||
|
||||
2003-03-11 Dan Winship <danw@ximian.com>
|
||||
|
||||
* e-timezone-dialog/e-timezone-dialog.c: Various cleanups.
|
||||
|
||||
@ -390,10 +390,12 @@ on_map_motion (GtkWidget *widget, GdkEventMotion *event, gpointer data)
|
||||
|
||||
gtk_label_get (GTK_LABEL (priv->timezone_preview), &old_zone_name);
|
||||
new_zone = get_zone_from_point (etd, priv->point_hover);
|
||||
new_zone_name = zone_display_name (new_zone);
|
||||
if (strcmp (old_zone_name, new_zone_name)) {
|
||||
gtk_label_set_text (GTK_LABEL (priv->timezone_preview),
|
||||
new_zone_name);
|
||||
if (new_zone) {
|
||||
new_zone_name = zone_display_name (new_zone);
|
||||
if (strcmp (old_zone_name, new_zone_name)) {
|
||||
gtk_label_set_text (GTK_LABEL (priv->timezone_preview),
|
||||
new_zone_name);
|
||||
}
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
||||
Reference in New Issue
Block a user